Created
October 29, 2010 16:12
-
-
Save changemewtf/653824 to your computer and use it in GitHub Desktop.
Installing Qt bindings on an rvm-controlled ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
w00t!
http://rvm.beginrescueend.com/integration/qtruby/
Thanks!