未能在MacOS Monterey上安装RBENV 12.3.1 Intel Core i5
我尝试使用普通安装(RBENV安装2.7.6)或Ruby_cflags安装仍然没有运气!
rbenv --version
rbenv 1.2.0
,,
gem which cocoapods
/Users/mymac/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods.rb
请
Xcode 13.4
任何人
mymac@MacBook-Pro% RUBY_CFLAGS="-Wno-error=implicit-function-declaration" rbenv install 2.7.6
Downloading ruby-2.7.6.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.6.tar.bz2
Installing ruby-2.7.6...
ruby-build: using readline from homebrew
BUILD FAILED (macOS 12.3.1 using ruby-build 20220426)
Inspect or clean up the working tree at /var/folders/n5/d88l_sl9071gns5xdqk_myww0000gn/T/ruby-build.20220528201149.40536.2UiW6F
Results logged to /var/folders/n5/d88l_sl9071gns5xdqk_myww0000gn/T/ruby-build.20220528201149.40536.log
Last 10 log lines:
from ./tool/rbinstall.rb:846:in `block (2 levels) in install_default_gem'
from ./tool/rbinstall.rb:279:in `open_for_install'
from ./tool/rbinstall.rb:845:in `block in install_default_gem'
from ./tool/rbinstall.rb:835:in `each'
from ./tool/rbinstall.rb:835:in `install_default_gem'
from ./tool/rbinstall.rb:799:in `block in <main>'
from ./tool/rbinstall.rb:950:in `block in <main>'
from ./tool/rbinstall.rb:947:in `each'
from ./tool/rbinstall.rb:947:in `<main>'
make: *** [do-install-all] Error 1
帮助。 谢谢。
I have tried to install with normal installation (rbenv install 2.7.6) or with RUBY_CFLAGS still no luck!
rbenv --version
rbenv 1.2.0
,
gem which cocoapods
/Users/mymac/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods.rb
,
Xcode 13.4
,
mymac@MacBook-Pro% RUBY_CFLAGS="-Wno-error=implicit-function-declaration" rbenv install 2.7.6
Downloading ruby-2.7.6.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.6.tar.bz2
Installing ruby-2.7.6...
ruby-build: using readline from homebrew
BUILD FAILED (macOS 12.3.1 using ruby-build 20220426)
Inspect or clean up the working tree at /var/folders/n5/d88l_sl9071gns5xdqk_myww0000gn/T/ruby-build.20220528201149.40536.2UiW6F
Results logged to /var/folders/n5/d88l_sl9071gns5xdqk_myww0000gn/T/ruby-build.20220528201149.40536.log
Last 10 log lines:
from ./tool/rbinstall.rb:846:in `block (2 levels) in install_default_gem'
from ./tool/rbinstall.rb:279:in `open_for_install'
from ./tool/rbinstall.rb:845:in `block in install_default_gem'
from ./tool/rbinstall.rb:835:in `each'
from ./tool/rbinstall.rb:835:in `install_default_gem'
from ./tool/rbinstall.rb:799:in `block in <main>'
from ./tool/rbinstall.rb:950:in `block in <main>'
from ./tool/rbinstall.rb:947:in `each'
from ./tool/rbinstall.rb:947:in `<main>'
make: *** [do-install-all] Error 1
Please anybody help.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错误说您正在尝试降级ENV。
检查
升级到最新版本,
请参见此 https://gorails.com/setup/set.com/setup/osx/osx/12-12--12--12--12--12--12--12--12--12--12--12--12--12--12--12--12--12--蒙特雷
跟随它
The error saying you are trying to downgrade the env.
check
upgrade it to latest version
See this https://gorails.com/setup/osx/12-monterey
follow it with