How to correctly update system ruby version to latest version (2.2.1) on OSX -


just trying update latest version of ruby. on ruby-lang.org/en/documentation/installation/#homebrew, found should able via homebrew:

brew install ruby 

however, when listed ruby version (ruby -v) after 'updated' still @ old version 2.0.0.

hermes:~ sancho$ ruby -v ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin13] 

i happened list contents of /usr/local/bin/ , see symbolic link:

ruby -> ../cellar/ruby/2.2.1/bin/ruby

so, don't know what's happening , why version still lists old number , not 2.2.1, looks should.

there sym links various other ruby tools (erb, gem, irb, rake, rdoc, ri) version 2.2.1 also.

so happening here , how correctly install version 2.2.1?

i have rvm installed also, want update system version of ruby latest.

use homebrew make sure /usr/local/bin in path. ex:

.bashrc

export path=/usr/local/bin:$path 

this not update system ruby version. instead install version of ruby , line tells bash new version instead.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -