Page 1 of 1

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

Posted: Wed Nov 28, 2007 10:06 pm
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.

Posted: Wed Nov 28, 2007 11:04 pm
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

Posted: Wed Nov 28, 2007 11:13 pm
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.

Posted: Wed Nov 28, 2007 11:28 pm
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.

Posted: Thu Nov 29, 2007 12:20 am
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.