Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 10 You must be signed in to fork a gist
  • Save thibaudgg/294465 to your computer and use it in GitHub Desktop.
Save thibaudgg/294465 to your computer and use it in GitHub Desktop.
install rubycocoa over rvm's 1.8.7
~$ ARCHFLAGS='-arch i386 -arch x86_64'
~$ rvm install 1.8.7 --debug --reconfigure -C --enable-shared=yes
~$ wget http://sourceforge.net/projects/rubycocoa/files/RubyCocoa/1.0.0/RubyCocoa-1.0.0.tar.gz/download
~$ tar xzf RubyCocoa-1.0.0.tar.gz && rm RubyCocoa-1.0.0.tar.gz && cd RubyCocoa-1.0.0
~/RubyCocoa-1.0.0$ ruby install.rb config --build-universal=yes
~/RubyCocoa-1.0.0$ ruby install.rb setup
~/RubyCocoa-1.0.0$ sudo ruby install.rb install
@MarioRicalde
Copy link

Thanks for this!

@lannon
Copy link

lannon commented Nov 30, 2010

Very helpful, thanks. Note that the --debug adds a generous dollop of verbosity to all rvm commands.

@tlianza
Copy link

tlianza commented Feb 6, 2012

Note in v 1.0.1 they deprecated 'build-universal' and then removed it in 1.0.2. The equivalent command, per the release notes, is:

ruby install.rb config --target-archs="i386 x86_64 ppc"

However, when I run that on Lion, I get some errors like "ignoring file rubycocoa.o, file was built for unsupported file format which is not the architecture being linked (i386)"

So, the config that worked for me was just:

ruby install.rb config --target-archs="x86_64"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment