Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem installing MongoDB using MacPorts

Im trying to install MongoDB on Snow Leopard using MacPorts, as explained on the MongoDB site (http://www.mongodb.org/display/DOCS/Quickstart+OS+X). However, it's stuck 'building boost'. Nothing's happened for 20 minutes.

The progress from the terminal is attached. Any help on this would be appreciated. Im excited to check out MongoDB.

$ port install mongodb

Warning: MacPorts running without privileges. You may be unable to complete certain actions (e.g. install). ---> Computing dependencies for mongodb ---> Dependencies to be installed: boost libpcap pcre ncurses ncursesw readline scons python26 db46 gdbm gettext libiconv gperf openssl sqlite3 tk Xft2 fontconfig freetype pkgconfig xrender xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto tcl xorg-libXScrnSaver xorg-libXext xorg-scrnsaverproto spidermonkey nspr ---> Fetching boost ---> Attempting to fetch boost_1_42_0.tar.bz2 from superb-west.dl.sourceforge.net/boost ---> Attempting to fetch boost_1_42_0.tar.bz2 from superb-east.dl.sourceforge.net/boost ---> Attempting to fetch boost_1_42_0.tar.bz2 from downloads.sourceforge.net/boost ---> Verifying checksum(s) for boost ---> Extracting boost ---> Applying patches to boost ---> Configuring boost ---> Building boost

like image 758
jrs Avatar asked Jul 02 '10 21:07

jrs


2 Answers

Boost is a pretty big library -- it could take a while to install.

You can run port with the verbose flag (or the debug flag) to see details about the progress:

$ port -v install mongodb
like image 158
mipadi Avatar answered Mar 11 '23 12:03

mipadi


follow following commands

sudo port install mongodb
sudo mkdir -p /data/db
sudo chown `id -u` /data/db
like image 38
Abhijit Gaikwad Avatar answered Mar 11 '23 13:03

Abhijit Gaikwad