rvm Kesalahan saat menjalankan './configure


1

Deskripsi

Setelah saya memigrasi Macbook saya ke yang baru, saya menemukan kesalahan selama menginstal ulang rvm

Langkah-langkah mereproduksi

⋊> rvm install 2.3.3

Lingkungan Hidup

  1. OSX 10.13.3
  2. versi rvm: rvm 1.29.3(master) oleh Michal Papis, Piotr Kuczynski
  3. sistem ruby: ruby 2.5.0p0
  4. kulit ikan, versi 2.5.0

Perilaku yang diharapkan

Instal ruby 2.3.3via dengan rvm sempurna.

Perilaku yang sebenarnya

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.

File log / Pengguna /Coda/.rvm/log/1518890785_ruby-2.3.3/configure.log berisi yang berikut:

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

Info lingkungan ada di sini ( https://gist.github.com/fifiteen82726/47bb65311f9c1399f327e2a470251a42 )

Jawaban:


8

Saya menghadapi masalah yang sama setelah memigrasikan Mac saya juga (keduanya MacOS High Sierra). Setelah berlari

sudo mv /usr/local/include /usr/local/include_old

lalu

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

semuanya mulai bekerja secara normal.


Hanya melakukan mvperintah itu bekerja baik untukku. Terima kasih!
Adam Grant
Dengan menggunakan situs kami, Anda mengakui telah membaca dan memahami Kebijakan Cookie dan Kebijakan Privasi kami.
Licensed under cc by-sa 3.0 with attribution required.