Re: What's up with pear?

From: Date: Thu, 13 Feb 2003 13:39:26 +0000
Subject: Re: What's up with pear?
References: 1 2 3 4 5 6  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3738@lists.php.net to get a copy of this message
Re: You have to change pear.bat so that it points to the right folders and drives, but it's just 3 lines. Yes, but it is not intuitively obvious what these paths are supposed to be. set PHP_BIN=@php_bin@ set BIN_DIR=@bin_dir@ set PEAR_PATH=@include_path@ My environment is installed in D:\PHP, so I set the paths as follows: set PHP_BIN=D:\PHP\php.exe set BIN_DIR=D:\PHP\pear set PEAR_PATH=D:\PHP\pear\pear Running the batch file via. D:\>pear list Echoes a command line. >D:\PHP\php.exe -d output_buffering=1 -d include_path=D:\PHP\pear -f D:\PHP\pear\pear - list Which produces the error message: Could not open input file: D:\PHP\pear\pear. D:\> I'm confused about who we are calling to run PEAR. Is it pear.php? What am I missing here? Seaquest http://www.seaquest.com ----------------------------- "Matt Robinson" <matt@lazycat.org> wrote in message news:3E4A8CDA.9020909@lazycat.org... > Alright, to clear up a couple of issues: > > 1. Downloading PEAR from CVS doesn't make a working installation - the > CVS tree uses a different folder layout. At least, this is my > experience. > 2. Sounds like you're suffering the bug I had when installing PEAR in a > different drive than your Windows install. Have a look on C:\ - it's > very likely that PEAR half-installed to the wrong drive. Just copy > C:\php4\pear into E:\php4\pear (if those are you installation > folders). Go-pear also (perhaps because of this bug) tries to create > the pear package manager as c:\php4\pear which causes a conflict > (because a folder with the same name already exists). The package > manager is probably called .tmppear or something similar. Rename it > to pear.in and you should then be able to run it with PHP to install > more packages. > 3. Running the CVS version of anything is always "cutting-edge" and > sometimes this means you'll bleed for it. You'd be better off with > just the plain PHP 4.3.0 install for windows and the go-pear script. > > If that doesn't work, download > http://lazycat.org/software/pear-plus.zip > and unzip it into your PHP directory. That's my current installation of > PEAR from this morning (everything's up to date). You have to change > pear.bat so that it points to the right folders and drives, but it's > just 3 lines. You also have to add the PEAR folder to your PHP.ini file > (probably in c:\windows\php.ini). Search the ini file for > "include_path" and make sure the list has e:\bin\php\pear (or wherever) > in it. Also make sure the line isn't commented out (remove the ; from > the front if there is one). I've tested this on both my machines and it > works fine, but your mileage may vary. From there you can do: > > pear list (to see what's installed) > pear list-upgrades (to see if there's anything new) > pear upgrade-all (to .. well, upgrade anything that needs upgrading) > and > pear uninstall (packagename) (to get rid of anything you don't want) > > Hope that helps. > > -- Matt >

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