Re: Pear installer doesn't work

From: Date: Sat, 11 Nov 2006 15:43:15 +0000
Subject: Re: Pear installer doesn't work
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-44914@lists.php.net to get a copy of this message
Gregory Beaver wrote: >Lorenzo Alberton wrote: >> Hi Bertrand, >> >>> When I try to install a package, I now get this error message: >>> >>> MBP233:~ bertrand$ pear install -f xml_rpc >>> downloading XML_RPC-1.5.1.tgz ... >>> >>> Notice: Undefined variable: php_errormsg in PEAR/Downloader.php on >>> line 1498 >>> Could not download from >>> "http://pear.php.net/get/XML_RPC-1.5.1.tgz", >>> cannot >>> download "pear/xml_rpc" >>> Error: cannot download "pear/XML_RPC" >>> >>> Is this some configuration option I missed ? >> >> a hint: >> >> $php_errormsg is a variable containing the text of the last error >> message generated by PHP. This variable will only be available within >> the scope in which the error occurred, and only if the track_errors >> configuration option is turned on (it defaults to off). >> >> maybe you can enable that option and see what the actual error is... > >track_errors is enabled in pearcmd.php using ini_set(), so it looks like >ini_set('track_errors', 1) is not working on OS X in PHP 5.2. Let us >know what you figure out. My error was related to wrong permissions on the /tmp/pear directory. Unfortunately, it seems that track_errors doesn't work correctly since, even if it is activated directly in php.ini, php_errormsg is always empty. Other OSX users might want to test, just create an empty directory in /tmp named pear and give it root write permissions only: # sudo mkdir /tmp/pear Then try to install any package you want. Please report if it does the same for you and the PEAR installer and PHP version you use. Thanks. -- Bertrand Mansion Mamasam Tel : +33 1 48 89 88 26 http://www.mamasam.com Creative Internet Solutions

« previous php.pear.dev (#44914) next »