web-dev-qa-db-ja.com

rvm実行中のエラー './configure

説明

Macbookを新しいものに移行した後、rvmの再インストール中にエラーが発生しました

再現する手順

⋊> rvm install 2.3.3

環境

  1. OSX 10.13.3
  2. rvmバージョン:rvm 1.29.3(マスター)Michal Papis、Piotr Kuczynski
  3. システムRuby:Ruby 2.5.0p0
  4. 魚の殻、バージョン2.5.0

予想される行動

インストールRuby 2.3.3rvm経由で完全に。

実際の動作

Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.13/x86_64/Ruby-2.3.3.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates bundle '/usr/local/etc/openssl/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/Coda/.rvm/rubies/Ruby-2.3.3, this may take a while depending on your cpu(s)...
Ruby-2.3.3 - #downloading Ruby-2.3.3, this may take a while depending on your connection...
Ruby-2.3.3 - #extracting Ruby-2.3.3 to /Users/Coda/.rvm/src/Ruby-2.3.3.....
Ruby-2.3.3 - #applying patch /Users/Coda/.rvm/patches/Ruby/ruby_2_3_gcc7.patch.
Ruby-2.3.3 - #applying patch /Users/Coda/.rvm/patches/Ruby/2.3.3/random_c_using_NR_prefix.patch.
Ruby-2.3.3 - #configuring........................
Error running './configure --prefix=/Users/Coda/.rvm/rubies/Ruby-2.3.3 --with-opt-dir=/usr/local/Cellar/libyaml/0.1.7:/usr/local/Cellar/readline/7.0.3_1:/usr/local/Cellar/libksba/1.3.5:/usr/local/opt/openssl --disable-install-doc --enable-shared',
please read /Users/Coda/.rvm/log/1518890785_Ruby-2.3.3/configure.log
There has been an error while running configure. Halting the installation.

ログファイル/Users/Coda/.rvm/log/1518890785_Ruby-2.3.3/configure.logには、次のものが含まれています。

checking size of long long... configure: error: in `/Users/Coda/.rvm/src/Ruby-2.3.3':
configure: error: cannot compute sizeof (long long)
See `config.log' for more details

環境情報はこちら( https://Gist.github.com/fifiteen82726/47bb65311f9c1399f327e2a470251a42

2
Coda Chang

Mac(両方ともMacOS High Sierra)を移行した後も、同じ問題に直面しました。実行後

Sudo mv /usr/local/include /usr/local/include_old

その後

rvm install 2.5.0 --with-openssl-dir=/usr/local/opt/openssl/bin/openssl

物事は正常に機能し始めました。

9
ArdentLearner