Finally I got a 15'' Mac Pro as my working laptop, it is kind of Chinese new year gift :)
First, the OS embedded a Ruby 2.0 version, which is kind of out of date, so upgrade to the 2.2.0 is my first stuff to do with my Mac.
The main steps i follow is This
However, after doing that, it is not working properly on mine, so i will simplify my steps as following:
Update: i found this link which is great steps and explanation to install Ruby by rbenv:
https://cbednarski.com/articles/installing-ruby/
First, the OS embedded a Ruby 2.0 version, which is kind of out of date, so upgrade to the 2.2.0 is my first stuff to do with my Mac.
The main steps i follow is This
However, after doing that, it is not working properly on mine, so i will simplify my steps as following:
- Install Homebrew: ruby -e "$(curl -fsSL https://raw.githubusercontent.
com/Homebrew/install/master/ install)" - Install rbenv to help you manage ruby versions: brew install rbenv ruby-build
- Adding extra Path to ~/.bash_profile : export PATH=/Users/cchi/.rbenv/shims:$PATH
- Open Terminal-> preference -> Shell -> Startup : source ~/.bash_profile
- Check all existing package you can install : rbenv list -l
- Install Ruby 2.2.0: rbenv install 2.2.0
- Sets the global version to Ruby 2.2.0: rbenv global 2.2.0
- Check the ruby Version: ruby -v
Update: i found this link which is great steps and explanation to install Ruby by rbenv:
https://cbednarski.com/articles/installing-ruby/
No comments:
Post a Comment