Неустранимая ошибка PHP: вызов неопределенного метода PEAR :: riseErro () в /usr/share/php/PEAR/REST.php в строке 165

3230
udo

при беге

  • груша апгрейд

возникает следующая ошибка:

PHP Fatal error: Call to undefined method PEAR::raiseErro() in /usr/share/php/PEAR/REST.php on line 165 PHP Stack trace: PHP 1. () /usr/share/php/pearcmd.php:0 PHP 2. PEAR_Command_Common->run() /usr/share/php/pearcmd.php:305 PHP 3. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Common.php:271 PHP 4. PEAR_Command_Install->doUpgradeAll() /usr/share/php/PEAR/Command/Install.php:547 PHP 5. PEAR_Command_Install->doInstall() /usr/share/php/PEAR/Command/Install.php:902 PHP 6. PEAR_Command_Install->_filterUptodatePackages() /usr/share/php/PEAR/Command/Install.php:619 PHP 7. PEAR_REST_10->listLatestUpgrades() /usr/share/php/PEAR/Command/Install.php:1233 PHP 8. PEAR_REST->retrieveData() /usr/share/php/PEAR/REST/10.php:649 

какие-либо предложения, что вызывает это?

Благодарю.

4
Запуск команды от имени root под OS X смог решить эту проблему для меня. Thomas Hunter 12 лет назад 1

1 ответ на вопрос

9
Henk

I had this on Ubuntu 10.04 installing the Mongo PHP-extension. Did some research and tried this:

# pear search http The value of config option cache_dir (/tmp/pear/cache) is not a directory and attempts to create the directory failed.

When I created the directories by hand:

mkdir -p /tmp/pear/cache
the error "went away" and I was able to install: "pecl install mongo".