开发者

Problem installing MongoDB using MacPorts

Im trying to install MongoDB on Snow Leopard using MacPorts, as explained on the Mong开发者_JAVA技巧oDB 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


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


follow following commands

sudo port install mongodb
sudo mkdir -p /data/db
sudo chown `id -u` /data/db


if you used macports it installs to /opt/local/bin by default

to list the files in this directory type: $>> ls /opt/local/bin

if you see mongod, type: ./mongod

then check if it's running in the browser at http://0.0.0.0:28017/ or localhost:28017

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜