error when installing PEAR
Posted by: orreip (---.cablelink.mures.rdsnet.ro)
Date: January 04, 2007 12:13AM

Hi.
I just installed latest vesion of WAMP, but when i try to install PEAR i get this errors :
<<BEGIN ERROR LOG>>
Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Comma
nd.php on line 268

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Comma
nd.php on line 268

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Comma
nd.php on line 268

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Comma
nd.php on line 268

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Comma
nd.php on line 268

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Comma
nd.php on line 268
Preparing to install...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.1.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.4.11.tar...


Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Ta
r.php on line 2334

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Ta
r.php on line 2338
Could not get contents of package "". Invalid tgz file.
Cannot initialize 'phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.1.t
ar', invalid or missing package file

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Ta
r.php on line 2334

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Ta
r.php on line 2338
Could not get contents of package "". Invalid tgz file.
Cannot initialize 'phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.
tar', invalid or missing package file

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Ta
r.php on line 2334

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/Archive/Ta
r.php on line 2338
Could not get contents of package "". Invalid tgz file.
Cannot initialize 'phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.4.11.tar', i
nvalid or missing package file

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Comma
nd/Install.php on line 427

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Comma
nd/Install.php on line 427

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Comma
nd/Install.php on line 427

Warning: Cannot use a scalar value as an array in phar://go-pear.phar/PEAR/Comma
nd/Install.php on line 429

install failed
<<END ERROR LOG>>
I'm running on windows xp sp2.
What could be the problem ?

EDIT :
i found the problem resolved on the forum
I executed this in c:\wamp\php and it worked:
1) php -r "readfile('http://pear.php.net/go-pear');" > go-pear
2) php go-pear



Post Edited (01-04-07 00:23)

Options: ReplyQuote
Re: error when installing PEAR
Posted by: c00p (---.94.233.220.exetel.com.au)
Date: January 10, 2007 10:21PM

Thanks for the help! Saved me pulling my hair out looking for how to get around this pear installation problem for Windows! (I am a *nix man ...)

Cooper



---
c00p
[cooperlees.com]

Options: ReplyQuote
Re: error when installing PEAR
Posted by: zkent (65.219.237.---)
Date: February 22, 2007 07:34PM

Excellent! Kudos for the tip.

Options: ReplyQuote
Re: error when installing PEAR
Posted by: redwax (---.dsl.pipex.com)
Date: March 06, 2007 11:39AM

I have done this and received 'completed successfully' confirmation. All is well. However, I subsequently receie a file does not exist for db.php, which it thinks is in c:\php5... when it is obviously in c:\wamp\php\....

The includes has been successfully written to php.ini and point to c:\wamp\php... and I'm therefore at a loss as to why it is looking a a php5 directory. Any ideas?

Options: ReplyQuote
Re: error when installing PEAR
Posted by: ALF (158.116.134.---)
Date: March 07, 2007 10:42PM

Pear has a statement to move from "dp.php" to "MDB2.php" as it is no longer supported.
In order to use the Database Scripts you must change the "include_path" in your "php.ini" file to include_path = ".;x:\wamp\www\phplib\"
or
you can either include the path within your script.

i.e.
$PATH = 'X:/wamp/php/PEAR';
init_set('include_path', ';'. $PATH . ';' . ini_get('include_path'));
// on require once you can set it to 'DB.php' if you have that installed in your system
require_once 'MDB2.php';


have fun.

Options: ReplyQuote
Re: error when installing PEAR
Posted by: redwax (---.dsl.pipex.com)
Date: March 08, 2007 03:46PM

I may not have conveyed my problem very clearly (I am good at that!)

This is the error I get:

Warning: require_once(DB.php) [function.require-once]: failed to open stream: No such file or directory in O:\WEBSITESandGRAPHICS\phpstudy\test.php on line 4

Fatal error: require_once() [function.require]: Failed opening required 'DB.php' (include_path='.;C:\php5\pear') in O:\WEBSITESandGRAPHICS\phpstudy\test.php on line 4

for reference, line 4 is: require_once('DB.php');

php.ini can be found @ [redwax.co.uk]

Thank you for your help

Options: ReplyQuote
Re: error when installing PEAR
Posted by: Mad Clown (---.nexus-is.qc.ca)
Date: March 13, 2007 04:05PM

I have done what you said...
{"
i found the problem resolved on the forum
I executed this in c:\wamp\php and it worked:
1) php -r "readfile('http://pear.php.net/go-pear');" > go-pear
2) php go-pear¨
"}
but it give me these warnings and errors:
--------------------------------------------------------------------------------------------
The following PEAR packages are bundled with PHP: MDB2.
Would you like to install these as well? [Y/n] : y

Loading zlib: ok
Downloading package: PEAR-stable......ok
Downloading package: Archive_Tar-stable....ok
Downloading package: Console_Getopt-stable....ok
Downloading package: Structures_Graph-stable....ok
Bootstrapping: PEAR...................(remote) ok
Bootstrapping: Archive_Tar............(remote) ok
Bootstrapping: Console_Getopt.........(remote) ok
Bootstrapping: Console_Getopt.........
Warning: mkdir(): File exists in C:\wamp\php\go-pear on line 716
(remote) ok
Downloading package: MDB2.............ok
Extracting installer..................ok
warning: pear/PEAR requires package "pear/Archive_Tar" (version >= 1.3.1)
warning: pear/PEAR requires package "pear/Console_Getopt" (version >= 1.2)
warning: pear/PEAR requires package "pear/Structures_Graph" (version >= 1.0.2)
pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0)
pear/PEAR can optionally use package "pear/PEAR_Frontend_Web" (version >= 0.5.0)

pear/PEAR can optionally use package "pear/PEAR_Frontend_Gtk" (version >= 0.4.0)

install ok: channel://pear.php.net/PEAR-1.5.1

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 9
8304 bytes) in C:\wamp\php\temp\gop9C.tmp\PEAR\PackageFile\v2\Validator.php on l
ine 1913

Warning: unlink(C:\wamp\php\temp/gop9C.tmp\PEAR\PackageFile\v2\Validator.php): P
ermission denied in C:\wamp\php\go-pear on line 1190

Warning: rmdir(C:\wamp\php\temp/gop9C.tmp\PEAR\PackageFile\v2): Directory not em
pty in C:\wamp\php\go-pear on line 1197

Warning: rmdir(C:\wamp\php\temp/gop9C.tmp\PEAR\PackageFile): Directory not empty
in C:\wamp\php\go-pear on line 1197

Warning: rmdir(C:\wamp\php\temp/gop9C.tmp\PEAR): Directory not empty in C:\wamp\
php\go-pear on line 1197

Warning: rmdir(C:\wamp\php\temp/gop9C.tmp): Directory not empty in C:\wamp\php\g
o-pear on line 1197

C:\wamp\php>
-----------------------------------------------------------------------

Can anyone help me?



Are You Mad?

Options: ReplyQuote
Re: error when installing PEAR
Posted by: redwax (---.dsl.pipex.com)
Date: March 13, 2007 07:06PM

Mad Clown wrote:

> I have done what you said...
> {"
> i found the problem resolved on the forum
> I executed this in c:\wamp\php and it worked:
> 1) php -r "readfile('http://pear.php.net/go-pear');" > go-pear
> 2) php go-pear¨
> "}
> but it give me these warnings and errors:
> --------------------------------------------------------------------------------------------
> The following PEAR packages are bundled with PHP: MDB2.
> Would you like to install these as well? [Y/n] : y
>
> Loading zlib: ok
> Downloading package: PEAR-stable......ok
> Downloading package: Archive_Tar-stable....ok
> Downloading package: Console_Getopt-stable....ok
> Downloading package: Structures_Graph-stable....ok
> Bootstrapping: PEAR...................(remote) ok
> Bootstrapping: Archive_Tar............(remote) ok
> Bootstrapping: Console_Getopt.........(remote) ok
> Bootstrapping: Console_Getopt.........
> Warning: mkdir(): File exists in C:\wamp\php\go-pear on line
> 716
> (remote) ok
> Downloading package: MDB2.............ok
> Extracting installer..................ok
> warning: pear/PEAR requires package "pear/Archive_Tar" (version
> >= 1.3.1)
> warning: pear/PEAR requires package "pear/Console_Getopt"
> (version >= 1.2)
> warning: pear/PEAR requires package "pear/Structures_Graph"
> (version >= 1.0.2)
> pear/PEAR can optionally use package "pear/XML_RPC" (version >=
> 1.4.0)
> pear/PEAR can optionally use package "pear/PEAR_Frontend_Web"
> (version >= 0.5.0)
>
> pear/PEAR can optionally use package "pear/PEAR_Frontend_Gtk"
> (version >= 0.4.0)
>
> install ok: channel://pear.php.net/PEAR-1.5.1
>
> Fatal error: Allowed memory size of 8388608 bytes exhausted
> (tried to allocate 9
> 8304 bytes) in
> C:\wamp\php\temp\gop9C.tmp\PEAR\PackageFile\v2\Validator.php on
> l
> ine 1913
>
> Warning:
> unlink(C:\wamp\php\temp/gop9C.tmp\PEAR\PackageFile\v2\Validator.php):
> P
> ermission denied in C:\wamp\php\go-pear on line 1190
>
> Warning: rmdir(C:\wamp\php\temp/gop9C.tmp\PEAR\PackageFile\v2):
> Directory not em
> pty in C:\wamp\php\go-pear on line 1197
>
> Warning: rmdir(C:\wamp\php\temp/gop9C.tmp\PEAR\PackageFile):
> Directory not empty
> in C:\wamp\php\go-pear on line 1197
>
> Warning: rmdir(C:\wamp\php\temp/gop9C.tmp\PEAR): Directory not
> empty in C:\wamp\
> php\go-pear on line 1197
>
> Warning: rmdir(C:\wamp\php\temp/gop9C.tmp): Directory not empty
> in C:\wamp\php\g
> o-pear on line 1197
>
> C:\wamp\php>
> -----------------------------------------------------------------------
>
> Can anyone help me?
>


Sorry, I'm not quite sure where the help fits into this reply?

Options: ReplyQuote


Sorry, only registered users may post in this forum.