ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Please would you help me installing oci8 for PHP 5.1.6,
on a CentOS release 5.9.
I have installed oracle clients, and download oci8-1.4.10.tgz.
I have unzipped the file, but there is not a configure script inside the folder and when i try to run:
Dear all,
Please would you help me installing oci8 for PHP 5.1.6, on a CentOS release 5.9.
I have installed oracle clients, and download oci8-1.4.10.tgz. I have unzipped the file, but there is not a configure script inside the folder and when i try to run:
- This machine is very Old in fact, but we run several applications there, and for the moment i cannot do anything about this.
- I download 1.4.10 because we already use it in another old machine, but i have download now 2.1.8 as per your suggestion.
- Yes, i have download the package.xml file, but when should i put that? Inside oci8_2.1.8 folder?
- I haven't run pecl build , because pecl is not installed, and i am finding it difficult to install as yum doesn't seems to get working, and i am installing things manually.
Dear TB0ne,
- This machine is very Old in fact, but we run several applications there, and for the moment i cannot do anything about this.
You really do need to upgrade, so mentioning that to your bosses would be a good idea.
Quote:
- I download 1.4.10 because we already use it in another old machine, but i have download now 2.1.8 as per your suggestion.
Using the latest packages is usually a good idea.
Quote:
- Yes, i have download the package.xml file, but when should i put that? Inside oci8_2.1.8 folder?
Did you read the instructions?
Quote:
- I haven't run pecl build , because pecl is not installed, and i am finding it difficult to install as yum doesn't seems to get working, and i am installing things manually.
Again, did you read the instructions? You were given a link with detailed steps, that tell you what to copy where, and what procedures to run. Unless you follow them, things won't work.
yum probably *WON'T* work, since (again) CentOS 5.9 is old, and out of support. The production repositories are gone.
- This machine is very Old in fact, but we run several applications there, and for the moment i cannot do anything about this.
- I download 1.4.10 because we already use it in another old machine, but i have download now 2.1.8 as per your suggestion.
- Yes, i have download the package.xml file, but when should i put that? Inside oci8_2.1.8 folder?
- I haven't run pecl build , because pecl is not installed, and i am finding it difficult to install as yum doesn't seems to get working, and i am installing things manually.
While agreeing with others that you should upgrade, here's what you need to do to use yum
on that old version:
In the directory /etc/yum.repos.d/ there are files beginning with CentOS-
Those contain the paths to the repos
You'll need to comment out the mirrorlist entry, copy the baseurl line, comment the old one out and change the new one to use the vault instead of the mirror.
My example is from a box running 5.11. Yours will probably say 5.9. Note also the other differences
Do this for every such entry in every CentOS-* file
The versions of software in the vault for 5.9 are what they were when version 5 went end-of-life. They will not contain newer version of anything, nor should you try to use newer versions.
Please would you help me installing oci8 for PHP 5.1.6,
on a CentOS release 5.9.
I have installed oracle clients, and download oci8-1.4.10.tgz.
I have unzipped the file, but there is not a configure script inside the folder and when i try to run:
And to the specifics of your OP. Not all source compiles have/require a configure step. That one obviously doesn't. Is there a README file or an INSTALL file? Did you read those?
No, they did not. There is an XML file you have to copy, then run a command that generates the configure file. And all that aside, the OP will have to re-compile PHP from source in order to get this to work, since they're using unsupported CentOS 5.x.
Well, one could start with building a complete php, that already includes oci8 (directory ext/oci8), but it has infinite number of dependencies (not all mandatory, mind you). But that's not for beginners.
Again, I'm not disagreeing about needing to upgrade...but I happened to have been in the same boat a few months back. Got caught by the EOL on version 5. Found and followed directions on centos.org on how to use the vault until I managed an upgrade. I didn't actually need it much, since it was a production server that was current when the repos died, but it is possible to add software from the vault after EOL.
It is important to note (again!) that the software won't be current and can't be updated, but it will install and run on the old server. As has been noted, compiling php from source is likely to be very difficult, and may not work at all.
My apologies. While my suggestions about changing the yum repositories to use the vault will allow yum to install software, neither oci8 or pecl appear to be in the vault, nor does pecl exist on the old 5.11 box I've been looking at. I got lost checking out PHP.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.