How to upgrade to ruby 1.9.2

前端 未结 3 1499
悲&欢浪女
悲&欢浪女 2020-12-24 06:11

mac os x how to upgrade to ruby 1.9.2

3条回答
  •  长情又很酷
    2020-12-24 06:54

    I think that the best option is to use Homebrew. The installation is simple:

    brew install ruby
    

    By the way, RVM does not support LLVM based gcc!

    P. S. Homebrew is great choice because it has clear and good way to install things (without ruining your system), you can use it to install various "packages" like git, ghc, emacs etc.

    P. P. S. Don't forget to path your new ruby, something like:

    export PATH="$PATH:/usr/local/opt/ruby/bin"]
    

    P. P. P. S. If you would like to use rvm, try this link: http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/

提交回复
热议问题