List Info

Thread: Pear installer doesn't work




Pear installer doesn't work
user name
2006-11-11 14:29:30
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...

Cheers,
-- 
Lorenzo Alberton
http://pear.php.net/us
er/quipo
____________________________________________________________
_______
Quipo Free Internet - 2 email, 150 Mb di spazio web e molto
di pił.
ADSL, Hardware & Software Online Store

-- 
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-11 14:22:52
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.

Thanks,
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-11 14:30:54
Gregory Beaver wrote:

> 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.

it does not work anymore if you have a customer error
handler.

regards,
Lulas

-- 
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-11 14:57:52
On 11/11/06, Lukas Kahwe Smith <lsmithphp.net> wrote:
> Gregory Beaver wrote:
>
> > 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.
>
> it does not work anymore if you have a customer error
handler.

Not true. $php_errormsg gets populated if you return false
from your
custom error handler.

-Hannes

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

-- 
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-11 15:00:36
On 11/11/06, Lorenzo Alberton <l.albertonquipo.it> 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...

error_get_last() is your friend as of PHP5.2.0

-Hannes
>
> Cheers,
> --
> Lorenzo Alberton
> http://pear.php.net/us
er/quipo
>
____________________________________________________________
_______
> Quipo Free Internet - 2 email, 150 Mb di spazio web e
molto di pił.
> ADSL, Hardware & Software Online Store
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub
.php
>
>

-- 
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-11 15:02:15
Hannes Magnusson wrote:
> On 11/11/06, Lukas Kahwe Smith <lsmithphp.net> wrote:
>> Gregory Beaver wrote:
>>
>> > 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.
>>
>> it does not work anymore if you have a customer
error handler.
> 
> Not true. $php_errormsg gets populated if you return
false from your
> custom error handler.

correct. sorry about leaving that detail out .. anyways the
pear 
installer works fine for me in 5.2.0 on windows. actually
strike that:

C:apache_diratelshell>pear upgrade-all
Will upgrade auth
Will upgrade console_getargs
Will upgrade xml_rpc
Did not download optional dependencies: pear/File_Passwd,
pear/Net_POP3, 
pear/MD
B, pear/Auth_RADIUS, pear/Crypt_CHAP, pear/File_SMBPasswd,
pear/SOAP, 
pecl/vpopm
ail, pecl/kadm5, use --alldeps to download automatically
pear/Auth can optionally use package
"pear/File_Passwd" (version >= 1.1.0)
pear/Auth can optionally use package
"pear/Net_POP3" (version >= 1.3.0)
pear/Auth can optionally use package "pear/MDB"
pear/Auth can optionally use package
"pear/Auth_RADIUS"
pear/Auth can optionally use package
"pear/Crypt_CHAP" (version >= 1.0.0)
pear/Auth can optionally use package
"pear/File_SMBPasswd" (version >= 
1.0.0)
pear/Auth can optionally use package "pear/SOAP"
(version >= 0.9.0)

Fatal error: Call to undefined method 
PEAR_PackageFile_v1::getProvidesExtension(
) in C:PEARPEARDownloaderPackage.php on line 963

Call Stack:
     0.0024   1. () C:PEARpearcmd.php:0
     0.4581   2. PEAR_Command_Common->run()
C:PEARpearcmd.php:304
     0.4581   3. PEAR_Command_Install->doInstall() 
C:PEARPEARCommandCommon.ph
p:273
    31.8837   4. PEAR_Downloader->download() 
C:PEARPEARCommandInstall.php:423

    51.7807   5. PEAR_Downloader->analyzeDependencies() 
C:PEARPEARDownloader.p
hp:388
    51.9469   6.
PEAR_Dependency2->validatePackageDependency() 
C:PEARPEARDownl
oader.php:539
    51.9470   7.
PEAR_Dependency2->_validatePackageDownload() 
C:PEARPEARDepend
ency2.php:615
    51.9515   8. PEAR_Downloader_Package->isExtension() 
C:PEARPEARDependency2.
php:645

regards,
Lukas

-- 
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-11 15:43:15
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

-- 
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 02:50:51
Lukas Kahwe Smith wrote:
> Hannes Magnusson wrote:
>> On 11/11/06, Lukas Kahwe Smith <lsmithphp.net> wrote:
>>> Gregory Beaver wrote:
>>>
>>> > 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.
>>>
>>> it does not work anymore if you have a customer
error handler.
>>
>> Not true. $php_errormsg gets populated if you
return false from your
>> custom error handler.
> 
> correct. sorry about leaving that detail out .. anyways
the pear
> installer works fine for me in 5.2.0 on windows.
actually strike that:
> 
> C:apache_diratelshell>pear upgrade-all
> Will upgrade auth
> Will upgrade console_getargs
> Will upgrade xml_rpc
> Did not download optional dependencies:
pear/File_Passwd, pear/Net_POP3,
> pear/MD
> B, pear/Auth_RADIUS, pear/Crypt_CHAP,
pear/File_SMBPasswd, pear/SOAP,
> pecl/vpopm
> ail, pecl/kadm5, use --alldeps to download
automatically
> pear/Auth can optionally use package
"pear/File_Passwd" (version >= 1.1.0)
> pear/Auth can optionally use package
"pear/Net_POP3" (version >= 1.3.0)
> pear/Auth can optionally use package
"pear/MDB"
> pear/Auth can optionally use package
"pear/Auth_RADIUS"
> pear/Auth can optionally use package
"pear/Crypt_CHAP" (version >= 1.0.0)
> pear/Auth can optionally use package
"pear/File_SMBPasswd" (version >=
> 1.0.0)
> pear/Auth can optionally use package
"pear/SOAP" (version >= 0.9.0)
> 
> Fatal error: Call to undefined method
> PEAR_PackageFile_v1::getProvidesExtension(
> ) in C:PEARPEARDownloaderPackage.php on line 963

You're using 1.4.11, right?

http://pear.
php.net/bugs/bug.php?id=8794

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 08:30:00
Greg Beaver wrote:
> Lukas Kahwe Smith wrote:
>> Hannes Magnusson wrote:
>>> On 11/11/06, Lukas Kahwe Smith <lsmithphp.net> wrote:
>>>> Gregory Beaver wrote:
>>>>
>>>>> 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.
>>>> it does not work anymore if you have a
customer error handler.
>>> Not true. $php_errormsg gets populated if you
return false from your
>>> custom error handler.
>> correct. sorry about leaving that detail out ..
anyways the pear
>> installer works fine for me in 5.2.0 on windows.
actually strike that:
>>
>> C:apache_diratelshell>pear upgrade-all
>> Will upgrade auth
>> Will upgrade console_getargs
>> Will upgrade xml_rpc
>> Did not download optional dependencies:
pear/File_Passwd, pear/Net_POP3,
>> pear/MD
>> B, pear/Auth_RADIUS, pear/Crypt_CHAP,
pear/File_SMBPasswd, pear/SOAP,
>> pecl/vpopm
>> ail, pecl/kadm5, use --alldeps to download
automatically
>> pear/Auth can optionally use package
"pear/File_Passwd" (version >= 1.1.0)
>> pear/Auth can optionally use package
"pear/Net_POP3" (version >= 1.3.0)
>> pear/Auth can optionally use package
"pear/MDB"
>> pear/Auth can optionally use package
"pear/Auth_RADIUS"
>> pear/Auth can optionally use package
"pear/Crypt_CHAP" (version >= 1.0.0)
>> pear/Auth can optionally use package
"pear/File_SMBPasswd" (version >=
>> 1.0.0)
>> pear/Auth can optionally use package
"pear/SOAP" (version >= 0.9.0)
>>
>> Fatal error: Call to undefined method
>> PEAR_PackageFile_v1::getProvidesExtension(
>> ) in C:PEARPEARDownloaderPackage.php on line
963
> 
> You're using 1.4.11, right?
> 
> http://pear.
php.net/bugs/bug.php?id=8794

Yes.

regards,
Lukas

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

[1-9]

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