gpt4 book ai didi

ruby - 无法通过 RVM 在 Mac 10.8 上安装 ruby​​ 1.8.7

转载 作者:数据小太阳 更新时间:2023-10-29 08:51:13 25 4
gpt4 key购买 nike

我无法在我的 Mac 10.8.2 上安装 ruby​​ ree 或 ruby​​ 1.8.7。

我这样做了:

$ brew install libksba
$ brew update
$ brew install autoconf automake
$ brew tap homebrew/dupes
$ brew install autoconf automake apple-gcc42

然后我尝试安装 ruby​​ 1.8.7 但我不能

$ rvm install 1.8.7
No binary rubies available for: osx/10.8.2/x86_64/ruby-1.8.7-p370.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Building 'ruby-1.8.7-p370' using clang - but it's not (fully) supported, expect errors.
Installing Ruby from source to: /Users/serg/.rvm/rubies/ruby-1.8.7-p370, this may take a while depending on your cpu(s)...
ruby-1.8.7-p370 - #downloading ruby-1.8.7-p370, this may take a while depending on your connection...
ruby-1.8.7-p370 - #extracting ruby-1.8.7-p370 to /Users/serg/.rvm/src/ruby-1.8.7-p370
ruby-1.8.7-p370 - #extracted to /Users/serg/.rvm/src/ruby-1.8.7-p370
Applying patch /Users/serg/.rvm/patches/ruby/1.8.7/stdout-rouge-fix.patch
Applying patch /Users/serg/.rvm/patches/ruby/1.8.7/no_sslv2.diff
ruby-1.8.7-p370 - #configuring
ruby-1.8.7-p370 - #compiling
Error running 'make', please read /Users/serg/.rvm/log/ruby-1.8.7-p370/make.log
There has been an error while running make. Halting the installation.
Ruby 'ruby-1.8.7-p370' was built using clang - but it's not (fully) supported, expect errors.
Please be aware that you just installed a ruby that requires 2 patches just to be compiled on up to date linux system.
This may have known and unaccounted for security vulnerabilities.
Please consider upgrading to Ruby 1.9.3-194 which will have all of the latest security patches.
MacBook-Pro-Serg-L-6:smartlearn serg$ rvm remove 1.8.7
Removing /Users/serg/.rvm/src/ruby-1.8.7-p370...
/Users/serg/.rvm/rubies/ruby-1.8.7-p370 has already been removed.
Removing ruby-1.8.7-p370 aliases...
Removing ruby-1.8.7-p370 wrappers...
Removing ruby-1.8.7-p370 environments...
Removing ruby-1.8.7-p370 binaries...

错误:

Error running 'make', please read /Users/serg/.rvm/log/ruby-1.8.7-p370/make.log
There has been an error while running make. Halting the installation.

来自 make.log 的日志是 here

最佳答案

看起来 rvm 没有找到用 brew 安装的 apple-gcc42

确保 gcc-4.2 可以通过 PATH 获得,或者使用它的路径运行安装:

rvm reinstall 1.8.7 --with-gcc=/path/to/brew/apple-gcc42/gcc-4.2

编辑1:刚刚检查过,RVM 还搜索 gcc-apple-4.2,所以如果它在 PATH 上,它将被 RVM 自动使用 - 这已在 RVM 1.16.8 中更新。

关于ruby - 无法通过 RVM 在 Mac 10.8 上安装 ruby​​ 1.8.7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12511717/

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