Skip to content

Instantly share code, notes, and snippets.

@rawsyntax
Created January 29, 2010 16:38
Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save rawsyntax/289868 to your computer and use it in GitHub Desktop.
Save rawsyntax/289868 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
~$ 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
@zerodie
Copy link

zerodie commented Jul 18, 2011

Hello,
I'm getting the same error as ionas and mschueler with 1.9.2, and now I resolve this problem finally.
We need to use system ruby when using livereload. (you can use two consoles: one with ruby-1.9.2 and another use system ruby)

step1. $ use rvm system
step2. run commands above:
~$ 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

step3. back to home dir
step4. $ livereload
step5. open another console and $rvm use ruby-1.9.2
and modify file you want.

@rawsyntax
Copy link
Author

RubyCocoa is not 1.9.x compatible.

I got livereload working by using the guard-livereload and rb-fsevent gems.

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