我目前正在Ruby 1.9.3p134上運行,並嘗試使用RVM安裝Ruby 2.0.0,但是我仍然遇到下面的錯誤。我在OSX 10.7.5上運行:使用RVM安裝Ruby 2.0.0,在配置時出錯
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --prefix=/usr/local/rvm/rubies/ruby-2.0.0-p195 --with-opt-dir=/opt/sm/pkg/active --disable-install-doc --without-tcl --without-tk --enable-shared' please read /usr/local/rvm/log/ruby-2.0.0-p195/1369791751_configure.log There has been an error while running configure. Halting the installation.
的配置如下日誌:
[2013-05-29 11:42:31] ./configure configure: WARNING: unrecognized options: --without-tcl, --without-tk checking build system type... x86_64-apple-darwin11.4.2 checking host system type... x86_64-apple-darwin11.4.2 checking target system type... x86_64-apple-darwin11.4.2 checking whether the C compiler works... no configure: error: in
/usr/local/rvm/src/ruby-2.0.0-p195': configure: error: C compiler cannot create executables See
config.log' for more details
只是無法解決此得到了幾天,我需要幫助。
這並沒有爲我工作;錯誤是一個奇怪的參數被提供來配置:「configure --with-arch = -arch x86_64」,而它應該是「configure --with-arch = x86_64」。 問題出在.rvmrc中。如果您遇到此問題,請將.rvmrc重命名爲其他內容並重試。 –