Ruby/Rails Upgrades
I have a few apps running on rails 3.2.12 and ruby 1.9.2. Since I need to make some changes to them, I thought I’d update them to rails 4.1 and ruby 2.1. I first upgraded the apps to rails 4.0 and ruby 2.0. That worked fine. Now I want to upgrade to ruby 2.1. First I’m doing it on my laptop. Here is how I compiled and installed it.
yo:ruby-2.1.1 $ export LDFLAGS="-L/opt/local/lib" yo:ruby-2.1.1 $ ./configure --prefix=/Users/maryh/Software/rubies/2.1.1 yo:ruby-2.1.1 $ make yo:ruby-2.1.1 $ make install
I then set the PATH to use this new ruby and installed rails.
yo:ruby-2.1.1 $ export PATH=/Users/maryh/Software/rubies/2.1.1/bin:$PATH yo:ruby-2.1.1 $ which ruby /Users/maryh/Software/rubies/2.1.1/bin/ruby yo:ruby-2.1.1 $ ruby -v ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0] yo:ruby-2.1.1 $ which gem /Users/maryh/Software/rubies/2.1.1/bin/gem yo:ruby-2.1.1 $ gem install rails yo:ruby-2.1.1 $ gem list *** LOCAL GEMS *** actionmailer (4.1.0) actionpack (4.1.0) actionview (4.1.0) activemodel (4.1.0) activerecord (4.1.0) activesupport (4.1.0) arel (5.0.1.20140414130214) bigdecimal (1.2.4) builder (3.2.2) bundler (1.6.2) erubis (2.7.0) hike (1.2.3) i18n (0.6.9) io-console (0.4.2) json (1.8.1) mail (2.5.4) mime-types (1.25.1) minitest (5.3.3, 4.7.5) multi_json (1.9.2) polyglot (0.3.4) psych (2.0.3) rack (1.5.2) rack-test (0.6.2) rails (4.1.0) railties (4.1.0) rake (10.1.0) rdoc (4.1.0) sprockets (2.12.1) sprockets-rails (2.1.3) test-unit (2.1.1.0) thor (0.19.1) thread_safe (0.3.3) tilt (1.4.1) treetop (1.4.15) tzinfo (1.1.0)
Now I just need to update my apps to rails 4.1. (I’m thinking there won’t be as many changes as with the 3.2.12 to 4.0 upgrade.) And then bundle update should bring in the rest of the gems that I need.