簡體   English   中英

RVM 在 Monterey 12.0.1 上安裝 1.8.7 失敗

[英]RVM install 1.8.7 on Monterey 12.0.1 Fails

有沒有人得到 ruby 1.8.7 使用 RVM 在蒙特雷工作?

我已經嘗試了那里報告的所有解決方案,但似乎對我沒有任何作用。 我知道 1.8.7 已完全棄用且不受支持,但此版本中仍有許多。

RVM 版本:rvm 1.29.12(最新) Gem 版本:3.2.3

我嘗試的最后一個是:

$ export warnflags=-Wno-error=implicit-function-declaration
$ rvm install ruby-1.8.7 --with-openssl-dir=$HOME/.rvm/usr

Warning! Requested ruby installation which requires another ruby available - installing ruby-1.8.7-p374 first.

ruby-1.8.7-p374 - #removing src/ruby-1.8.7-p374..
Checking requirements for osx.
Installing requirements for osx.
Updating system..........
Installing required packages: autoconf, automake, libtool, pkg-config, coreutils, libyaml, libksba, readline, zlib, openssl................
Certificates bundle '/usr/local/etc/openssl@3/cert.pem' is already up to date.
Requirements installation successful.
Warning: DYLD_LIBRARY_PATH environment variable is set, this might interact with the compilation and ruby.
Installing Ruby from source to: /Users/myuser/.rvm/rubies/ruby-1.8.7-p374, this may take a while depending on your cpu(s)...
ruby-1.8.7-p374 - #downloading ruby-1.8.7-p374, this may take a while depending on your connection...
ruby-1.8.7-p374 - #extracting ruby-1.8.7-p374 to /Users/myuser/.rvm/src/ruby-1.8.7-p374.....
ruby-1.8.7-p374 - #applying patch /Users/myuser/.rvm/patches/ruby/1.8.7/stdout-rouge-fix.patch.
ruby-1.8.7-p374 - #applying patch /Users/myuser/.rvm/patches/ruby/1.8.7/no_sslv2.diff.
ruby-1.8.7-p374 - #applying patch /Users/myuser/.rvm/patches/ruby/GH-488.patch.
ruby-1.8.7-p374 - #applying patch /Users/myuser/.rvm/patches/ruby/ssl_no_ec2m.patch.
ruby-1.8.7-p374 - #configuring...............................
ruby-1.8.7-p374 - #post-configuration.
ruby-1.8.7-p374 - #compiling.................................
Error running '__rvm_make -j12',
please read /Users/myuser/.rvm/log/1638292263_ruby-1.8.7-p374/make.log

There has been an error while running make. Halting the installation.

To proceed rvm requires a ruby-1.8.7-p374 compatible ruby is installed.
We attempted to install it automatically but it failed with status 2.
Please install it manually (or a compatible alternative) to proceed.

鏈接到 make.log

這些是我用來在運行 Monterey 的 M1 Mac 上安裝 ruby-1.8.7 的步驟:

  1. 使用 Rosetta 啟動終端 window
  2. 下載編譯OpenSSL 1.0.2u(假設安裝到/usr/local/ssl)
  3. 安裝 HomeBrew 並安裝 gcc@6(假設您之前沒有在 Arm64 架構中安裝 Home-brew。如果有,則需要先將其卸載)
  4. 在終端運行: rvm install 1.8.7 --with-openssl-dir=/usr/local/ssl --autolibs=disable --with-gcc=gcc-6

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM