0

我正在尝试通过 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>
4

2 回答 2

0

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

于 2014-09-23T16:25:44.490 回答
-1

MacPorts 安装有效。安装boost需要很长时间。把它关掉,去吃午饭,就像他们在打卡时代所做的那样。

于 2012-05-28T12:05:43.190 回答