Installing PEAR
Moderator: General Moderators
Installing PEAR
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?
- 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?
The whole command line return reads as follows:....
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?!!!
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
Definitely no. The issue is your include_path (as you can see from error message). For some reason it points to: /C:\DOCUMNunners 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?!!!
E~1\ADMINI~1.DEV\LOCALS~1\Temp\gop2.tmp (it's current directory perhaps), but does not include c:\www\pear
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.
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
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
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