PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Package upgrade detects wrong Installer version

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration
View previous topic :: View next topic  
Author Message
anty



Joined: 08 Jul 2007
Posts: 3

PostPosted: Sun Jul 08, 2007 11:29 am    Post subject: Package upgrade detects wrong Installer version Reply with quote

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
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1230

PostPosted: Sun Jul 08, 2007 12:54 pm    Post subject: Reply with quote

That's strange. Did you try "-f" also for the Mail_mime installation or only for PEAR?
Back to top
View user's profile Send private message
anty



Joined: 08 Jul 2007
Posts: 3

PostPosted: Sun Jul 08, 2007 1:00 pm    Post subject: both Reply with quote

I tried it for both and several times.
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1230

PostPosted: Sun Jul 08, 2007 1:03 pm    Post subject: Reply with quote

What does "pear -V" show you?

I'm not sure, but maybe "pear clear-cache" might help.
Back to top
View user's profile Send private message
anty



Joined: 08 Jul 2007
Posts: 3

PostPosted: Sun Jul 08, 2007 1:48 pm    Post subject: Thanks Reply with quote

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 Wink
_________________
anty.at
Back to top
View user's profile Send private message
jbwtucker



Joined: 18 Feb 2009
Posts: 1

PostPosted: Wed Feb 18, 2009 1:51 am    Post subject: Upgrade didn't work Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement