I need to install PHP in my home directory, without polluting any directory outside my home [very important requirement!]. In the system there is already an older version of PHP running.
I found instructions here:
I am running these commands in my home directory, as normal user
$ ./configure --prefix=/home/dan/php
$ INSTALL_ROOT=/home/dan/php make install
This is all simply:
INSTALL_ROOT=/ DESTDIR=/ make install
I think this because of this, but I am probably wrong:
You use both $PWD/configure --prefix= and the the INSTALL_ROOT
variable with make. Those two options are mutually exclusive.
When you use --prefix, you ask to add a path before each path of files to be installed in the make files. Then you use INSTALL_ROOT variable.
Configure create static make rules; so make couldn't have a way to make some difference:
It add the path you specified with configure a second time.