pecl не может найти PHP - "Нет такого файла или каталога"

Я обновил PHP при установке CentOS до PHP 5.5 через репозиторий Remi. php-pear пакет установлен.

Тем не менее, когда я пытаюсь запустить pecl, он не может найти установку PHP;

[root@box etc]# pecl
/usr/local/bin/pecl: line 28: /usr/local/bin/php: No such file or directory
/usr/local/bin/pecl: line 28: exec: /usr/local/bin/php: cannot execute: No such file or directory

Есть ли способ, которым я могу перенастроить pecl и указать местоположение PHP?

И то и другое php -v и Apache-служил phpinfo() вернуть 'PHP 5.5.0', поэтому PHP определенно установлен.

Спасибо!

1 ответ

Решение

Я предлагаю удалить все пакеты, установленные из исходного кода, и установить необходимые пакеты через yum с http://dl.iuscommunity.org/pub/ius/testing/CentOS/6/x86_64/

# rpm --import http://dl.iuscommunity.org/pub/ius/IUS-COMMUNITY-GPG-KEY
# rpm -ivh http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-11.ius.centos6.noarch.rpm
# yum search php55 --enablerepo=ius-testing
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: ftp.colocall.net
 * epel: ftp.colocall.net
 * extras: ftp.colocall.net
 * ius: ius.cu.be
 * ius-testing: ius.cu.be
 * updates: ftp.colocall.net
ius-testing                                                                                      | 2.2 kB     00:00
ius-testing/primary_db                                                                           |  56 kB     00:00
================================================== N/S Matched: php55 ==================================================
php55u-debuginfo.x86_64 : Debug information for package php55u
php55u.x86_64 : PHP scripting language for creating dynamic web sites
php55u-bcmath.x86_64 : A module for PHP applications for using the bcmath library
php55u-cli.x86_64 : Command-line interface for PHP
php55u-common.x86_64 : Common files for PHP
php55u-dba.x86_64 : A database abstraction layer module for PHP applications
php55u-devel.x86_64 : Files needed for building PHP extensions
php55u-embedded.x86_64 : PHP library for embedding in applications
php55u-enchant.x86_64 : Human Language and Character Encoding Support
php55u-fpm.x86_64 : PHP FastCGI Process Manager
php55u-gd.x86_64 : A module for PHP applications for using the gd graphics library
php55u-gmp.x86_64 : A module for PHP applications for using the GNU MP library
php55u-imap.x86_64 : A module for PHP applications that use IMAP
php55u-interbase.x86_64 : A module for PHP applications that use Interbase/Firebird databases
php55u-intl.x86_64 : Internationalization extension for PHP applications
php55u-ldap.x86_64 : A module for PHP applications that use LDAP
php55u-mbstring.x86_64 : A module for PHP applications which need multi-byte string handling
php55u-mcrypt.x86_64 : Standard PHP module provides mcrypt library support
php55u-mssql.x86_64 : MSSQL database module for PHP
php55u-mysqlnd.x86_64 : A module for PHP applications that use MySQL databases
php55u-odbc.x86_64 : A module for PHP applications that use ODBC databases
php55u-opcache.x86_64 : The Zend OPcache
php55u-pdo.x86_64 : A database access abstraction module for PHP applications
php55u-pear.noarch : PHP Extension and Application Repository framework
php55u-pgsql.x86_64 : A PostgreSQL database module for PHP
php55u-process.x86_64 : Modules for PHP script using system process interfaces
php55u-pspell.x86_64 : A module for PHP applications for using pspell interfaces
php55u-recode.x86_64 : A module for PHP applications for using the recode library
php55u-snmp.x86_64 : A module for PHP applications that query SNMP-managed devices
php55u-soap.x86_64 : A module for PHP applications that use the SOAP protocol
php55u-tidy.x86_64 : Standard PHP module provides tidy library support
php55u-xml.x86_64 : A module for PHP applications which use XML
php55u-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC protocol

Тестирование репо по умолчанию отключено

Другие вопросы по тегам