7

我正在尝试在我的 osx 10.9 操作系统上安装 ruby​​ 1.9.3,但我不断收到以下错误:

Error running 'requirements_osx_port_update_system ruby-1.9.3-p448',
please read /Users/ramesh/.rvm/log/1383430694_ruby-1.9.3-p448/update_system.log
Requirements installation failed with status: 1.

我正在使用以下命令进行安装:

 rvm install 1.9.3

完整的日志如下所示:

 checking for Tcl configuration... configure: error: Can't find Tcl configuration  definitions
 Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install SELFUPDATING=1
Exit code: 1
DEBUG: Error installing new MacPorts base: command execution failed
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed

需求更新日志:

checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions
Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install SELFUPDATING=1
Exit code: 1
DEBUG: Error installing new MacPorts base: command execution failed
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
4

2 回答 2

21

最后我找到了解决方案。我必须使用以下命令为 osx 10.9 (Mavrics) 安装新的命令行工具。

sudo xcode-select --install

然后我不得不运行以下命令来执行 macports selfupdate。

sudo port -v selfupdate

然后我可以使用以下命令成功安装 ruby​​ 1.9.3。

rvm install 1.9.3

希望这对面临同样困境的人有所帮助。

于 2013-11-03T04:34:59.550 回答
0

在我的计算机(运行小牛)上,似乎安装了 xcode 的命令行工具,因为我可以访问 gcc、git 等。但是我必须通过以下方式下载一个小的附加包:

$ sudo xcode-select --install

这会提示安装命令行工具。然后正确安装了rvm$ rvm requirements先决条件,我能够安装 ruby​​。

于 2013-11-19T00:20:37.650 回答