Installing Ruby 2.0.0 using RVM
Your rvm is probably not up to date, and by doing so the list of installable rubies also. Rvm probably took the best match, that was Rubinius 2
When you do
rvm list known
You obtain the list of known rubies that you can install
This list is updated at the same time you update rvm. Then you need to update rvm before installing MRI Ruby 2.0.0
rvm get stable
Install ruby 2.0.0 rvm
Download the latest Apple Xcode from the appstore. Open Xcode and install Command Line tools from the preferences. Try running rvm and installing ruby again.
Not able to install ruby 2.0.0
You need to activate 2.0.0 as well:
rvm use 2.0.0
To mark it as the default:
rvm use 2.0.0 --default
As for your "RVM is not a function" problem, see this SO question.
Can't install Ruby 2.0.0 with rvm
When I installed Ruby 2.0 on my OS X Mountain Lion I had to ensure that OpenSSL was first installed. Since I'm using Homebrew, all I had to do a brew install openssl
before rvm install 2.0.0
. It looks like you're running Macports (which I haven't used before), so I guess sudo port install openssl
may work for you.
Also try to install the following as well: autoconf, automake, libtool, pkg-config, libiconv, libyaml, libffi, readline, libxml2, libxslt, libksba, curl-ca-bundle, sqlite3, zlib, ncurses, gdbm
- they're listed as being missing by the output you've provided.
ruby-2.0.0-p247 is not installed
you need to run:
rvmsudo rvm get head # update rvm
rvm autolibs homebrew # tell rvm to use homebrew
rvm install 2.0.0 # install ruby
rvm use 2.0.0 --default # use ruby and make it default
this is leftover after railsinstaller ... I think it can be automated - need to fix it.
Can't install Ruby 2.0.0-p0 with RVM. Error running 'make -j8'
Make sure to install latest version of Command Line Tools for Xcode
and follow this instruction:
rvm get stable
rvm autolibs enable
rvm install ruby || rvm install ruby --with-gcc=clang
Related Topics
How to Recompile a Ruby with Rvm
Adding an Instance Variable to a Class in Ruby
Is There a Good Admin Generator for Ruby on Rails
How to Update Gems on Production Server
Can't Convert Fixnum to String During Rake Db:Create
How to Get a List of All Tags While Using the Gem 'Acts-As-Taggable-On' in Rails (Not the Counts)
How to Render a Partial in Sinatra View (Haml in Haml)
Best Place to Store Model Specific Constants in Rails 3.1
Rails, Ruby, How to Sort an Array
Capistrano & Bash: Ignore Command Exit Status
Vcrproxy: Record Phantomjs Ajax Calls with Vcr Inside Capybara
How to Get an Array with Column Names of a Table
Rails Collection_Select VS. Select
How to Use Capybara in Pure Ruby (Without Rails)
What Are the Main Differences Between Sinatra and Ramaze