Skip to content

Instantly share code, notes, and snippets.

@changemewtf
Created October 29, 2010 16:12
Show Gist options
  • Save changemewtf/653824 to your computer and use it in GitHub Desktop.
Save changemewtf/653824 to your computer and use it in GitHub Desktop.
Installing Qt bindings on an rvm-controlled ruby
# Ubuntu 10.04
# 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 .
make
sudo make install
# ubuntu doesn't look here by default, but the qtruby install puts its libraries here
sudo ldconfig /usr/local/lib
# we had to run make install with root because it writes to /usr/local/lib, but it also writes to $MY_RUBY_HOME.
# we don't want root-owned files floating around in there
sudo chown -R $USER:$USER $MY_RUBY_HOME
@wayneeseguin
Copy link

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