Arm Mac(M1芯片)通过rbenv安装Ruby 2.6.6报错求助
M1芯片Mac使用rbenv安装Ruby 2.6.6失败求助
在Arm架构的Mac(M1芯片)上使用rbenv安装Ruby 2.6.6时遭遇失败,但使用Intel处理器的同事可以正常安装。我尝试过三种常见解决方案,但均无效果。
报错日志
To follow progress, use 'tail -f /var/folders/rb/hwbl5pxd5zs4gzzx5pdljhjw0000gq/T/ruby-build.20221014163104.57025.log' or pass --verbose Downloading ruby-2.6.6.tar.bz2... -> https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.6.tar.bz2 Installing ruby-2.6.6... ruby-build: using readline from homebrew BUILD FAILED (macOS 12.6 using ruby-build 20221004) Inspect or clean up the working tree at /var/folders/rb/hwbl5pxd5zs4gzzx5pdljhjw0000gq/T/ruby-build.20221014163104.57025.x3LvP2 Results logged to /var/folders/rb/hwbl5pxd5zs4gzzx5pdljhjw0000gq/T/ruby-build.20221014163104.57025.log Last 10 log lines: transform_mjit_header: SKIPPED to transform __inline_isfinitel transform_mjit_header: SKIPPED to transform __inline_isfinited transform_mjit_header: SKIPPED to transform __inline_isfinitef transform_mjit_header: SKIPPED to transform __darwin_fd_clr transform_mjit_header: SKIPPED to transform __darwin_fd_set transform_mjit_header: SKIPPED to transform __darwin_fd_isset transform_mjit_header: SKIPPED to transform __darwin_check_fd_set transform_mjit_header: SKIPPED to transform __sputc transdb.h updated ln -sf ../../../.ext/include/-darwin21/rb_mjit_min_header-2.6.6.h include/ruby-2.6.0/-darwin21/rb_mjit_min_header-2.6.6.h
已安装依赖(brew list输出)
==> Formulae autoconf c-ares icu4c libevent libnghttp2 lz4 mysql openssl@1.1 python@3.10 ruby six zlib awscli ca-certificates jq libffi libuv m4 node pkg-config rbenv ruby-build sqlite zstd brotli gdbm libcbor libfido2 libyaml mpdecimal oniguruma protobuf readline saml2aws xz ==> Casks google-cloud-sdk
OpenSSL版本信息(brew info openssl输出)
==> openssl@3: stable 3.0.5 (bottled) [keg-only] Cryptography and SSL/TLS Toolkit https://openssl.org/ Not installed From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/openssl@3.rb License: Apache-2.0 ==> Dependencies Required: ca-certificates ✔ ==> Caveats A CA file has been bootstrapped using certificates from the system keychain. To add additional certificates, place .pem files in /opt/homebrew/etc/openssl@3/certs and run /opt/homebrew/opt/openssl@3/bin/c_rehash openssl@3 is keg-only, which means it was not symlinked into /opt/homebrew, because macOS provides LibreSSL. ==> Analytics install: 159,362 (30 days), 444,743 (90 days), 1,589,438 (365 days) install-on-request: 99,536 (30 days), 319,581 (90 days), 1,219,775 (365 days) build-error: 4,303 (30 days)
我的猜测
我认为问题根源与OpenSSL相关,但已经安装了适配版本(openssl@1.1),希望能帮忙确认该假设是否正确,并提供解决办法。
内容的提问来源于stack exchange,提问作者Rahul
相关产品推荐
相关产品推荐

