Hi all.
I have a problem installing PEAR under XAMPP as follow:
Problem:
Once I extract XAMPP and run go-pear.php, the following error occur:
Starting installation ...
Loading zlib: ok
Using local package: PEAR.............ok
Downloading package: Archive_Tar......ok
Downloading package: Console_Getopt....ok
Downloading package: XML_RPC..........ok
Downloading package: Pager............ok
Downloading package: HTML_Template_IT....ok
Downloading package: Net_UserAgent_Detect....ok
Downloading package: PEAR_Frontend_Web....ok
Bootstrapping: PEAR...................(local) ok
Bootstrapping: Archive_Tar............(local) ok
Bootstrapping: Console_Getopt.........(local) ok
Downloading package: DB...............ok
Downloading package: Net_Socket.......ok
Downloading package: Net_SMTP.........ok
Downloading package: Mail.............ok
Downloading package: XML_Parser.......ok
Downloading package: PHPUnit..........ok
Extracting installer.................. Invalid checksum for file " Warning: unlink(C:\DOCUME~1\lap\LOCALS~1\Temp/gop20.tmp\PEAR.php) [function.unlink]: Permission denied in C:\xampp\php\pear\go-pear.php on line 1081
Warning: rmdir(C:\DOCUME~1\lap\LOCALS~1\Temp/gop20.tmp) [function.rmdir]: Directory not empty in C:\xampp\php\pear\go-pear.php on line 1085
And the installation stop, PEAR cannot be used.
Probably solution:
- download PHP 5.0.4 from www.php.net
- extract and copy folder PEAR and go-pear.bat
- rename folder PEAR > PEAR.old and go-pear.bat > go-pear.bat.old as a backup in XAMPP
- paste folder PEAR and go-pear.bat from PHP 5.0.4 to x:\xampp\php.
- run go-pear.bat
And it works!!!
I just think if it is a bug in XAMPP. So I hope apachefriends can fix this.
Thank you and correct me if I am wrong.