0
我試圖通過macport爲我的Rails項目安裝MongoDB。但是,當我嘗試安裝MongoDB時出現以下錯誤。我不明白爲什麼它試圖下載Python依賴項,這可能是它失敗的原因嗎?MongoDB for Rails
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>
你試過直接下載mongo而不是通過macports安裝嗎? – 2012-04-15 21:13:58
好吧我知道這並不是那麼有幫助,但是現在你會發現你的[homebrew](http://mxcl.github.com/homebrew/)的運氣比macports好。看看你是否可以從那裏安裝它。 – rfunduk 2012-04-15 21:22:32
我想嘗試直接安裝mongo db。我下載了mongo-osx-x86_64-2.0.4.tgz並解壓縮並將文件夾移動到/ usr/local/mongodb。接下來我需要做什麼來獲得mongodb? – 2012-04-15 21:35:34