Установка устаревшего пакета

Добрый день.
У меня есть пакет /usr/portage/distfiles/php-5.2.11.tar.bz2 но портежи не как не хотят его пересобирать т.к. сейчас стабильной отмечено dev-lang/php-5.3.10, если я эту версию маскирую он мне вообще предлагает раз маскировать 5.4.
Вопрос в том как заставить пересобрать 5.2.11?

Собственно проблема в следующем, особо не думая головой обновил mysql и упал php c ошибкой:
php: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory

Даунгрейд mysql на версию 5.1.56 ситуацию не поменял :(

В гугле говорят что надо пересобрать пхп, чего у мне не удается.

Php 5.3 не ставится думаю из-за бородатой системы

uname -a
Linux host 2.6.29-gentoo-r5 #1 SMP Tue Jul 28 13:43:26 GMT 2009 i686 Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz GenuineIntel GNU/Linux

eselect profile list
[1]   default/linux/x86/10.0 *

его ошибки:

 emerge php
 * IMPORTANT: 4 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES section of the emerge
 * man page to learn how to update config files.
Calculating dependencies... done!
[ebuild  N     ] dev-libs/oniguruma-5.9.2
[ebuild  N     ] virtual/jpeg-0  USE="-static-libs"
[ebuild  N     ] app-admin/eselect-php-0.6.2
[ebuild  NS    ] dev-lang/php-5.3.10 [5.2.11] USE="apache2 bcmath berkdb bzip2 cgi cli crypt ctype curl exif fileinfo filter ftp gd gdbm hash iconv imap ipv6 json mysql nls pdo phar posix readline session simplexml soap sockets spell sqlite ssl tidy tokenizer truetype unicode xml xmlreader xmlrpc xmlwriter xsl zip zlib -calendar -cdb -cjk -curlwrappers -debug -doc -embed -enchant -firebird -flatfile -fpm -frontbase -gmp -inifile -intl -iodbc -kerberos -kolab -ldap -ldap-sasl -libedit -mhash -mssql -mysqli -mysqlnd -oci8-instant-client -odbc -pcntl -pic -postgres -qdbm -recode -sharedmem -snmp -sqlite3 -suhosin -sybase-ct -sysvipc -threads -wddx -xpm"
[blocks B      ] app-admin/php-toolkit ("app-admin/php-toolkit" is blocking app-admin/eselect-php-0.6.2)
[blocks B      ] dev-lang/php:5 ("dev-lang/php:5" is blocking dev-lang/php-5.3.10)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

если ставлю без зависимостей --nodep установка запускается но в пути валится

emerge php --nodep
cat /var/tmp/portage/dev-lang/php-5.3.10/temp/build.log
checking for InterBase support... no
checking whether to enable internationalization support... no
checking whether to enable JavaScript Object Serialization support... yes
checking for ANSI C header files... (cached) yes
checking for LDAP support... no
checking for LDAP Cyrus SASL support... no
checking whether to enable multibyte string support... yes
checking whether to enable multibyte regex support... yes
checking whether to check multibyte regex backtrack... yes
checking for external libmbfl... no
checking for external oniguruma... /usr
configure: error: oniguruma.h not found in /usr/include

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-lang/php-5.3.10/work/sapis-build/cli/config.log
 * ERROR: dev-lang/php-5.3.10 failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *                 ebuild.sh, line   85:  Called src_configure
 *               environment, line 7203:  Called eblit-run 'src_configure' 'v53'
 *               environment, line 4972:  Called eblit-php-src_configure
 *   src_configure-v53.eblit, line  256:  Called econf '--prefix=/usr/lib/php5.3' '--mandir=/usr/lib/php5.3/man' '--infodir=/usr/lib/php5.3/info' '--libdir=/usr/lib/php5.3/lib' '--with-libdir=lib' '--without-pear' '--disable-maintainer-zts' '--enable-bcmath' '--with-bz2' '--disable-calendar' '--enable-ctype' '--with-curl' '--without-curlwrappers' '--enable-dom' '--without-enchant' '--enable-exif' '--enable-fileinfo' '--enable-filter' '--enable-ftp' '--with-gettext' '--without-gmp' '--enable-hash' '--without-mhash' '--with-iconv' '--disable-intl' '--enable-ipv6' '--enable-json' '--without-kerberos' '--enable-libxml' '--enable-mbstring' '--with-mcrypt' '--without-mssql' '--with-onig=/usr' '--with-openssl' '--with-openssl-dir=/usr' '--disable-pcntl' '--enable-phar' '--enable-pdo' '--without-pgsql' '--enable-posix' '--with-pspell' '--without-recode' '--enable-simplexml' '--disable-shmop' '--without-snmp' '--enable-soap' '--enable-sockets' '--with-sqlite=/usr' '--enable-sqlite-utf8' '--without-sqlite3' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--with-tidy' '--enable-tokenizer' '--disable-wddx' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xmlrpc' '--with-xsl' '--enable-zip' '--with-zlib' '--disable-debug' '--enable-dba' '--without-cdb' '--with-db4' '--disable-flatfile' '--with-gdbm' '--disable-inifile' '--without-qdbm' '--with-freetype-dir=/usr' '--with-t1lib=/usr' '--disable-gd-jis-conv' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--without-xpm-dir' '--with-gd' '--with-imap' '--with-imap-ssl' '--with-mysql=/usr' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--without-mysqli' '--without-pdo-dblib' '--with-pdo-mysql=/usr' '--without-pdo-pgsql' '--without-pdo-sqlite' '--without-pdo-odbc' '--with-readline' '--without-libedit' '--without-mm' '--with-pcre-regex=/usr' '--with-pcre-dir=/usr' '--with-config-file-path=/etc/php/cli-php5.3' '--with-config-file-scan-dir=/etc/php/cli-php5.3/ext-active' '--disable-embed' '--enable-cli' '--disable-cgi' '--disable-fpm' '--without-apxs2'
 *          phase-helpers.sh, line  467:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *
 * If you need support, post the output of 'emerge --info =dev-lang/php-5.3.10',
 * the complete build log and the output of 'emerge -pqv =dev-lang/php-5.3.10'.
 * The complete build log is located at '/var/tmp/portage/dev-lang/php-5.3.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-5.3.10/temp/environment'.
 * S: '/var/tmp/portage/dev-lang/php-5.3.10/work/php-5.3.10'

Наверняка вы скажете обновлять систему, я с этим согласен, пора бы, но предварительно надо починить ПХП, потому как сейчас апачь запущен и работает, но он намекает, что если его остановить, он больше не запустится.

Если ты не обновлял портежи,

Если ты не обновлял портежи, то у тебя должен быть слотированный php:5.2. Его нужно поставить, чтобы заменить старый неслотированный php. После этого можно обновляться свободно.
Если php:5.2 не нужен, то можно прыгнуть сразу на 5.3, для этого нужно удалить старый php и php-toolkit. Блокировки разрешатся, и ты сможешь поставить новую версию.
Вот руководство по обновлению: http://www.gentoo.org/proj/en/php/php-upgrading.xml
После обновления нужно сделать revdep-rebuild.

Не грусти, товарищ! Всё хорошо, beautiful good!

Спасибо emerge -C

Спасибо

emerge -C dev-lang/php
emerge -C app-admin/php-toolkit
emerge php

И всё в шоколаде.
Большое спасибо за быструю и качественную помощь.

п.с. пойду проголосую за вас ;)

Настройки просмотра комментариев

Выберите нужный метод показа комментариев и нажмите "Сохранить установки".