| View previous topic :: View next topic |
| Author |
Message |
anty
Joined: 08 Jul 2007 Posts: 3
|
Posted: Sun Jul 08, 2007 11:29 am Post subject: Package upgrade detects wrong Installer version |
|
|
I want to install the package Mail_Mime, but I always get this error message on "pear upgrade Mail_Mime" or "pear install Mail_Mime":
| Code: | pear/Mail_Mime requires PEAR Installer (version >= 1.6.0), installed version is 1.5.0
pear/Mail_mimeDecode requires PEAR Installer (version >= 1.6.0), installed version is 1.5.0
pear/Mail_mimeDecode requires package "pear/Mail_Mime" (version >= 1.4.0, excluded versions: 1.4.0)
No valid packages found
install failed |
The problem is my PEAR is already on version 1.6.1. I upgraded it beforehand and retried several times with the force-switch enabled. PEAR upgrades successfully but Mail_Mime doesn't recognize it.
What can I do to get the Mail_Mime Package working? |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1230
|
Posted: Sun Jul 08, 2007 12:54 pm Post subject: |
|
|
| That's strange. Did you try "-f" also for the Mail_mime installation or only for PEAR? |
|
| Back to top |
|
 |
anty
Joined: 08 Jul 2007 Posts: 3
|
Posted: Sun Jul 08, 2007 1:00 pm Post subject: both |
|
|
| I tried it for both and several times. |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1230
|
Posted: Sun Jul 08, 2007 1:03 pm Post subject: |
|
|
What does "pear -V" show you?
I'm not sure, but maybe "pear clear-cache" might help. |
|
| Back to top |
|
 |
anty
Joined: 08 Jul 2007 Posts: 3
|
Posted: Sun Jul 08, 2007 1:48 pm Post subject: Thanks |
|
|
Thank you mark for showing me that there is a "pear -V" command.
This way I could fix my problem.
The reason why it didn't work was a bad configured PHP-path.
I was using PHP5 as a CGI version, but pear still used the PHP4 path.
I don't know why, but changing the paths to the PHP5 version worked.
In case someone has the same problems, this is what I did in detail:
- pear config-set php_bin /home/username/php5/bin/php
- export PHP_PEAR_PHP_BIN=/home/username/php5/bin/php
- export PATH=/home/username/pear/:/home/username/php5/bin:$PATH
Finally I could upgrade PEAR and Mail_Mime to the latest version.
My host is dreamhost... maybe the PHP_PEAR_PHP_BIN does only work for that host?
Thanks again mark  _________________ anty.at |
|
| Back to top |
|
 |
jbwtucker
Joined: 18 Feb 2009 Posts: 1
|
Posted: Wed Feb 18, 2009 1:51 am Post subject: Upgrade didn't work |
|
|
I also use DreamHost, and I've been having the exact same problem. Trying to install Mail_Mime, getting the exact same 3 error messages.
When I do "pear -V" I see that the current pear version is 1.5.0 and the current PHP version is 4.4.9.
I did the 3 things you listed, exactly as you listed them. But nothing has changed.
You said that after those three things, you were able to upgrade Pear and Mail_Mime. How did you do that? I'm a bit of a shell noob, and when I try to upgrade pear, it tells me I've got the latest version. But "pear -V" still shows version 1.5.0.
Any help? |
|
| Back to top |
|
 |
|