簡體   English   中英

無法安裝Rails

[英]Can't install Rails

我正在嘗試在OS X Lion上安裝Rails並獲取以下消息。 我已經安裝了Ruby,並且也更新到rubyGems版本1.8.5。

Building native extensions.  This could take a while...
ERROR:  Error installing rails:
ERROR: Failed to build gem native extension.

/opt/local/bin/ruby extconf.rb
creating Makefile
make
/usr/bin/gcc-4.2 -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I/opt/local/lib/ruby/1.8/i686-darwin10 -I. -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -O2 -arch x86_64  -fno-common -pipe -fno-common  -O3 -Wall -arch x86_64 -c parser.c
make: /usr/bin/gcc-4.2: No such file or directory
make: *** [parser.o] Error 1

Gem files will remain installed in /opt/local/lib/ruby/gems/1.8/gems/json-1.7.0 for inspection.
Results logged to /opt/local/lib/ruby/gems/1.8/gems/json-1.7.0/ext/json/ext/parser/gem_make.out

您的gcc似乎丟失了。 似乎在Lion中發生。 嘗試重新安裝XCode和命令行工具,或通過Homebrew安裝一個

暫無
暫無

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

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