[MacPorts] #35726: mongodb @2.0.7 boost 1.49 Mountain Lion - build failure
#35726: mongodb @2.0.7 boost 1.49 Mountain Lion - build failure -------------------------------+-------------------------------------------- Reporter: kinergy@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: mongodb -------------------------------+-------------------------------------------- As documented in the last comment here: http://apple.stackexchange.com/questions/59804/macports-issues-after- mountain-lion-upgrade It isn't possible to install mongodb on a Mountain Lion machine that didn't previously have mongo installed. The workaround to downgrade to boost 1.49 does NOT work as suggested because the command 'port install mongodb' will try to upgrade to boost 1.5 first. -- Ticket URL: <https://trac.macports.org/ticket/35726> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35726: mongodb @2.0.7 boost 1.49 Mountain Lion - build failure -------------------------------+-------------------------------------------- Reporter: kinergy@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: mongodb -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * cc: kinergy@… (removed) * owner: macports-tickets@… => ryandesign@… Comment: Replying to [ticket:35726 kinergy@…]:
The workaround to downgrade to boost 1.49 does NOT work as suggested because the command 'port install mongodb' will try to upgrade to boost 1.5 first.
It works fine, as long as you tell MacPorts you don't want it to upgrade dependencies, by using the "-n" flag. {{{ sudo port -n install mongodb }}} -- Ticket URL: <https://trac.macports.org/ticket/35726#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35726: mongodb @2.0.7 boost 1.49 Mountain Lion - build failure -------------------------------+-------------------------------------------- Reporter: kinergy@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: mongodb -------------------------------+-------------------------------------------- Comment(by kinergy@…): Thank you, worked like a charm - for the benefit of others who may be having this issue, here is what I did to downgrade boost and install mongodb: {{{ sudo port activate boost @1.49.0_0 sudo port -n install mongodb }}} Replying to [comment:1 ryandesign@…]:
Replying to [ticket:35726 kinergy@…]: It works fine, as long as you tell MacPorts you don't want it to upgrade dependencies, by using the "-n" flag.
-- Ticket URL: <https://trac.macports.org/ticket/35726#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35726: mongodb @2.0.7 boost 1.49 Mountain Lion - build failure -------------------------------+-------------------------------------------- Reporter: kinergy@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: mongodb -------------------------------+-------------------------------------------- Comment(by vkuznet@…): I have Lion and mongodb fails to upgrade. Initial error message is the following: ---> Configuring mongodb Error: mongodb 2.0.7 requires boost 1.49.x or older but you have boost 1.50.0. Error: To downgrade boost, see https://trac.macports.org/wiki/howto/InstallingOlderPort Error: or more specifically https://trac.macports.org/ticket/35118#comment:12 Error: org.macports.configure for port mongodb returned: boost 1.50.0 is too new Please see the log file for port mongodb for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_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 I have vk@localhost(11:01:05)> sudo port installed | grep boost boost @1.50.0_0 (active) boost-jam @3.1.18_0 (active) so I don't know why mongodb port complains about boost. Then I tried to install previous boost and to my surprise it did not pick up correct version vk@localhost(11:01:36)> sudo port install boost @1.49.0_0 ---> Computing dependencies for boost ---> Fetching archive for boost ---> Attempting to fetch boost-1.50.0_0+no_single+no_static.darwin_11.x86_64.tbz2 from http://packages.macports.org/boost ---> Attempting to fetch boost-1.50.0_0+no_single+no_static.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/boost ---> Installing boost @1.50.0_0+no_single+no_static ---> Deactivating boost @1.50.0_0 ---> Cleaning boost ---> Activating boost @1.50.0_0+no_single+no_static ---> Cleaning boost ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> No broken files found. So when I checked what I have I got the following vk@localhost(11:08:04)> sudo port installed | grep boost Password: boost @1.50.0_0 boost @1.50.0_0+no_single+no_static (active) boost-jam @3.1.18_0 (active) Certainly there are two problems here. 1. MongoDB asks for boost 1.49.x or newer and if system has newer version MongoDB port fails to install 2. Asking to install boost 1.49.0 installs the wrong version of boost. -- Ticket URL: <https://trac.macports.org/ticket/35726#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35726: mongodb @2.0.7 boost 1.49 Mountain Lion - build failure -------------------------------+-------------------------------------------- Reporter: kinergy@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: mongodb -------------------------------+-------------------------------------------- Comment(by francisdb@…): dupe of #35118: defect: mongodb @2.0.6_0 broken after boost @1.50.0_0 update (new)? -- Ticket URL: <https://trac.macports.org/ticket/35726#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35726: mongodb @2.0.7 boost 1.49 Mountain Lion - build failure -------------------------------+-------------------------------------------- Reporter: kinergy@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: mongodb -------------------------------+-------------------------------------------- Comment(by kinergy@…): If Boost 1.49 isn't already on your machine then my comment #2 above won't work. Try the following to install Boost 1.49 and then install MongoDB while suppressing upgrades: {{{ sudo port install boost @1.49.0_0 sudo port -n install mongodb }}} -- Ticket URL: <https://trac.macports.org/ticket/35726#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35726: mongodb @2.0.7 boost 1.49 Mountain Lion - build failure -------------------------------+-------------------------------------------- Reporter: kinergy@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: mongodb -------------------------------+-------------------------------------------- Comment(by francisdb@…): does not work sudo port uninstall boost ---> Deactivating boost @1.50.0_0+no_single+no_static ---> Cleaning boost ---> Uninstalling boost @1.50.0_0+no_single+no_static ---> Cleaning boost sudo port install boost @1.49.0_0 ---> Computing dependencies for boost ---> Fetching archive for boost ---> Attempting to fetch boost-1.50.0_0+no_single+no_static.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/boost ---> Attempting to fetch boost-1.50.0_0+no_single+no_static.darwin_12.x86_64.tbz2 from http://packages.macports.org/boost ---> Fetching distfiles for boost ---> Verifying checksum(s) for boost ---> Extracting boost -- Ticket URL: <https://trac.macports.org/ticket/35726#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35726: mongodb @2.0.7 boost 1.49 Mountain Lion - build failure --------------------------------+------------------------------------------- Reporter: kinergy@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: duplicate | Keywords: Port: mongodb | --------------------------------+------------------------------------------- Changes (by ryandesign@…): * status: new => closed * cc: vkuznet@… (added) * resolution: => duplicate Comment: Replying to [comment:3 vkuznet@…]:
{{{ ---> Configuring mongodb Error: mongodb 2.0.7 requires boost 1.49.x or older but you have boost 1.50.0. Error: To downgrade boost, see https://trac.macports.org/wiki/howto/InstallingOlderPort Error: or more specifically https://trac.macports.org/ticket/35118#comment:12 Error: org.macports.configure for port mongodb returned: boost 1.50.0 is too new }}} The above error message completely explains the problem and the solution; please re-read it.
Certainly there are two problems here. [[br]] 1. MongoDB asks for boost 1.49.x or newer and if system has newer version MongoDB port fails to install
No, it asks for 1.49.x or ''older''. This is a bug the mongodb developers need to fix.
2. Asking to install boost 1.49.0 installs the wrong version of boost.
The "port install" command does not accept a version number; it always installs the currently-available version. This is not a bug; it's just how MacPorts works. If you want to install a different version than the currently-available one, you must follow the instructions in wiki:howto/InstallingOlderPort After installing boost 1.49.0, install mongodb without upgrading dependencies: {{{ sudo port -n install mongodb }}} -- Ticket URL: <https://trac.macports.org/ticket/35726#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35726: mongodb @2.0.7 boost 1.49 Mountain Lion - build failure --------------------------------+------------------------------------------- Reporter: kinergy@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: duplicate | Keywords: Port: mongodb | --------------------------------+------------------------------------------- Comment(by francisdb@…): thanks, so where is the bug/improvement ticket to make this process more user-friendly? -- Ticket URL: <https://trac.macports.org/ticket/35726#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#35726: mongodb @2.0.7 boost 1.49 Mountain Lion - build failure --------------------------------+------------------------------------------- Reporter: kinergy@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: duplicate | Keywords: Port: mongodb | --------------------------------+------------------------------------------- Comment(by dustin@…): If activating 1.49 doesn't work for you, it likely means you never had it and need to install it explicitly: {{{ sudo port uninstall boost svn co -r 93341 http://svn.macports.org/repository/macports/trunk/dports/devel/boost/ cd boost sudo port install sudo port -n install mongodb }}} -- Ticket URL: <https://trac.macports.org/ticket/35726#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts