Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

After upgrading Lion to Mountain Lion, the MacPorts system seems broken.

Refering to the MacPorts's migration page, the best solution seems to unistall all and reinstall all the ports.

Is there a simpler/less drastic solution?

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

Here is how I fix it (after Mountain Lion update):

  • install the latest MacPorts DMG dedicated to Mountain Lion over the old one;
  • install the latest Xcode version from the AppStore (it doesn't update by itself!);
  • launch Xcode and agree to the licence;
  • in Xcode's Preferences, at the Download's tab, in the Components section, install Command Line Tools (as since Xcode 4.3);
  • don't forget that you must read and accept licence for it, this is possible after running the following command in the terminal: sudo xcodebuild -license.
  • in terminal:
    • sudo port selfupdate
    • sudo port upgrade outdated

After that, everything works except MongoDB, After some research, I found this article (How to upgrade MacPorts to OS X 10.8 Mountain Lion) by Phil Freo.

Thanks to this article, which reassured me in my approach, I also found the solution to my last issue:

Everything finished and worked properly except MongoDB. Currently there is an incompatibility between boost 1.50 and MongoDB which can be resolved with these two commands, assuming boost 1.49 was previously installed on your machine:

  • sudo port activate boost @1.49.0_0
  • sudo port -n install mongodb
share|improve this answer
1  
The mongodb solution proposed only works if mongodb was already installed prior to installing Mountain Lion. If, on the other hand you wish to install mongodb fresh, this will not help you because the mongodb configurations upgrades boost to 1.5.0 which breaks mongodb! It seems like the only workaround is to wait for the maintainers of the mongodb port to resolve the boost issue. –  user26955 Aug 7 '12 at 16:30
1  
MongoDB issue here: trac.macports.org/ticket/35726 –  Somatik Aug 24 '12 at 19:41
    
Here is the original ticket: trac.macports.org/ticket/35118 –  Pascal Qyy Sep 11 '12 at 14:44
    
The ticket for the Boost problem in MongoDB is here: jira.mongodb.org/browse/SERVER-4314 –  Pascal Qyy Sep 11 '12 at 14:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.