3

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.

だから私は基本的にここで立ち往生しており、どのように進めればよいのかわからない. どんな助けでも大歓迎です。前もって感謝します。

4

2 に答える 2

8

これで解決するはずです:

rvm get head
rvm install 1.9.3 --autolibs=4
于 2013-03-23T13:54:05.547 に答える
0

Homebrew によって維持されている特定のパッケージを更新する必要があるため、インストールが失敗しています。コードの 2 行目で「brew update数式が最新であることを確認してください。」

brew update

必要かもしれません

sudo brew update

それから

rvm install 1.9.3 --with-gcc=clang

Ruby 1.9.3 の安定したバージョンをダウンロードできるように、rvm をオーバーライドする必要があります。

sudo rvm install 1.9.3 --with-gcc=clang

同様に機能する可能性があります。

于 2014-10-31T22:59:38.657 に答える