Skip to content
PLAY VIDEO PLAY VIDEO PLAY VIDEO
By Tim Hemi

Post Mountain Lion Upgrade Syndrome

I recently upgraded the OS on my Macbook Pro 13' to Mountain Lion (OS X 10.8). As a Ruby on Rails developer, supporting many environments is a must, and the biological and technological diversity of our clients require a plethora of tools to be installed and operational on my Macbook.

Anywho I found that this guide was helpful with the upgrade:

http://robots.thoughtbot.com/post/27985816073/the-hitchhikers-guide-to-riding-a-mountain-lion - Prem Sichanugrist.

Thanks Prem and to all those who left a comment detailing their experiences on the subject. I too had my own bumps to iron out and have documented them here.

With Ruby: 1.9.3p-125 I ran:

gem install rails 

This crashed when it was installing json-1.7.5 spitting out this message:

/usr/bin/gcc-4.2 not found

hmmm... since this was installed in the upgrade drill, i checked what was installed:

ls -ali /usr/local/bin/gc*
13662506 lrwxr-xr-x  1 themi  staff  16 17 Sep 10:34 /usr/local/bin/gcc-4.2 -> ../Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2
13610191 lrwxr-xr-x  1 themi  staff  47 16 Sep 15:16 /usr/local/bin/gcov-4.2 -> ../Cellar/apple-gcc42/4.2.1-5666.3/bin/gcov-4.2

ok great so...

sudo ln -s /usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2 /usr/bin/gcc-4.2

(A similar fix is also mentioned in the remarks of the guide i followed)

BAM!! Back in business.

With Ruby: 1.8.7p-358 I ran

rake db:migrate

I got:

rake aborted!
dlopen(/Users/themi/.rvm/gems/ruby-1.8.7-p358@core/gems/rmagick-2.10.0/lib/RMagick2.bundle, 9): Library not loaded: /usr/lib/libltdl.7.dylib
Referenced from: /usr/local/lib/libMagickCore.5.dylib
Reason: image not found - /Users/themi/.rvm/gems/ruby-1.8.7-p358@core/gems/rmagick-2.10.0/lib/RMagick2.bundle

Alright sounds like i need to upgrade something so...

brew update
brew upgrade imagemagick
bundle install

HOORAH!!

I found these solutions worked for others who had a similar issue:

gem pristine rmagick

or 

brew remove imagemagick
gem uninstall rmagick
bundle install

lastly:

RAILS_ENV=development lib/daemons/importerd_ctl.rb start

(This is a ruby file which spins up a daemon controller)

NOTE: I Typed:

RAILS{up_arrow}{enter}
relying on the bash history to autocomplete

then I got:

env: ruby\r: No such file or directory

Naturally it took me a while to realise what was up but I eventiualy got there...

rm -f ~/.bash_history

ZING!!

It turns out that the history file had escape codes in it that appear to be interpreted differently now.

So that was my experiences, I am very happy with Mountain Lion, sure there was no wow factor in the upgrade but its the small things that make up the total experience.

So I would like to close with my favourite quote:

"Man is the creator of change in this world. As such he should be above systems and structures, and not subordinate to them." - Steve Jobs

Happy Coding - Tim Hemi

Latest Articles by Our Team

Our expert team of designers and developers love what the do and enjoy sharing their knowledge with the world.

We Hire Only the Best

reinteractive is Australia’s largest dedicated Ruby on Rails development company. We don’t cut corners and we know what we are doing.

We are an organisation made up of amazing individuals and we take pride in our team. We are 100% remote work enabling us to choose the best talent no matter which part of the country they live in. reinteractive is dedicated to making it a great place for any developer to work.

Free Community Workshops

We created the Ruby on Rails InstallFest and Ruby on Rails Development Hub to help introduce new people to software development and to help existing developers hone their skills. These workshops provide invaluable mentorship to train developers, addressing key skills shortages in the industry. Software development is a great career choice for all ages and these events help you get started and skilled up.

  • Webinars

    Webinars

    Webinars are our online portal for tips, tricks and lessons learned in everything we do. Make the most of this free resource to help you become a better developer.

    Learn more about webinars

  • Installfest

    Installfest

    The Ruby on Rails Installfest includes a full setup of your development environment and step-by-step instructions on how to build your first app hosted on Heroku. Over 1,800 attendees to date and counting.

    Learn more about Installfest

  • Development Hub

    Development Hub

    The Ruby on Rails Development Hub is a monthly event where you will get the chance to spend time with our team and others in the community to improve and hone your Ruby on Rails skills.

    Learn more about Development Hub

Get the “reinteractive Review” Monthly Email