MongoDB for Rails



我正在尝试通过macport为我的Rails项目安装MongoDB。但是,当我尝试安装MongoDB时,出现以下错误。我不明白为什么它试图下载 Python 依赖项,这可能是它失败的原因吗?

hansarijanto$ sudo port install mongodb
Password:
--->  Computing dependencies for mongodb
--->  Dependencies to be installed: boost bzip2 icu libpcap pcre scons python27 db46 python_select snappy lzo2 spidermonkey nspr readline
--->  Fetching archive for bzip2
--->  Attempting to fetch bzip2-1.0.6_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/bzip2
--->  Attempting to fetch bzip2-1.0.6_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/bzip2
--->  Installing bzip2 @1.0.6_0
--->  Activating bzip2 @1.0.6_0
--->  Cleaning bzip2
--->  Fetching archive for icu
--->  Attempting to fetch icu-4.8.1_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/icu
--->  Attempting to fetch icu-4.8.1_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/icu
--->  Installing icu @4.8.1_0
--->  Activating icu @4.8.1_0
--->  Cleaning icu
--->  Fetching archive for boost
--->  Attempting to fetch boost-1.49.0_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/boost
--->  Attempting to fetch boost-1.49.0_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/boost
--->  Installing boost @1.49.0_0
--->  Activating boost @1.49.0_0
--->  Cleaning boost
--->  Fetching archive for libpcap
--->  Attempting to fetch libpcap-1.1.1_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/libpcap
--->  Attempting to fetch libpcap-1.1.1_0.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/libpcap
--->  Installing libpcap @1.1.1_0
--->  Activating libpcap @1.1.1_0
--->  Cleaning libpcap
--->  Fetching archive for pcre
--->  Attempting to fetch pcre-8.12_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/pcre
--->  Attempting to fetch pcre-8.12_1.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/pcre
--->  Installing pcre @8.12_1
--->  Activating pcre @8.12_1
--->  Cleaning pcre
--->  Fetching archive for db46
--->  Attempting to fetch db46-4.6.21_6.darwin_11.x86_64.tbz2 from http://packages.macports.org/db46
--->  Attempting to fetch db46-4.6.21_6.darwin_11.x86_64.tbz2.rmd160 from http://packages.macports.org/db46
--->  Installing db46 @4.6.21_6
--->  Activating db46 @4.6.21_6
--->  Cleaning db46
--->  Fetching archive for python_select
--->  Attempting to fetch python_select-0.3_1.darwin_11.noarch.tbz2 from http://packages.macports.org/python_select
--->  Attempting to fetch python_select-0.3_1.darwin_11.noarch.tbz2.rmd160 from http://packages.macports.org/python_select
--->  Installing python_select @0.3_1
--->  Activating python_select @0.3_1
--->  Cleaning python_select
--->  Fetching archive for python27
--->  Attempting to fetch python27-2.7.3_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/python27
--->  Fetching python27
--->  Attempting to fetch Python-2.7.3.tar.xz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/python27
--->  Verifying checksum(s) for python27
--->  Extracting python27
--->  Applying patches to python27
--->  Configuring python27
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Error: Failed to install python27
Log for python27 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/main.log
Error: The following dependencies were not installed: scons python27 snappy lzo2 spidermonkey nspr readline
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

MacPorts作为OS X的包管理器已被Homebrew超越。 您可以使用brew轻松安装MongoDB。

MacPorts安装有效。安装提升需要很长时间。把它放下来,像他们在打孔卡时代一样去吃午饭。

最新更新