在 Mac OSX Snow Leopard 上安装 MongoDB 失败
首先安装需要几个小时,然后会抛出错误。 以下是日志跟踪。构建 Python 模块时失败
'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mongodb/work/mongodb-src-r1.6.5" && scons -j2 all mongobridge mongosniff --usesm --cxx=/usr/bin/g++-4.2 --full'
:info:build sh: line 0: cd: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mongodb/work/mongodb-src-r1.6.5: No such file or directory
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mongodb/work/mongodb-src-r1.6.5" && scons -j2 all mongobridge mongosniff --usesm --cxx=/usr/bin/g++-4.2 --full " returned error 1
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for mongodb): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for mongodb is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mongodb/main.log
Firstly the installation take hours and then it throws and error.
Following was the log trace. It is failing while building Python module
'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mongodb/work/mongodb-src-r1.6.5" && scons -j2 all mongobridge mongosniff --usesm --cxx=/usr/bin/g++-4.2 --full'
:info:build sh: line 0: cd: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mongodb/work/mongodb-src-r1.6.5: No such file or directory
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mongodb/work/mongodb-src-r1.6.5" && scons -j2 all mongobridge mongosniff --usesm --cxx=/usr/bin/g++-4.2 --full " returned error 1
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
while executing
"command_exec build"
(procedure "portbuild::build_main" line 8)
invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for mongodb): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for mongodb is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_mongodb/main.log
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论