Friday, August 30, 2013

MongoDB and MacPorts (and v8)

In order to upgrade MongoDB to the latest version (using MacPorts), I had to deactivate v8, upgrade MongoDB and activate v8 again:


--->  Configuring mongodb
Error: mongodb cannot be built while v8 is active.
Error: Please deactivate v8 and try again.
Error: You can reactivate v8 again later.
Error: org.macports.configure for port mongodb returned: v8 is active
Please see the log file for port mongodb for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mongodb/mongodb/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
mtsouk$ sudo port -f deactivate v8
Password:
--->  Deactivating v8 @3.17.15_0
--->  Unable to deactivate v8 @3.17.15_0, the following ports depend on it:
--->   mongodb @2.4.6_0
Warning: Deactivate forced.  Proceeding despite dependencies.
--->  Cleaning v8
mtsouk$ sudo port upgrade outdated
--->  Computing dependencies for mongodb
--->  Configuring mongodb
--->  Building mongodb
...
mtsouk@ sudo port activate v8

3 comments:

Juho Vepsäläinen said...

Thanks!

Unknown said...

Thanks much for posting this, ran into the same problem this morning.

Leonardo Ascione said...

Great, thank you.