gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 16:53:31 25 4
gpt4 key购买 nike

伙计们,我正在尝试使用本网站的指南在 mac 上安装 ruby​​ 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 implode),然后只为当前用户安装了它,之后一切顺利。

关于ruby-on-rails - 在 osx 10.8 上安装 ruby​​ 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15801756/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com