On Tuesday 12 November 2002 03:31, Samyar Haghighat wrote:
Hi Kelly Thanks for your reply but would you please tell me how can I find and modify the specfile of php rpm on CD .I uninstall the mod_php4 and found its rpm on CD but I don't know where is its specfile.
Regards Samyar Haghighat
----- Original Message ----- From: "Kelly L. Fulks"
To: Sent: Monday, November 11, 2002 5:09 PM Subject: Re: [SLE] recompiling existed php on suse 8.1 On Monday 11 November 2002 01:49, Samyar Haghighat wrote:
Hi I want to use php for connecting to oracle but it seems my php
doesn't
support oci functions and other functions for connecting to oracle also
I
want to use phporacleadmin but it needs php with oci8 support.how can I recompile my php without reinstalling apache mysql and php together.
Regards Samyar Haghighat
Uninstall PHP (only php). Install the source RPM from the CD/DVD. Modify the .spec file to include the configure options that you need. rpm -bb <.specfile_name> rpm -ivh
This should not break anything as you will have the same version numbers,
etc.
I have not done this in quite some time as I no longer work for an Oracle shop, so I might have left out something (and that is why I don't know the package names exactly that you need to uninstall and install.
-- Kelly L. Fulks Home Account
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On CD number 5 there will be a file named mod_php4-4.2.2-82.src.rpm. You should install this file using rpm -ivh mod_php4-4.2.2-82.src.rpm (this will install the source code and the .spec file on your system). You should then cd to /usr/src/packages/SPECS, where you will find a file with mod_php4 as the first and .spec as the extension. This is simply an ascii text file that contains the instructions to build mod_php4. Using your favorite text editor, you should edit this file and change the line that contains the configure command to add the things necessary for oci8. You should then type rpm -bb <.spec file name> to build the rpm. You will most likely find the completed rpm in /usr/src/packages/RPMS/i586. I am sorry but I don't have time or the resources to actually do this to give you a more complete step-by-step. It really isn't that hard. -- Kelly L. Fulks Home Account