我的最終目標是安裝當前版本的Ruby on Rails。我在OS X Mountain Lion上運行。這裏是我的進程迄今:無法通過RVM安裝Ruby 2.0.0-p247(OSX Mountain Lion)
安裝RVM
$ \curl -L https://get.rvm.io | bash -s stable
檢查已知的(我假設批准)安裝
$ rvm list known
我看到,當前穩定版本可
[ruby-]2.0.0[-p247]
鍵入命令安裝
$ rvm install 2.0.0-p247
注:我也嘗試過這些安裝我越來越無處快命令
$ rvm install ruby-2.0.0-p247
$ rvm install ruby=2.0.0-p247
。結果:
$ rvm install 2.0.0-p247
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p247.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Installing requirements for osx, might require sudo password.
Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/xxxxx/.rvm/rubies/ruby-2.0.0-p247, this may take a while depending on your cpu(s)...
ruby-2.0.0-p247 - #downloading ruby-2.0.0-p247, this may take a while depending on your connection...
ruby-2.0.0-p247 - #extracted to /Users/xxxxx/.rvm/src/ruby-2.0.0-p247 (already extracted)
ruby-2.0.0-p247 - #configuring........
Error running './configure --prefix=/Users/xxxxx/.rvm/rubies/ruby-2.0.0-p247 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --disable-install-doc --without-tcl --without-tk --enable-shared',
please read /Users/xxxxx/.rvm/log/ruby-2.0.0-p247/1375141206_configure.log
There has been an error while running configure. Halting the installation.
我也在調試模式下運行這個命令。爲了避免混亂,你可以訪問它here。
而且,這裏是日誌:
./configure
current path: /Users/xxxxx/.rvm/src/ruby-2.0.0-p247
command(7): ./configure --prefix=/Users/xxxxx/.rvm/rubies/ruby-2.0.0-p247 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --disable-install-doc --without-tcl --without-tk --enable-shared
configure: WARNING: unrecognized options: --without-tcl, --without-tk
checking build system type... x86_64-apple-darwin12.2.1
checking host system type... x86_64-apple-darwin12.2.1
checking target system type... x86_64-apple-darwin12.2.1
checking whether the C compiler works... no
configure: error: in `/Users/xxxxx/.rvm/src/ruby-2.0.0-p247':
configure: error: C compiler cannot create executables
See `config.log' for more details
這是我通過RVM第一安裝。 $ rvm列表不返回任何寶石。
請詢問是否有其他信息可能有幫助。
編輯 - HERE是可以幫助任何人的登錄情況。
後,試圖重新開始我的整個過程從頭開始。現在重新安裝Xcode和命令行工具 - 然後我會再試一次。我會在可用時發佈我的結果。 – MrCarder
請加上'/ Users/xxxxx/.rvm/src/ruby-2.0.0 -p247/config.log' – mpapis
我想出了這個問題(種類)。如果我發佈日誌,它會對他人有幫助嗎? – MrCarder