簡體   English   中英

RVM無法在OS x 10.9上安裝Ruby

[英]RVM Failing to install Ruby on OS x 10.9

我正在嘗試使用RVM在OS X Mavericks筆記本電腦上安裝Ruby和Rails。 當我跑步時:

rvm要求

我遇到了:

Checking requirements for osx.
Installing requirements for osx.
Updating system..jeffwomble password required for 'port -dv selfupdate': 
........
Error running 'requirements_osx_port_update_system ',
showing last 15 lines of /Users/jeffwomble/.rvm/log/1395493335/update_system.log
checking for xcode-select... /usr/bin/xcode-select
checking Mac OS X version... 10.9.2
checking Xcode location... /Applications/Xcode.app/Contents/Developer/
checking for gcc... /usr/bin/llvm-gcc-4.2
checking whether the C compiler works... no
configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/base':
configure: error: C compiler cannot create executables
See `config.log' for more details
shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/base && CC=/usr/bin/llvm-gcc-4.2 ./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" returned error 77
DEBUG: Error installing new MacPorts base: shell command failed (see log for details)
    while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed (see log for details)
+ return 1
+ return 1
Requirements installation failed with status: 1.

我已經安裝了最新版本的Xcode。 我試着跑:

Xcode-select-安裝

但是我被告知命令行工具在服務器上不可用。

我注意到這一行:

checking for gcc... /usr/bin/llvm-gcc-4.2

但我認為該文件應該是/ usr / bin / llvm-gcc

我需要做什么?

在嘗試符號鏈接之前,我嘗試從命令行運行mac端口。 我收到“ -bash:端口:找不到命令”錯誤。我手動下載並安裝了macports,之后一切正常。

首先安裝HomeBrew,然后運行:

rvm要求

在Mac OS Mavericks上為我工作。 (提示表單如何使用rvm在OS_X 10.9上安裝ruby 2.1.0?(無二進制紅寶石可用於:osx / 10.9 / x86_64 / ruby​​)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM