Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/57.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 在osx 10.8上安装ruby的问题_Ruby On Rails_Ruby_Macos_Rvm_Homebrew - Fatal编程技术网

Ruby on rails 在osx 10.8上安装ruby的问题

Ruby on rails 在osx 10.8上安装ruby的问题,ruby-on-rails,ruby,macos,rvm,homebrew,Ruby On Rails,Ruby,Macos,Rvm,Homebrew,伙计们,我正在尝试使用本网站的指南安装ruby on machttp://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/ 但当我在mac终端上发出以下命令时: \curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enable 我遇到以下错误: Searching for binary rubies, this migh

伙计们,我正在尝试使用本网站的指南安装ruby on mac
http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/
但当我在mac终端上发出以下命令时:

\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

我尝试了很多方法来摆脱这个,但我没有任何线索。有人能帮忙解决这个问题吗?谢谢

我也遇到了这个问题。事实证明,我已经在多用户模式下安装了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(sudo RVM IMPODE),然后只为当前用户安装了它,之后一切顺利。

确保您拥有最新的Xcode,并通过[Xcode首选项]->[Downloads]安装了命令行工具

如果再次安装时遇到问题,请按以下方式安装rvm:

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

安装自制软件<代码>ruby-e“$(curl-fsSLhttps://raw.github.com/mxcl/homebrew/go)"在
/usr/local/rvm/log/ruby-2.0.0-p0/package\u install\u autoconf\u automake\u libtool\u pkg-config\u libyaml\u readline\u libxml2\u libxslt\u libksba\u openssl\u sqlite.log上的日志是什么意思?@HungryCoder homebewinstalled@AlexMarchant==>倾倒pkg-config-0.28.mountain_lion.瓶子.tar.gz@HungryCoder我不确定问题出在哪里。我会再试试剧本。您也可以尝试在前面使用
sudo
运行它。并再次检查
brew doctor
是否正常注册。