Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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

This comment has been minimized.

Show comment Hide comment
@MarioRicalde

MarioRicalde Oct 1, 2010

Thanks for this!

Thanks for this!

@lannon

This comment has been minimized.

Show comment Hide comment
@lannon

lannon Nov 30, 2010

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

lannon commented Nov 30, 2010

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

@tlianza

This comment has been minimized.

Show comment Hide comment
@tlianza

tlianza 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"

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