Skip to content

Migrating to Rails 4 ruby 2.1.2 on OS X Mavericks (10.9.5)

vtiffenberg edited this page Oct 21, 2014 · 2 revisions

Everything seems to just work on Mavericks, except for a single issue with thrift. This is the log of commands needed to migrate to Rails 4 and Ruby 2.1.2:

git checkout ruby-2.1.2
cd .. && cd resourcemap
rvm install ruby-2.1.2 # needs root for creating /etc/openssl
bundle config build.thrift --with-cppflags='-D_FORTIFY_SOURCE=0' # From http://stackoverflow.com/a/19771815/641451
bundle install
redis-server &
rake spec

Side note: I had issues with my zeromq version. Worked uninstalling all but zeromq22 (brew package) and running ARCHFLAGS="-arch x86_64" gem install zmq -- --with-zmq-dir=/usr/local/opt/zeromq22 to install the gem