2013-04-04 112 views
2

,大家好我嘗試使用引導從這個網站在Mac上安裝Ruby http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/ 但當以下Mac終端上的命令我的問題:問題OSX上安裝Ruby 10.8

\curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enable 

我收到以下錯誤:

Searching for binary rubies, this might take some time. 
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p0. 
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. 
Installing requirements for osx, might require sudo password. 
Already up-to-date. 
Installing required packages: autoconf, automake, libtool, pkg-config, libyaml, readline, libxml2, libxslt, libksba, openssl, sqlite................................ 
Error running 'requirements_brew_libs_install autoconf automake libtool pkg-config libyaml readline libxml2 libxslt libksba openssl sqlite', 
please read /usr/local/rvm/log/ruby-2.0.0-p0/package_install_autoconf_automake_libtool_pkg-config_libyaml_readline_libxml2_libxslt_libksba_openssl_sqlite.log 
There were package installation errors, make sure to read the log. 
Check Homebrew requirements https://github.com/mxcl/homebrew/wiki/Installation 

我嘗試了很多方法來擺脫這一點,但我根本沒有線索。有沒有人可以幫助解決這個問題?謝謝

+0

安裝家釀。 'ruby -e「$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)」' – HungryCoder 2013-04-04 03:06:39

+2

'/usr/local/rvm/log/ruby-2.0.0- p0/package_install_autoconf_automake_libtool_pkg-config_libyaml_readline_libxml2_libxslt_libksba_openssl_sqlite.log'說? – 2013-04-04 03:06:39

+0

@HungryCoder已經安裝的自制軟件 – 2013-04-04 03:11:15

回答

0

我剛剛遇到了這個問題。事實證明,我已經在多用戶模式下安裝了rvm,並試圖以root身份運行brew,brew似乎並不喜歡。在錯誤日誌,我看到類似下面:

[2013-04-04 11:40:12] requirements_brew_libs_install 
Error: Cowardly refusing to `sudo brew install' 
You can use brew with sudo, but only if the brew executable is owned by root. 
However, this is both not recommended and completely unsupported so do so at 
your own risk. 

我完全卸載RVM(須藤RVM破滅),然後安裝它只是爲當前用戶,事情之後很順利。

0

請確保您有最新的Xcode和必須通過[Xcode預設]安裝命令行工具 - > [下載]

如果您有重新安裝的麻煩,安裝RVM這樣:

$ curl -L get.rvm.io | bash -s stable