Coder Social home page Coder Social logo

如何移除多餘的ruby about ama HOT 5 CLOSED

rubytaiwan avatar rubytaiwan commented on May 20, 2024
如何移除多餘的ruby

from ama.

Comments (5)

hiroshiyui avatar hiroshiyui commented on May 20, 2024

好奇請教您當時是抓哪個範例?

from ama.

chinghanho avatar chinghanho commented on May 20, 2024

通常放在 /usr/local/bin 目錄底下的都是 symlink,直接刪掉就可以了,如果要刪乾淨就要去找源頭:

$ ls -la /usr/local/bin | grep ruby

應該用的是 rbenv 所以才會裝在這裡,刪除 rbenv 方法可以照文件指示

不過,問題我猜應該不是「有兩套 Ruby」的關係。確認目前用的 Ruby 版本:

$ ruby --version

from ama.

koei1025 avatar koei1025 commented on May 20, 2024

我抓的是這個
https://github.com/ramblex/modal-form

我目前的的版本是ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]

一開始的問題是出現cannot load such file,後來去拜了google之後,才會懷疑可能會不會是這個原因

kenny@test ~/ruby_projects $ rails new test
/usr/local/bin/rails:23:in `load': cannot load such file -- /usr/local/lib/ruby/gems/2.2.0/gems/rails-4.2.3/bin/rails (LoadError)
    from /usr/local/bin/rails:23:in `<main>'

from ama.

chinghanho avatar chinghanho commented on May 20, 2024

如果重裝 Rails 試試看?

from ama.

koei1025 avatar koei1025 commented on May 20, 2024

經過把Rails移除後再重裝就解決問題了,感謝各位的幫忙

from ama.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.