【发布时间】:2013-07-06 16:17:04
【问题描述】:
在 OS X 上使用 RVM 升级我的 Ruby 版本时遇到一些问题。
RMV 使用 MacPorts,导致我运行 sudo port selfupdate,尽管安装了正确的 Xcode 命令行工具,但会出现一堆编译错误。
我找到了一些使用 Linux apt-get 的安装说明,但不幸的是我的 Mac 上没有。
我想在没有 RVM 的情况下安装 Ruby。我怎样才能做到这一点?
【问题讨论】:
-
你有自制软件吗?看到这个:stackoverflow.com/questions/12287882/…
-
@AndrewMarshall 谢谢你,但我知道这个页面,我总是得到同样的错误:
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: 2 DEBUG: Error installing new MacPorts base:...Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed -
@superEb 我认为这是最好的方法,我知道
MacPorts与Lion``, and their official instructions don't do the trick for me. Thanks, I think I 'll userbenv, which arvm`-like 工具有一些兼容性。 Perpahs,您应该考虑编辑您的帖子作为答案;)