【发布时间】:2014-04-29 23:01:23
【问题描述】:
我正在尝试使用 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 --install
但我被告知服务器上没有命令行工具。
我注意到了这一行:
checking for gcc... /usr/bin/llvm-gcc-4.2
但我认为文件应该是 /usr/bin/llvm-gcc
我需要做什么?
【问题讨论】:
-
尝试添加符号链接
sudo ln -s /usr/bin/gcc /usr/bin/llvm-gcc-4.2
标签: ruby-on-rails ruby macos rvm