I'm a currently learning how to work with freebsd. Lately I have been trying to run multiple php versions along with their respective packages. However, I seem to be running into issues while making installations.
The default location for my
php installation is
/usr/local/etc/, however I want to be able to install
Using ports I simply achieved this by doing
cd /usr/ports/lang/php5x && make PREFIX="/usr/local/etc/php5x" install clean.
The problem now is: How do I do the same for extensions of all my
PHP versions? When I try installing php-extensions like so:
cd /usr/ports/lang/php5x-extension && make PREFIX="/usr/local/etc/php5x/lib/php" install clean, I get this error
... ===> PHPizing for php53-bcmath-5.3.17 env: /usr/local/bin/phpize: No such file or directory *** Error code 127 Stop in /usr/ports/math/php53-bcmath. *** Error code 1 Stop in /usr/ports/lang/php53-extensions.
My PHPize is located in
So how do I get
make or whatever to look for
phpize in the right path? Is there a cleaner, may be simpler way of maintaining multiple php installations? I need to achieve this because of compatibility issues from some legacy code that runs on 5.2 and breaks on 5.3.