Skip to content

Instantly share code, notes, and snippets.

@sandro
Created October 7, 2009 13:12
Show Gist options
  • Save sandro/204016 to your computer and use it in GitHub Desktop.
Save sandro/204016 to your computer and use it in GitHub Desktop.
Compile Ruby Cocoa on Snow Leopard
# ARCHFLAGS may or may not matter - I set mine up this way just in case.
~$ echo $ARCHFLAGS
-arch i386 -arch x86_64
# Be sure to compile ruby with --enable-shared
~$ rvm install 1.9.1 --debug --reconfigure -C --enable-shared=yes
# Test to ensure that --enable-shared worked
~$ ruby -e "require 'rbconfig'; puts Config::CONFIG['ENABLE_SHARED']"
yes
# download rubycocoa 1.0.0 and install it
~$ ruby install.rb config [--build-universal=no]
~$ ruby install.rb setup
~$ sudo ruby install.rb install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment