configurescript allows you to specify --prefix=[dest]. From use:
By default, `make install 'will install all the files in / usr / local / bin, / usr / local / lib, etc. You can specify an installation prefix other than / usr / local with --prefix, for example, --prefix = $ HOME.
, py26 :
% ./configure --prefix=$HOME/py26
..
% make install
% $HOME/py26/bin/python
, $HOME/bin PATH ~/.bashrc ( rc ). , Python , :
% which python
/home/user/py26/bin/python
, --prefix PATH. :
% which python
/usr/bin/python
% ls -1 $HOME/py26/bin/python*
/home/user/py26/bin/python
/home/user/py26/bin/python2.6
/home/user/py26/bin/python2.6-config
/home/user/py26/bin/python-config
% export PATH=$HOME/py26/bin:$PATH
% which python
/home/user/py26/bin/python