使用 MacPorts 安装 MongoDB 时出现问题

发布于 2024-09-07 16:03:12 字数 1183 浏览 2 评论 0原文

我尝试使用 MacPorts 在 Snow Leopard 上安装 MongoDB,如 MongoDB 网站上所述 ( http://www.mongodb.org/display/DOCS/Quickstart+OS+X)。然而,它陷入了“建设推动”的困境。 20分钟里什么也没发生。

附有终端的进度。对此的任何帮助将不胜感激。我很高兴能够了解 MongoDB。

$ 端口安装 mongodb

警告:MacPorts 在没有权限的情况下运行。您可能无法完成某些操作(例如安装)。 --->计算 mongodb 的依赖关系 --->要安装的依赖项: 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 -宏 xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto tcl xorg-libXScrnSaver xorg-libXext xorg-scrnsaverproto SpiderMonkey nspr --->获取提升 --->尝试从super-west.dl.sourceforge.net/boost获取boost_1_42_0.tar.bz2 --->尝试从super-east.dl.sourceforge.net/boost获取boost_1_42_0.tar.bz2 --->尝试从 downloads.sourceforge.net/boost 获取 boost_1_42_0.tar.bz2 --->验证 boost 的校验和 --->提取升压 --->应用补丁来增强 --->配置升压 --->建设提升

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

ペ泪落弦音 2024-09-14 16:03:12

Boost 是一个相当大的库——安装可能需要一段时间。

您可以使用 verbose 标志(或 debug 标志)运行 port 来查看有关进度的详细信息:

$ port -v install mongodb

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
白首有我共你 2024-09-14 16:03:12

遵循以下命令

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

follow following commands

sudo port install mongodb
sudo mkdir -p /data/db
sudo chown `id -u` /data/db
梦晓ヶ微光ヅ倾城 2024-09-14 16:03:12

如果您使用 macports,它默认安装到 /opt/local/bin

以列出此目录类型中的文件:
$>> ls /opt/local/bin

如果您看到 mongod,请输入:
./mongod

然后检查它是否在浏览器中运行 http://0.0.0.0:28017/ 或 localhost :28017

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文