Page 1 of 1

Pear Mgr fails to install new packages (Xampp .12 release)

PostPosted: 07. March 2005 17:37
by tbalon
I'm running the .12 release of Xampp on windows XP pro.
I run with administrator privs on XP.

I followed the instructions on the Pear site to create the pear manager
on windows.

see: http://pear.php.net/manual/en/installation.getting.php


I did get some error messages about temporary files at the end but
that appeared to be a cleanup issue. The pear.bat file is there, and
it functions (partially).

I can run pear, pear list shows all the packages installed. If I attempt
to install a new package, things go okay until the very end. It downloads
the file, unpacks it just fine but dies at the end while trying to
grab a file lock.

D:\>pear install http://creole.phpdb.org/pear/creole-current.tgz
downloading creole-current.tgz ...
Starting to download creole-current.tgz (74,229 bytes)
.................done: 74,229 bytes
could not create lock file: failed to open stream: Permission denied

At this point the files are in the PEAR directory. Pear list does not show
the package as being installed. I looks like PEAR cannot update its
internal DB of packages.

pear -vvv doesn't give much more information about why it fails. Anyone
debugged this ?

Tom

PostPosted: 08. March 2005 00:58
by jchapel
I'm just getting started with Pear and PHP so I won't be much help, but I can give you some hope. I have done a Pear installs and upgrades with 1.4.12

have you run go-pear.bat to set up pear paths? Set up pear path in your systems path?

http://www.sitepoint.com/article/getting-started-with-pear

This tutorial link I found useful. Describes setting up Pear and installations

PostPosted: 08. March 2005 15:37
by frozen
Kinda off topic but not at the same time. What is Pear, I see people talk about it all the time and yet I do not have a clue what it is.

PostPosted: 08. March 2005 16:18
by tbalon
Thanks, but I did create the pear manager by running the bat file. The paths appear to be ok.

Tom

jchapel wrote:I'm just getting started with Pear and PHP so I won't be much help, but I can give you some hope. I have done a Pear installs and upgrades with 1.4.12

have you run go-pear.bat to set up pear paths? Set up pear path in your systems path?

http://www.sitepoint.com/article/getting-started-with-pear

This tutorial link I found useful. Describes setting up Pear and installations

PostPosted: 08. March 2005 16:23
by tbalon
Well, it's essentially a framework and system for distributing reusable PHP components. There are components that provide authentcation that you
could use to provide a login on your site, there are DB classes that abstract
the database so that you can write portable code that works with say MySQL
and sqlserver etc.

Well worth checking out. http://pear.php.net/

frozen wrote:Kinda off topic but not at the same time. What is Pear, I see people talk about it all the time and yet I do not have a clue what it is.