Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kcrawford/5165124 to your computer and use it in GitHub Desktop.
Save kcrawford/5165124 to your computer and use it in GitHub Desktop.
ARCHFLAGS='-arch i386 -arch x86_64'
rvm install 1.8.7 --debug --reconfigure -C --enable-shared=yes
curl -L -o ~/Downloads/RubyCocoa-1.0.5.tar.gz http://sourceforge.net/projects/rubycocoa/files/RubyCocoa/1.0.5/RubyCocoa-1.0.5.tar.gz/download
cd ~/Downloads && tar xzf RubyCocoa-1.0.5.tar.gz && rm RubyCocoa-1.0.5.tar.gz && cd RubyCocoa-1.0.5
rvm use 1.8.7
ruby install.rb config --target-archs="x86_64"
ruby install.rb setup
sudo ruby install.rb install
rvm 1.8.7 do ruby -e 'require "osx/cocoa";OSX::NSLog "Cocoa should work now!"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment