PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
PEAR Install fails

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration
View previous topic :: View next topic  
Author Message
jjkramer



Joined: 16 Dec 2010
Posts: 2
Location: Newark, DE

PostPosted: Thu Dec 16, 2010 8:02 pm    Post subject: PEAR Install fails Reply with quote

I am running PHP 5.3.4 on Windows 7 64-bit and am using go-pear.php from pear/php.net/go-pear, so I'm pretty sure I am not having problems with old files. I have not had PEAR installed before.

I tried using the go-pear.bat that comes with the install of PHP, but that did not work.

When I run php.exe go-pear.php I get an error with the Structure_Graph part of the install. I will paste the output from the screen and the error log messages below.

I have tried using go-pear.php from the web, and I get the same problem.

I noticed that the instructions at the top of go-pear.php say to use -q in the command line, but -q is not shown as a switch in the PHP documentation. I have tried with the -q switch, but I still get the same error.

After following the instructions here: http://www.pear-forum.org/topic2424.html, I was able to get PEAR to install, but with errors. I then issued the pear upgrade PEAR command to get to the current version, but I get the same Structure_graph error, which stops me cold.

Thank you for any help you can provide.

Screen output:
C:\Program Files (x86)\PHP>php go-pear.php
Welcome to go-pear!

Go-pear will install the 'pear' command and all the files needed by
it. This command is your tool for PEAR installation and maintenance.

Use 'php go-pear.php local' to install a local copy of PEAR.

Go-pear also lets you download and install the following optional PEAR
packages: PEAR_Frontend_Web-beta, PEAR_Frontend_Gtk2, MDB2.


If you wish to abort, press Control-C now, or press Enter to continue:

HTTP proxy (http://user:password@proxy.myhost.com:port), or Enter for none::
'c:\program' is not recognized as an internal or external command,
operable program or batch file.

*WARNING*
We found php.exe under c:\program files (x86)\php\php.exe, it uses an unknown SA
PI. PEAR commandline
tool has not been tested with it, if you have a CLI (or CGI) php.exe available,
we strongly recommand to use it.


Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type 'all' to change all of them or simply press Enter to
accept these locations.

1. Installation prefix ($prefix) : C:\Program Files (x86)\PHP
2. Temporary files directory : $prefix\temp
3. Binaries directory : $prefix
4. PHP code directory ($php_dir) : $prefix\pear
5. Documentation base directory : $php_dir\docs
6. Data base directory : $php_dir\data
7. Tests base directory : $php_dir\tests
8. php.exe path : c:\program files (x86)\php\php.exe

1-8, 'all' or Enter to continue:

The following PEAR packages are bundled with PHP: PEAR_Frontend_Web-beta,
PEAR_Frontend_Gtk2, MDB2.
Would you like to install these as well? [Y/n] : Y

Loading zlib: ok

Bootstrapping Installer...................
Bootstrapping PEAR.php............(remote) ok
Bootstrapping Archive/Tar.php............(remote) ok
Bootstrapping Console/Getopt.php............(remote) ok

Extracting installer..................
Downloading package: PEAR.............ok
Downloading package: Structures_Graph....
Error while opening {C:/Program Files (x86)/PHP/temp/docs/html/Structures_Graph/
Structures_Graph_Manipulator_TopologicalSorter.html




} in write binary
mode


PHP Error Log
[16-Dec-2010 12:17:54] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\Program Files (x86)\PHP\go-pear.php on line 725
[16-Dec-2010 12:17:54] PHP Deprecated: Function ereg() is deprecated in C:\Program Files (x86)\PHP\go-pear.php on line 1406
[16-Dec-2010 12:18:23] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\Program Files (x86)\PHP\temp\PEAR.php on line 563
[16-Dec-2010 12:18:23] PHP Deprecated: Assigning the return value of new by reference is deprecated in C:\Program Files (x86)\PHP\temp\PEAR.php on line 566
[16-Dec-2010 12:18:25] PHP Deprecated: Function eregi() is deprecated in C:\Program Files (x86)\PHP\go-pear.php on line 1080
[16-Dec-2010 12:18:28] PHP Deprecated: Function eregi() is deprecated in C:\Program Files (x86)\PHP\go-pear.php on line 1080
[16-Dec-2010 12:18:29] PHP Warning: unlink(C:\Program Files (x86)\PHP\temp\Structures_Graph-1.0.4.tgz): Permission denied in C:\Program Files (x86)\PHP\go-pear.php on line 1230
[16-Dec-2010 12:18:29] PHP Warning: rmdir(C:\Program Files (x86)\PHP\temp): Directory not empty in C:\Program Files (x86)\PHP\go-pear.php on line 1237
Back to top
View user's profile Send private message
jjkramer



Joined: 16 Dec 2010
Posts: 2
Location: Newark, DE

PostPosted: Fri Dec 17, 2010 10:02 pm    Post subject: Eventual Success Reply with quote

I have answered my own question, but it took some doing.

1 - I ran the go-pear.bat that comes with the PHP install. It installs PEAR, but generates an error trying to install Structures_Graphwhich leaves it missing, which generates errors anytime you try to install or upgrade any other package. I had to run the go-pear.bat file as described in the post to get it to work at all: http://www.pear-forum.org/topic2424.html

2 - I downloaded and uncompressed Structures_Graph from the pear.php.net website. Then I copied the Structure folder into the PEAR folder.

3 - Issue "pear install Structures_Graph". Even though the files are present, Structures_Graph is not really installed unless you issue the above command.

4 - Issue "pear upgrade PEAR". This upgrades PEAR itself to the current version.

5 - Issue "pear upgrade Console_Getopt". This upgrades Console_Getopt to the current version.

Jason
Back to top
View user's profile Send private message
devashanti



Joined: 30 Dec 2010
Posts: 4
Location: Oregon

PostPosted: Thu Dec 30, 2010 9:24 pm    Post subject: can you tell me where to find the go-pear.bat file? Reply with quote

Please look at my post titled: How to Install PEAR packages on a Linux Server

Maybe your experience can help me figure out how to install PEAR packages on my virtual dedicated server.

Please reply to my post if you can help me understand this better.

Denise
_________________
D. Subra
http://sai-database-experts.com
Back to top
View user's profile Send private message
xtrm



Joined: 13 Jan 2011
Posts: 1

PostPosted: Thu Jan 13, 2011 5:26 pm    Post subject: Reply with quote

to install pear on windows XP I have to do the following steps written on another post of other user:

Quote:
Instead of using the outdated http://pear.php.net/go-pear , use http://pear.php.net/go-pear.phar
It cannot be piped into php but must be saved first and then executed with php: $ wget http://pear.php.net/go-pear.phar && php go-pear.phar


1. OPEN AND SAVE http://pear.php.net/go-pear.phar with firefox AND DO NOT DELETE ANY CONTENT OF THE FILE. (the file has a signature at the end and if you delete it, it wont work giving a manifest error.. someone could have explained that before.....).

2. copy the file go-pear.phar to php installation directory. For instance c:\php
and Execute:
cd c:\php
php go-pear.phar

Once installed, if u are under a proxy, you can change the default proxy options for pear with this command:
pear config-set http_proxy http://username:password@yourproxy:80

more info:
http://blog.ekini.net/2008/03/06/using-pear-behind-a-proxy-server-that-requires-authentication/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement