Skip to content

Instantly share code, notes, and snippets.

@swistak
Forked from changemewtf/gist:653824
Created August 5, 2011 23:21
Show Gist options
  • Save swistak/1128756 to your computer and use it in GitHub Desktop.
Save swistak/1128756 to your computer and use it in GitHub Desktop.
Installing Qt bindings on an rvm-controlled ruby(without sudo!)
# Ubuntu 10.04 / Debian
rm CMakeCache.txt # Cache needs to be cleaned if you tried to install QtRuby with 1.9.2
# rvm 1.0.14
sudo aptitude install libqt4-core libqt4-dev cmake automoc
# from http://rubyforge.org/projects/korundum/
wget http://rubyforge.org/frs/download.php/71843/qt4-qtruby-2.1.0.tar.gz
tar -xvzf qt4-qtruby-2.1.0.tar.gz
cd qt4-qtruby-2.1.0
# the qtruby install uses the location of your ruby binary
rvm use 1.8.7
cmake -DCMAKE_INSTALL_PREFIX=$MY_RUBY_HOME .
make
make install # Look Ma! No sudo!
# And now it works!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment