How to install PEAR packages onto OS X Leopard (10.5)

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
parka
Forum Commoner
Posts: 52
Joined: Mon Feb 26, 2007 6:48 am

How to install PEAR packages onto OS X Leopard (10.5)

Post by parka »

I've managed to install PEAR onto my Mac using instructions from here .

When I'm trying to install one of the PEAR packages using "pear install Mail_Mime", I get the error message from Terminal saying:

WARNING: configuration download directory "/usr/temp/download" is not writeable. Change download_dir config variable to a writeable dir to avoid this warning
Cannot install, php_dir for channel "pear.php.net" is not writeable by the current user

I used Get Info to make folders writable for a while.

I then use "pear list-all" to get the list of packages. Mail_Mime is not on the list.
It's shown on http://pear.php.net, though.

How do I automatically/manually install the package?

I'm lost here.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Sounds like you need to be running the "pear install" command as root by placing the word "sudo" right infront of the command:

e.g.

Code: Select all

sudo pear install symfony
The missing package sounds like you need to run a "channel-discover" command to let pear know about a new repository.

Code: Select all

sudo pear channel-discover pear.php.net
parka
Forum Commoner
Posts: 52
Joined: Mon Feb 26, 2007 6:48 am

Post by parka »

I managed to install Mail_Mime.

On the terminal it says installation was a success.

But when I hit "pear list", Mail_Mime package wasn't listed.

I'm stuck again.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

parka wrote:I managed to install Mail_Mime.

On the terminal it says installation was a success.

But when I hit "pear list", Mail_Mime package wasn't listed.

I'm stuck again.
From what I remember, 'pear list' is showing what's available in the repository, not what's installed on your computer.
parka
Forum Commoner
Posts: 52
Joined: Mon Feb 26, 2007 6:48 am

Post by parka »

Chris Corbyn wrote:
parka wrote:I managed to install Mail_Mime.

On the terminal it says installation was a success.

But when I hit "pear list", Mail_Mime package wasn't listed.

I'm stuck again.
From what I remember, 'pear list' is showing what's available in the repository, not what's installed on your computer.
Thanks, man.

You're right.
Post Reply