Once the installation has completed, we need to tell RVM which version of Ruby we currently want to use: rvm use 1.9.2. Next, test it by checking the version number: ruby -v. On my computer, this returns ruby 1.9.2p290 (2011-07-09 revision 32553) x8664-darwin11.1.0. Good job, you're now using Ruby 1.9.2. There's just one last thing to deal with. Dec 30, 2008.
Download the latest version of Ruby for Windows. Dynamic, open-source programming language. This is Ruby, a natural, flexible, object-oriented programming language. If you can help or wish to become one of the maintainers - just start helping. You can find more RVM related projects at RVM Github organization.
Note: the default ruby version on Mac OS X Lion (10.7.3) is 1.8.7
Install RVM
An easy way to install and switch between ruby version is to use RVM (Ruby Version Manager). RVM make installing multiple ruby interpreters / runtimes easy and consistent.
- Download and install latest RVM version
Install Ruby
To compile ruby, you need a C compiler. If you have XCode installed, you might encounter several issues while compiling. The easiest way I found to fix this is to download osx-gcc-installer (GCC-10.7-v2.pkg) and install it.
You can install RVM as root for your whole system or proceed with a user install as follow:
The CC variable tell our installer to use the freshly downloaded gcc.
Use our new ruby version:
Et voilà!
Notes
Quick links you get during RVM install:
- RTFM: https://rvm.io/
- HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
- Cheatsheet: http://cheat.errtheblog.com/s/rvm/
- Screencast: http://screencasts.org/episodes/how-to-use-rvm
I have created a new user account on my mac and I am trying to update to the current version of ruby on it (1.9.2) from the snow leopard default of 1.8.7. Can somebody point me to tutorial or explain the best method to update Ruby on my mac from 1.8 to 1.9.2? Thanks
Answers:
I’ll make a strong suggestion for rvm.
It’s a great way to manage multiple Rubies and gems sets without colliding with the system version.
I’ll add that now (4/2/2013), I use rbenv a lot, because my needs are simple. RVM is great, but it’s got a lot of capability I never need, so I have it on some machines and rbenv on my desktop and laptop. It’s worth checking out both and seeing which works best for your needs.
Answers:
As The Tin Man suggests (above) RVM (Ruby Version Manager) is the Standard for upgrading your Ruby installation on OSX: https://rvm.io
![Ruby Ruby](/uploads/1/2/6/7/126764370/642590921.jpg)
To get started, open a Terminal Window and issue the following command:
( you will need to trust the RVM Dev Team that the command is not malicious – if you’re a paranoid penguin like me, you can always go read the source: https://github.com/wayneeseguin/rvm ) When it’s complete you need to restart the terminal to get the
rvm
command working. https://websclever223.weebly.com/graphic-converter-download-mac-free.html.( shows you the latest available versions of Ruby )
For a specific version, followed by
or if you just want the latest (current) version:
( installs the current stable release – at time of writing ruby-2.3.1 – please update this wiki when new versions released )
Note on Compiling Ruby: In my case I also had to install Homebrewhttp://mxcl.github.com/homebrew/ to get the gems I needed (RSpec) which in turn forces you to install Xcode (if you haven’t already) https://itunes.apple.com/us/app/xcode/id497799835AND/OR install the GCC package from: https://github.com/kennethreitz/osx-gcc-installer to avoid errors running “make“.
Edit: As of Mavericks you can choose to install only the Xcode command line tools instead of the whole Xcode package, which comes with gcc and lots of other things you might need for building packages. It can be installed by running
xcode-select --install
and following the on-screen prompt.- Examples: https://rvm.io/workflow/examples/
- Screencast: http://screencasts.org/episodes/how-to-use-rvm
Note on erros: if you get the error “RVM is not a function” while trying this command,
visit: How do I change my Ruby version using RVM? for the solution.
visit: How do I change my Ruby version using RVM? for the solution.
Answers:
With brew this is a one-liner:
(assuming that you have tapped homebrew/versions, which can be done by running
brew tap homebrew/versions
)Worked out of the box for me on OS X 10.8.4. Or if you want 2.0, you just
brew install ruby
More generally,
brew search ruby
shows you the different repos available, and if you want to get really specific you can use brew versions ruby
and checkout a specific version instead.Answers:
I know it’s an older post, but i wanna add some extra informations about that.
Firstly, i think that
Firstly, i think that
rvm
does great BUT it wasn’t updating ruby from my system (MAC OS Yosemite).What
rvm
was doing : installing to another location and setting up the path there to my environment variable … And i was kinda bored, because i had two ruby now on my system. So to fix that, i uninstalled the
rvm
, then used the Homebrew package manager available here and installed ruby throw terminal command by doing brew install ruby
. Download free stickers for facebook.And then, everything was working perfectly !
The ruby from my system was updated !
Hope it will help for the next adventurers !
The ruby from my system was updated !
Hope it will help for the next adventurers !
Answers:
I’ll disagree with The Tin Man here. I regard rbenv as preferable to RVM.
rbenv
doesn’t interfere drastically with your shell the way RVM does, and it lets you add separate Ruby installations in ordinary folders that you can examine directly. It allows you to compile Ruby yourself. Good outline of the differences here: https://github.com/sstephenson/rbenv/wiki/Why-rbenv%3FI provide instructions for compiling Ruby 1.9 for rbenv here. Further, more detailed information here. I have used this technique with easy success on Snow Leopard, Lion, and Mountain Lion.
Answers:
Dan Benjamin’s Hivelogic article Installing Ruby, RubyGems, and Rails on Snow Leopard is the recommended place to go although the article is for 1.8, so here’s a Ruby 1.9-specific install on Snow Leopard. Watch out for the 64-bit thing… either go all 64-bit ‘fat’ (as is – for example – Apache on OS X, which can cause problems with 32-bit libraries) or check any gems you’re likely to use to make sure they’re okay for 64-bit.
Answers:
This command actually works
![Download Ruby 1.9 Mac Download Ruby 1.9 Mac](/uploads/1/2/6/7/126764370/332535449.png)
curl -L https://get.rvm.io | bash -s stable --ruby
Paint like app for mac reddit. Open vpn download for kodi.Answers:
As previously mentioned, the bundler version may be too high for your version of rails.
I ran into the same problem using Rails 3.0.1 which requires Bundler v1.0.0 – v1.0.22
Check your bundler version using:
gem list bundler
If your bundler version is not within the appropriate range, I found this solution to work:
rvm @global do gem uninstall bundler
Note: rvm is required for this solution… another case for why you should be using rvm in the first place.
Answers:
Real player 11 mac download. There are several other version managers to consider, see for a few examples and one that’s not listed there that I’ll be giving a try soon is ch-ruby. I tried rbenv but had too many problems with it. RVM is my mainstay, though it sometimes has the odd problem (hence my wish to try ch-ruby when I get a chance). I wouldn’t touch the system Ruby, as other things may rely on it.
Ruby Install Mac
I should add I’ve also compiled my own Ruby several times, and using the Hivelogic article (as Dave Everitt has suggested) is a good idea if you take that route.
Mac Ruby Update
Tags: date, ruby