Page 1 of 1
Installing PEAR
Posted: Thu Jun 17, 2004 8:03 am
by Nunners
I’m trying to install PEAR onto Windows 2000 server, which has Apache etc etc.
- I’ve started the command line, and opened go-pear.php…
- successfully gone through setting up the options…
- But come across with the following when I try and complete installation:
Fatal error: main(): Failed opening required 'PEAR.php' (include_path='/C:\DOCUME~1\ADMINI~1.DEV\LOCALS~1\Temp\gop58.tmp') in c:\www\pear\Archive\Tar.php on line 21
What does it mean?
Posted: Thu Jun 17, 2004 8:19 am
by redmonkey
You need to specify the correct include_path in yout php.ini file.
Posted: Thu Jun 17, 2004 8:51 am
by Nunners
I've already got it in my include_path (:
Is there anything else?
Posted: Thu Jun 17, 2004 8:54 am
by redmonkey
Can you post your include_path line from your php.ini file?
The error reported shows that the only path to look into is a temp directory.
Posted: Thu Jun 17, 2004 8:57 am
by Nunners
This is my include line:
include_path = ".;c:\php\includes;c:\www\smarty\libs;c:\www\pear"
Posted: Thu Jun 17, 2004 9:20 am
by redmonkey
It looks like the installer has failed to copy the pear.php file to the temp directory.
Is this a local or net install?
If it's local, do you have the pear.php file in php/pear/go-pear-bundle
Posted: Thu Jun 17, 2004 9:28 am
by Nunners
It is local....
PEAR.php is in the go-pear-buncle folder....
Posted: Thu Jun 17, 2004 9:33 am
by redmonkey
Can you tell me what the last few lines of output of the installer is prior to the error?
Posted: Thu Jun 17, 2004 9:40 am
by Nunners
The whole command line return reads as follows:....
Loading zlib: ok
Using local package: PEAR.............ok
Using local package: Archive_Tar......ok
Using local package: Console_Getopt....ok
Using local package: XML_RPC..........ok
Bootstrapping: PEAR...................(local) ok
Bootstrapping: Archive_Tar............
Warning: mkdir(Archive): File exists in C:\www\pear\go-pear.php on line 595
(local) ok
Bootstrapping: Console_Getopt.........
Warning: mkdir(Console): File exists in C:\www\pear\go-pear.php on line 609
(local) ok
Using local package: DB...............ok
Using local package: Net_Socket.......ok
Using local package: Net_SMTP.........ok
Using local package: Mail.............ok
Using local package: XML_Parser.......ok
Using local package: PHPUnit..........ok
Extracting installer..................
Warning: main(PEAR.php): failed to open stream: No such file or directory in C:\
www\pear\Archive\Tar.php on line 21
Fatal error: main(): Failed opening required 'PEAR.php' (include_path='/C:\DOCUM
E~1\ADMINI~1.DEV\LOCALS~1\Temp\gop2.tmp') in C:\www\pear\Archive\Tar.php on line
21
After having tried it a number of times - thinking I was being stupid - it keeps getting a couple of lines where it says the file is already there... but I don't think they are causing a problem... or are they?!!!
Posted: Thu Jun 17, 2004 9:52 am
by redmonkey
The warnings about files/directories already being there should not make any difference.
Have a look in the temp directory as quoted by the include_path within the error a see if the PEAR.php file exists in that directory.
Posted: Thu Jun 17, 2004 9:54 am
by Weirdan
Nunners wrote:
After having tried it a number of times - thinking I was being stupid - it keeps getting a couple of lines where it says the file is already there... but I don't think they are causing a problem... or are they?!!!
Definitely no. The issue is your include_path (as you can see from error message). For some reason it points to: /C:\DOCUM
E~1\ADMINI~1.DEV\LOCALS~1\Temp\gop2.tmp (it's current directory perhaps), but does not include c:\www\pear
Posted: Thu Jun 17, 2004 10:05 am
by Nunners
Do i need to include the c:\www\pear in my windows path as well?
Posted: Thu Jun 17, 2004 10:27 am
by redmonkey
The pear installer runs in a temporary directory, the install script sets the include path to that temporary directory.
The neccessary files/directories should also be copied to that temporary directory.
You should not need to add anything to your Windows PATH variable as PHP does not use this.
You need to work out if the install script is running in the correct directory, and if so are the files (PEAR.php in this case) available within this directory.
If the install script is not running in the correct directory, you need to work out why.
Still having problems
Posted: Tue Jul 27, 2004 5:54 am
by Nunners
I've successfully "manually" installed PEAR onto my windows server after trying
many attempts at installing it properly - however, it's prooving a pain in the
arse to upgrade the packages, and install any new ones.
So, can anyone assist in why it won't install?
Loading zlib: ok
Using local package: PEAR.............ok
Using local package: Archive_Tar......ok
Using local package: Console_Getopt....ok
Using local package: XML_RPC..........ok
Bootstrapping: PEAR...................(local) ok
Bootstrapping: Archive_Tar............
Bootstrapping: Console_Getopt.........
Using local package: DB...............ok
Using local package: Net_Socket.......ok
Using local package: Net_SMTP.........ok
Using local package: Mail.............ok
Using local package: XML_Parser.......ok
Using local package: PHPUnit..........ok
Extracting installer..................
Warning: main(PEAR.php): failed to open stream: No such file or directory in C:\
www\pear\Archive\Tar.php on line 21
Fatal error: main(): Failed opening required 'PEAR.php' (include_path='/C:\DOCUM
E~1\ADMINI~1.DEV\LOCALS~1\Temp\gop1.tmp') in C:\www\pear\Archive\Tar.php on line
21