Знаю, тема затертая. Но как поставить несколько версий php на одну машину.
У меня стандартно стоит версия 5.5. Нужно подрубить еще 5.3 для одного проекта.
План таков:
вторую версию компилирую из исходников, получаю от нее модуль php для апача. Это все хочу положить в папку пользователя, что бы туда можно компилить и другие вресии php (если понядобятся) Когда нужно изменить версию, отключаю модуль для 5.5 и подключаю для 5.3.
Делаю по этой
статьи.
Исходники скачал в папку
/usr/src/php-5.3.27 До
sudo make install
все шло хорошо.
При инсталепосыпались ошибки:
ubuntu-denis@ubuntu-denis:/usr/src/php-5.3.27$ INSTALL_ROOT=~/php/php5.3.27/ PATH=/usr/sbin:$PATH sudo make install
sudo: unable to resolve host ubuntu-denis
Installing PHP SAPI module: apache2handler
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' libphp5.la /usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool --mode=install install libphp5.la /usr/lib/apache2/modules/
libtool: install: install .libs/libphp5.so /usr/lib/apache2/modules/libphp5.so
libtool: install: install .libs/libphp5.lai /usr/lib/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /usr/src/php-5.3.27/libs'
chmod 644 /usr/lib/apache2/modules/libphp5.so
[preparing module `php5' in /etc/apache2/mods-available/php5.load]
Module php5 already enabled
Installing PHP CLI binary: ~/php/php5.3.27/bin/
Installing PHP CLI man page: ~/php/php5.3.27/man/man1/
Installing build environment: ~/php/php5.3.27/lib/php/build/
Installing header files: ~/php/php5.3.27/include/php/
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/date/#INST@31182#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/date/lib/#INST@31235#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/date/lib/#INST@31288#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/date/lib/#INST@31341#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/ereg/#INST@31394#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/ereg/#INST@31447#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/libxml/#INST@31598#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/pcre/#INST@31651#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/sqlite3/libsqlite/#INST@31802#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/dom/#INST@31855#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/filter/#INST@31908#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/hash/#INST@31961#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/hash/#INST@32014#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/hash/#INST@32067#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/hash/#INST@32120#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/hash/#INST@32173#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/hash/#INST@32227#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/hash/#INST@32280#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/hash/#INST@32333#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/hash/#INST@32386#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/hash/#INST@32439#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/hash/#INST@32492#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/hash/#INST@32545#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/hash/#INST@32598#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/json/#INST@32749#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/pdo/#INST@336#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/pdo/#INST@394#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/session/#INST@449#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/session/#INST@502#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/session/#INST@557#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/spl/#INST@612#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/spl/#INST@667#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/spl/#INST@723#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/spl/#INST@796#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/spl/#INST@852#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/spl/#INST@915#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/spl/#INST@972#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/spl/#INST@1053#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/spl/#INST@1108#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/spl/#INST@1163#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/spl/#INST@1229#': No such file or directory
cp: cannot create regular file '/home/ubuntu-denis/php/php5.3.27/include/php/ext/sqlite/libsqlite/src/#INST@1284#': No such file or directory
Installing helper programs: ~/php/php5.3.27/bin/
program: phpize
program: php-config
Installing man pages: ~/php/php5.3.27/man/man1/
page: phpize.1
page: php-config.1
Installing PEAR environment: ~/php/php5.3.27/lib/php/
Warning: fopen(~/php/php5.3.27/lib/php/.depdb): failed to open stream: No such file or directory in phar:///usr/src/php-5.3.27/pear/install-pear-nozlib.phar/PEAR/DependencyDB.php on line 548
Warning: fopen(~/php/php5.3.27/lib/php/.depdb): failed to open stream: No such file or directory in phar:///usr/src/php-5.3.27/pear/install-pear-nozlib.phar/PEAR/DependencyDB.php on line 548
Fatal error: Cannot use object of type PEAR_Error as array in phar:///usr/src/php-5.3.27/pear/install-pear-nozlib.phar/PEAR/DependencyDB.php on line 199
make[1]: *** [install-pear-installer] Error 255
make: *** [install-pear] Error 2
Что не так? Помогите ребята.... Уже второй день пытаюсь установить поставить вторую версию пыхи.
Если есть сслыки, на другие варианты(работающие), буду рад посмотреть. Но все же хочу понять, что не так с текущей...