微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

安装osx mavricsmavrics的ruby 1.9.3

我试图在我的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

解决方法

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

然后我必须运行以下命令来执行macports selfupdate.

sudo port -v selfupdate

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

rvm install 1.9.3

希望这对任何面临同样困境的人都有所帮助.

原文地址:https://www.jb51.cc/ruby/269376.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐