Skip to content

Instantly share code, notes, and snippets.

@code0100fun
Created May 14, 2014 14:15
Show Gist options
  • Save code0100fun/e725f22b300208e3cf06 to your computer and use it in GitHub Desktop.
Save code0100fun/e725f22b300208e3cf06 to your computer and use it in GitHub Desktop.
Install ruby-llvm gem on OS X
1. Pull the repo and bundle
$ git clone git@github.com:code0100fun/ruby-llvm.git
$ cd ruby-llvm/
$ bundle install
2. Create a symbolic link to llvm-config in your PATH
ln -s /usr/local/Cellar/llvm/3.4/bin/llvm-config /usr/local/bin/llvm-config
3. Build the Ruby LLVM support *.dylib
$ cd ext/ruby-llvm-support/
$ rake
$ cd ../../
4. Build the gem and install it
$ gem build ruby-llvm.gemspec
$ gem install ./ruby-llvm-3.4.0.gem
5. Run the tests to verify it's working
$ rake
...
Finished in 0.175873s, 477.6174 runs/s, 1660.2890 assertions/s.

84 runs, 292 assertions, 0 failures, 0 errors, 0 skips
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment