ruby - 安装 osx mavricsmavrics 的 ruby​​ 1.9.3

标签 ruby osx-mavericks

我正在尝试在我的 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 self 更新。

sudo port -v selfupdate

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

rvm install 1.9.3

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

关于ruby - 安装 osx mavricsmavrics 的 ruby​​ 1.9.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19748099/

相关文章:

ruby-on-rails - 哪些 ROR 插件或项目提供具有内置管理员帐户访问级别和预建 View 的帐户创建?

ruby - 使用 API 将 Google 幻灯片中的一张幻灯片复制到新演示文稿中

macos - 在另一台Mac上打开后,我构建的任何Mac应用(osx)都会立即崩溃

gcc - 通过 Homebrew 软件安装 gcc49 失败

gcc - 在小牛的GCC版本(4.2.1)中找不到<omp.h>库

ruby - 是否可以使用 Nokogiri 创建 HTML 推送解析器?

javascript - 如何使用 Watir 在网页上添加和执行 html2canvas

ruby - 如何在 Sinatra View 中引用根路径

css - 使用百分比大小的输入在 Webkit 中无法正确呈现

python - Google 应用引擎和 numpy 无法在本地开发服务器上协同工作