未能在MacOS Monterey上安装RBENV 12.3.1 Intel Core i5

发布于 2025-02-02 13:22:43 字数 1551 浏览 0 评论 0原文

我尝试使用普通安装(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

几度春秋 2025-02-09 13:22:43

错误说您正在尝试降级ENV。

检查

ruby -v

升级到最新版本,

rbenv install 3.1.2 # or whichever is latest

请参见此 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--蒙特雷

跟随它

rbenv global 3.1.2
eval "$(rbenv init -)"
gem update --system

The error saying you are trying to downgrade the env.

check

ruby -v

upgrade it to latest version

rbenv install 3.1.2 # or whichever is latest

See this https://gorails.com/setup/osx/12-monterey

follow it with

rbenv global 3.1.2
eval "$(rbenv init -)"
gem update --system
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文