Can't install gems because “undefined method `invoke_with_build_args' for nil:NilClass”

后端 未结 4 1815
走了就别回头了
走了就别回头了 2020-12-11 14:48

I\'m on the Ruby track and I\'m in the installation process of Ruby on Rails.

I\'m trying to install gems but it\'s not happening and i\'m not sure why and how to fi

相关标签:
4条回答
  • When I checked my

    rbenv local
    

    and

    rbenv global 
    

    they we different.

    So I set

    rbenv local 2.6.5
    

    and it resolved my issue

    0 讨论(0)
  • 2020-12-11 15:12

    I found that although I already had openSSL installed I needed to brew upgrade ruby before it was recognized. Another maze of twisty little passages, all alike.

    0 讨论(0)
  • 2020-12-11 15:15

    try to use this code in cmd

    chcp 1252
    
    0 讨论(0)
  • 2020-12-11 15:19

    It looks like you need to install OpenSSL first. So try to install it:

    $ brew install openssl

    And then you need to recompile ruby with OpenSSL:

    $ CONFIGURE_OPTS="--with-openssl-dir=brew --prefix openssl" rbenv install 2.1.1-p76

    0 讨论(0)
提交回复
热议问题