将我的 Macbook 迁移到新 Macbook 后,我在重新安装时遇到错误 rvm
?> rvm install 2.3.3
Run Code Online (Sandbox Code Playgroud)
1.29.3(master) by Michal Papis, Piotr Kuczynski2.5.0p02.5.02.3.3通过rvm 完美安装ruby 。
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.
Run Code Online (Sandbox Code Playgroud)
日志文件 /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
Run Code Online (Sandbox Code Playgroud)
环境信息在这里(https://gist.github.com/fifiten82726/47bb65311f9c1399f327e2a470251a42)
小智 10
在迁移我的 Mac(MacOS High Sierra)后,我也遇到了同样的问题。运行后
sudo mv /usr/local/include /usr/local/include_old
Run Code Online (Sandbox Code Playgroud)
进而
rvm install 2.5.0 --with-openssl-dir=/usr/local/opt/openssl/bin/openssl
Run Code Online (Sandbox Code Playgroud)
事情开始正常工作。
| 归档时间: |
|
| 查看次数: |
3445 次 |
| 最近记录: |