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.
How to install PEAR packages onto OS X Leopard (10.5)
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
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.
The missing package sounds like you need to run a "channel-discover" command to let pear know about a new repository.
e.g.
Code: Select all
sudo pear install symfonyCode: Select all
sudo pear channel-discover pear.php.net- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Thanks, man.Chris Corbyn wrote:From what I remember, 'pear list' is showing what's available in the repository, not what's installed on your computer.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.
You're right.