1

I am trying to install PHP 5.2.17 on a CentOS machine. Having problems as I have only used yum in the past.

I have the file downloaded and unpacked... not clear on how I need to ./configure before using the make and make install.

UPDATE: I am getting this message when installing php 5.2.17 from a fresh cloud instance:

# rpm -ivh php-5.2.17-1.x86_64.rpm 
error: Failed dependencies: libaspell.so.15()(64bit) is needed by
php-5.2.17-1.x86_64 libcrypto.so.6()(64bit) is needed by
php-5.2.17-1.x86_64 libcurl.so.3()(64bit) is needed by php-5.2.17-1.x86_64
libpspell.so.15()(64bit) is needed by php-5.2.17-1.x86_64
libssl.so.6()(64bit) is needed by php-5.2.17-1.x86_64 php-cli = 5.2.17-1 is
needed by php-5.2.17-1.x86_64 

I ended up installing PHP 5.3 on this instance which of addressed some of the above. However now I am wrestling with php-cli and php-common which are failing.

Any ideas?

7
  • Why would you want to install anything that is older than PHP 5.3? I mean: 5.4 is „near“
    – TimWolla
    Feb 8, 2012 at 19:51
  • I understand fully...Have taken on a new site that is running an older version and have no choice at this point. Migrating later...have to deal with some things first. I know..it sucks. Feb 8, 2012 at 19:56
  • Sorry about that..I did actually spend a good bit of time trying before posting here. Thank you for the link though...however it fails on the second step with this message: Feb 8, 2012 at 20:17
  • ]# rpm -ivh php-5.2.17-1.x86_64.rpm error: Failed dependencies: libaspell.so.15()(64bit) is needed by php-5.2.17-1.x86_64 libcrypto.so.6()(64bit) is needed by php-5.2.17-1.x86_64 libcurl.so.3()(64bit) is needed by php-5.2.17-1.x86_64 libpspell.so.15()(64bit) is needed by php-5.2.17-1.x86_64 libssl.so.6()(64bit) is needed by php-5.2.17-1.x86_64 php-cli = 5.2.17-1 is needed by php-5.2.17-1.x86_64 Feb 8, 2012 at 20:18
  • 1
    Why the CentOS 6 requirement? You are building an unstable system. CentOS 5 would be a better choice.
    – kaptk2
    Feb 9, 2012 at 0:29

1 Answer 1

0

I found that running older versions of PHP is easiest done on older versions of Linux that have older versions of php out of the box...I used an older version of Ubuntu and got the job done.

Thanks all for your help!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .