undefined method `require_relative' for main:Object (NoMethodError)

后端 未结 5 365
别那么骄傲
别那么骄傲 2021-01-12 08:09

When trying to update OpenSSL - I broke (seemingly) everything surrounding Ruby and Rails on my laptop. Even after uninstalling ruby and rails through gem uninstall

5条回答
  •  囚心锁ツ
    2021-01-12 08:39

    I fixed the problem by completely removing Rails, Ruby, and RVM altogether - then starting from scratch.

    I don't remember all of the commands exactly, but it was something like:

    sudo gem uninstall rails
    sudo rvm remove 2.0
    rvm implode
    sudo chown -R drewwyatt: ~/.rvm/
    rm -rf ~/.rvm
    \curl -L https://get.rvm.io | bash -s stable --rails
    rvm use 2.0
    gem install rails
    

提交回复
热议问题