Page 1 of 1

cannot install PEAR modules in xampp 1.8.0

PostPosted: 09. September 2012 13:27
by georgefk
Good afternoon and greetings. I seek help with loading PEAR modules on a Windows 7 Pro machine, something that worked nicely with Vista/ xampp 1.7.7
My PEAR works.
I show below my attempts:

C:\Users\george>pear channel-update pear.php.net
Updating channel "pear.php.net"
Channel "pear.php.net" is up to date

C:\Users\george>pear install Mail
No releases available for package "pear.php.net/Mail"
install failed

Does anyone know how to load PEAR modules in xampp 1.8.0?

best wishes
georgefk

Re: cannot install PEAR modules in xampp 1.8.0

PostPosted: 16. September 2012 17:25
by georgefk
Let us tie this up.

Type
pear clear-cache

There is something odd about my installation.
When I type
pear config-show
some paths start C:\php\ rather than C:\xampp\php\
This leads to installation errors.
Use
pear config-set
to correct these pathnames.

pear install mail
etc
now works perfectly.

The correct terminology is PEAR "package" not module. Sorry!

I hope that this is of use to others.

best wishes
georgefk

Re: cannot install PEAR modules in xampp 1.8.0

PostPosted: 16. September 2012 18:28
by georgefk
Final point.

You cannot write to C:\windows\ in Windows 7.

Look at
pear config-show
for instances of this.

Change them to C:\xampp\php\ paths instead.

Re: cannot install PEAR modules in xampp 1.8.0

PostPosted: 16. September 2012 21:57
by JonB
Thanks for doing that research and posting your results.

8)

Re: cannot install PEAR modules in xampp 1.8.0

PostPosted: 18. September 2012 04:59
by hackattack142
Thanks for pointing this out. I will add the missing paths to the XAMPP Shell in the next Control Panel version which should be in XAMPP 1.8.1.