Re: Pear Installation Problems

From: Date: Wed, 07 Apr 2004 08:23:23 +0000
Subject: Re: Pear Installation Problems
References: 1 2 3 4 5 6 7  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11691@lists.php.net to get a copy of this message
Dear Firman, Greg and Roger, Thanks very much for all the help, eventually got it working following Greg's email and comment made by Firman and Roger, so here goes. Before running the go-pear.bat edit the line (shown below) by removing the -n %PHP_BIN% -n -d output_.... -n tells the cli PHP not to use php.ini. This is incorrect behaviour, and will be fixed in the next release, hopefully. Now run the go-pear.bat and follow on screen prompts, confirming the file layout for your pear installation. This will create a new batch file called pear which I then hired wired, having removed the error trapping, essentially you end up with the following: - @ECHO OFF "c:\Php\cli\php.exe" -C -d output_buffering=1 -d include_path="c:\Php\pear" -f "c:\Php\pear\pearcmd.php" -- %1 %2 %3 %4 %5 %6 %7 %8 %9 @ECHO ON Double click the "PEAR_ENV.reg" file and now run the pear.bat from the shell and it will work, to test it use the following argument "pear list" and it should output the packages installed. PS. make sure that your php.ini has the c:\Php\pear directory in the include setting. Once again, thanks for everyone's help and hope this helps someone else one day. Regards, Charlie. "Charles Collins" <sales@ayrmer.co.uk> wrote in message news:20040406153106.47225.qmail@pb1.pair.com... Dear Firman, I thought Pear was menat to make things easier? Any further toughts on this issue, I'm starting to regret getting involved in this project. Regards, Charlie. "Firman Wandayandi" <fwd@vfemail.net> wrote in message news:00bc01c41bca$0b5637c0$377c5e3d@orangenigma... Ok! The problem might be pear.bat. Please take look pear.bat, I guess you need to edit it manually, make sure PHP_PEAR_INSTALL_DIR=C:\php\pear or attach the pear.bat to the email with "txt" extension for more clearly. Firman ----- Original Message ----- From: "Charles Collins" <sales@ayrmer.co.uk> To: <pear-general@lists.php.net> Sent: Tuesday, April 06, 2004 6:12 PM Subject: Re: [PEAR] Pear Installation Problems > Dear Firman, > > Still not working, trying to run c:\php\pear.bat from the dos sheel and > still getting the same message. > > Also check envirmental varials and dos path and all OK. > > Regards, > Charlie. > > "Firman Wandayandi" <fwd@vfemail.net> wrote in message > news:009701c41bc7$6f713af0$377c5e3d@orangenigma... > Yes, It is. > > Still not works? > > Firman > > ----- Original Message ----- > From: "Charles Collins" <sales@ayrmer.co.uk> > To: <pear-general@lists.php.net> > Sent: Tuesday, April 06, 2004 5:38 PM > Subject: Re: [PEAR] Pear Installation Problems > > > > Dear Firman, > > > > See php.ini include_path:- > > > > include_path=".;c:\php;c:\php\pear;c:\php\includes;c:\user\mibs;" > > > > Is this correct? > > > > "Firman Wandayandi" <fwd@vfemail.net> wrote in message > > news:007101c41bc2$8f386660$377c5e3d@orangenigma... > > Hi Collins, > > > > Hmm..., this topic has been posted recently. Take look at the arhives at > > http://marc.theaimsgroup.com/?l=pear-general. For short, > > please check > > php.ini at include_path directive, please remove semicolon at front of > that. > > > > include_path=path/to/pear > > > > Regards, > > Firman > > > > ----- Original Message ----- > > From: "Charles Collins" <sales@ayrmer.co.uk> > > To: <pear-general@lists.php.net> > > Sent: Tuesday, April 06, 2004 4:59 PM > > Subject: [PEAR] Pear Installation Problems > > > > > > > I am trying to install Pear on Windows Apache 1.3.26 / PHP 4.35. When I > > try > > > and run the go-pear command from the dos prompt all seems fine until > after > > > the install has completed and then I get the following output: - > > > > > > WARNING! The include path defined in the currectly used php.ini does > not > > > contain the PEAR PHP directory you just specified. > > > <c:\Php\pear> > > > If the specified directory is also not in the include_path used by your > > > scripts, you will have problems getting any PEAR packages working. > > > Current include path: .;c:\php4\pear > > > Cnfigured dirtectory: c:\Php\pear > > > Currently used php.ini (guess): > > > Press enter to continue: > > > > > > I have checked that the include_path is set and the enviromental > variables > > > are correct. > > > > > > The Pear installation creates the pear.ini file and dumps it in a new > dir > > > <c:\php4\pear.ini>, is this correct? > > > > > > I then run pear from from the command line and get the following: - > > > > > > PHP_PEAR_INSTALL_DIR is not set correctly. > > > Please fix it using your enviromental variable or modify the default > value > > > in pear.bat. > > > The current value is: > > > ECHO is off. > > > > > > Thanks in advance. > > > > > > From: Charlie Collins > > > Email: charliecollins@ayrmer.co.uk > > > > > > -- > > > PEAR General Mailing List (http://pear.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > -- > > PEAR General Mailing List (http://pear.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.pear.general (#11691) next »