I am trying to install PHP 2.3.28 using php-build (https://github.com/CHH/php-build) in Linux Mint 16 (Ubuntu) but it does not compile. I am using php-build because I need to have multiple versions of php on my machine.
I am using this command:
php-build -i development 5.3.28 ~/local/php/5.3.28
After solving several errors of missing packages, an error is happening that I cannot identify.
See the full log.
I need some hint to solve this problem.
==UPDATE==
After adding the following lines in /etc/apt/sources.list
:
deb php53.dotdeb.org all stable
deb-src php53.dotdeb.org stable all
And run the command:
apt-get build-dep php5
I finally succeeded compile without any problems using php-build.
Now I will install php-version to easily switch between versions.
To use different version of php use xampp for development and testing. Install different versions of xampp to different folders and switch to needed version with /opt/lampp symlink.
You can get different xampp versions for linux here
opt directory structure will looks like
lrwxrwxrwx 1 root root 16 Jan 27 07:10 lampp -> /opt/lampp_1.7.7
drwxr-xr-x 23 root root 4096 Sep 19 2011 lampp_1.7.7
drwxr-xr-x 24 root root 4096 Sep 19 2012 lampp_1.8.1
drwxr-xr-x 30 root root 4096 Dec 8 16:26 lampp_1.8.2_x86_64
drwxr-xr-x 30 root root 4096 Dec 2 11:26 lampp_1.8.3_x86_64