RE: [PEAR] Installing to Windows

From: Date: Mon, 11 Oct 2004 08:59:00 +0000
Subject: RE: [PEAR] Installing to Windows
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14836@lists.php.net to get a copy of this message
Yippee! Finally. I've installed it! And it's working, well nearly! Aaron - you're a genius! I've successfully installed the packages using the installer - for the first time on windows ever! I'm actually using PHP5 - so I'm not quite sure what's going on! I'm now though getting the following bug - which I think it PHP related: Command: pear upgrade-all Error: PHP Warning: Unknown(): (null): Unable to initialize module Module compiled with module API=20040412, debug=0, thread-safety=1 PHP compiled with module API=20020429, debug=0, thread-safety=1 These options need to match in Unknown on line 0 Any thoughts? Cheers Nunners _____ From: Aaron Wormus [mailto:aaron@wormus.com] Sent: 11 October 2004 09:43 To: Nunners Cc: 'Kevin Kraeer'; pear-general@lists.php.net Subject: Re: [PEAR] Installing to Windows I think this is the same problem that we sorted out on IRC last night. It's a known bug that only seems to effect older (< 4.3.3) PHP versions. The problem is on line 388 if go-pear.php, if you run into this problem you can try commenting out this line, or adding the following line after line 389. $ptmp=preg_replace("|^/|", "", $ptmp); The bug is reported at: http://pear.php.net/bugs/bug.php?id=2070 please add any comments to that bug listing. Aaron Nunners wrote: Hi Kevin, I know exactly where you are coming from. I've had the same problems for about 6/7 months now, and have never been able to resolve the problem. I've ended up installing it manually - which when upgrading the modules becomes an absolute nightmare! If you have any luck please do spread the word! Sorry to be negative! Cheers Nunners -----Original Message----- From: Kevin Kraeer [mailto:kgkraeer@kraeeranimation.com] Sent: 08 October 2004 18:54 To: pear-general@lists.php.net Subject: [PEAR] Installing to Windows I did a search for this and actually found the exact same error, but no one had replied to the original poster. I'm a one man band working for an ad agency...good times. At any rate, a client has requested that form values submitted through their website be written to an excel document. I investigated and decided PEAR was probably my best bet (there's an excel writer module if I understand correctly). So, I began what has become a quest to successfully install PEAR to our staging server. It's a Win2K Server running IIS and PHP 4.3.6. Whoever initially installed PHP 4 did not install PEAR along with it for some reason. So I decided to run the command line installer, with the following directories set up: Installation prefix - C:\PHP\pear Binaries Directory - $prefix\bin PHP code directory - $ prefix\docs Documentation base directory - $prefix\docs Data Base Directory - $prefix\data Tests Directory - $prefix\tests php.exe Path - C:\PHP\php.exe I then run the installer, and it does fine for a while. Then, after 'Extracting Installer....' appears I get this: Warning: main(PEAR.php): failed to open stream: No such file or directory in C:\PHP\pear\Archive\Tar.php on line 21 Fatal error: main(): Failed opening required 'PEAR.php' (include_path='/C:\DOCUME~1\ADMIN~1.ORB\LOCALS~1\Temp\3\gop1c.tmp') in C:\PHP\pear\Archive\Tar.php on line 21 So it seems pretty clear that it's an include path problem to me. In my PHP.ini, go-pear added include_path=".;C:\php\pear" So maybe I need to change that to someplace else? But I'm also not so sure about that forward slash in front of 'C:\DOCUME!`.....' Any ideas or advice would be greatly appreciated. As I said, I'm on a solo mission over here - no IT guys, no programming dept. Just ME. heh.

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