gpt4 book ai didi

osx-lion - 即使使用 "--with-gcc=clang",也无法通过 OS X Lion 中的 rvm 安装 Ruby 1.9.3

转载 作者:行者123 更新时间:2023-12-03 06:38:19 46 4
gpt4 key购买 nike

我一直在检查这里的其他问题,这些问题来自那些在使用 RVM 在 Lion 中安装 ruby​​ 1.9.3 时遇到问题的人,问题似乎与我的相同,所以我尝试了提供的解决方案,但没有成功:

我首先尝试: rvm install 1.9.3 --with-gcc=clang

返回:
Installing requirements for osx/10.7/x86_64, might require sudo password.
Skipping `brew update` make sure your formulas are up to date.
Missing required packages: libtool, pkg-config, libyaml, readline, libxml2, libxslt, openssl, sqlite.
requirements_brew_generate_openssl_cert:4: no such file or directory: /usr/local/Cellar/openssl/1.0.1e/bin/openssl
Skipping update of certificates in '/cert.pem'.
Warning: found user selected compiler 'clang', this will suppress RVM auto detection mechanisms.
Installing Ruby from source to: /Users/****/.rvm/rubies/ruby-1.9.3-p392, this may take a while depending on your cpu(s)...
ruby-1.9.3-p392 - #downloading ruby-1.9.3-p392, this may take a while depending on your connection...
ruby-1.9.3-p392 - #extracted to /Users/****/.rvm/src/ruby-1.9.3-p392 (already extracted)
ruby-1.9.3-p392 - #configuring.................................................................................................................................................................................................................................................................................................................................................................................................................................................................
ruby-1.9.3-p392 - #compiling................
ruby-1.9.3-p392 - #installing ..............
ruby-1.9.3-p392 is not installed.
To install do: 'rvm install ruby-1.9.3-p392'

注意如何ruby-1.9.3-p392 is not installed.出现在接近尾声的时候。

后来我根据建议尝试执行以下操作: CC=/usr/bin/gcc-4.2 rvm install 1.9.3 --enable-shared

但它返回了: You requested building with '/usr/bin/gcc-4.2' but it is not in your path.

所以我基本上被困在这里,不知道如何继续。任何帮助将不胜感激。提前致谢。

最佳答案

这应该可以解决它:

rvm get head
rvm install 1.9.3 --autolibs=4

关于osx-lion - 即使使用 "--with-gcc=clang",也无法通过 OS X Lion 中的 rvm 安装 Ruby 1.9.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15587298/

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