Skip to content

Instantly share code, notes, and snippets.

@GoalSmashers
Last active December 25, 2015 04:09
Show Gist options
  • Select an option

  • Save GoalSmashers/6914668 to your computer and use it in GitHub Desktop.

Select an option

Save GoalSmashers/6914668 to your computer and use it in GitHub Desktop.
LLVM and Rubinius 2 on CentOS 5
# LLVM
V=3.3
wget http://llvm.org/releases/$V/llvm-$V.src.tar.gz
tar zxf llvm-$V.src.tar.gz
cd llvm-$V.src
./configure --enable-jit --enable-targets=x86_64 --prefix=$HOME/local
nice -n 10 make
make install
# Rubinius
yum install gcc44 gcc44-c++
export CXX=g++44
rvm get stable
rvm reload
rvm install rbx
@rurban
Copy link

rurban commented Jan 11, 2014

centos 5.10:
llvm-3.3...

checking for python >= 2.5... not found
configure: error: found python 2.4.3 (/usr/bin/python); required >= 2.5

ha! =>

$ sudo yum install python26 #with epel
$ ./configure --enable-jit --enable-targets=x86_64 --with-python=/usr/bin/python2.6

And with an old (3.2) clang already installed you need to do:

$ CC=gcc CXX=g++ ./configure --enable-jit --enable-targets=x86_64 --with-python=`which python`

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