List Info

Thread: Pear installer doesn't work




Pear installer doesn't work
user name
2006-11-12 02:58:45
Bertrand Mansion wrote:
> 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.

Hi Bertrand,

Can you confirm that you were using PEAR 1.4.11?  This bug
was caused by
shoddy error handling in code I wrote a while back in
PEAR_Downloader,
and was unearthed by Pierre's addition of
download_dir/temp_dir, as it
changed some default behavior.  I added a helpful error
message in
1.5.0a1 that fixes the problem.  If you are using 1.5.0a1,
then that's a
problem that must be fixed.

sigh...


Greg

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

Pear installer doesn't work
user name
2006-11-12 17:32:22
Greg Beaver wrote:

>Bertrand Mansion wrote:
>> 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.
>
>Hi Bertrand,
>
>Can you confirm that you were using PEAR 1.4.11?  This
bug was caused by
>shoddy error handling in code I wrote a while back in
PEAR_Downloader,
>and was unearthed by Pierre's addition of
download_dir/temp_dir, as it
>changed some default behavior.  I added a helpful error
message in
>1.5.0a1 that fixes the problem.  If you are using
1.5.0a1, then that's a
>problem that must be fixed.

I still get the notice with pear 1.5.0a1 but the error
message is much more
informative, which is good. Here follows an example session:

MBP233:~ bertrand$ pear install -f html_common2
WARNING: failed to download pear.php.net/html_common2 within
preferred state
"stable", will instead download version 0.3.0,
stability "alpha"
downloading HTML_Common2-0.3.0.tgz ...

Notice: Undefined variable: php_errormsg in
PEAR/Downloader.php on line 1531
Could not download from "
http://pear.php.net/get/HTML_Common2-0.3.0.tgz",
cannot download "pear/html_common2" (could not
open
/tmp/pear/cache/HTML_Common2-0.3.0.tgz for writing)
Error: cannot download "pear/HTML_Common2"

Thanks.

--
Bertrand Mansion
Mamasam
Tel : +33 1 48 89 88 26
http://www.mamasam.com
Creative Internet Solutions

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )