Thanks to Christian Plessl getting gemification started, llvmruby is now available as a gem install from github. LLVM itself is still a separate install and build. This will probably remain true as LLVM is huge and takes forever to compile. Including it with every version of a gem seems ridiculous. The other good news is that LLVM 2.4 is due out at the end of the month at which point we will be targeting a real non-development version!
To install as a gem, you need to be able to install gems from github.
- Upgrade to at least 1.2 of rubygems
- Add github as a gem source: gem source -a http://gems.github.com
- Make sure that you have built LLVM, that you built it with –enable-pic, and that llvm-config is in your path
- gem install tombagby-llvmruby
require 'rubygems' require 'llvm'
And you are good to go!