Log in

No account? Create an account
Ram's Live Journal
Wednesday, November 2nd, 2011

Date:2011-11-02 00:20
Subject:Compiling Ruby 1.9.3-p0 on Belenix

After a few exciting weeks at work, I picked up Belenix work again today. I decided to give Ruby 1.9.3-p0 a try, since this is the latest stable.

I ran into a libelf issue, where my the default libelf that came with illumos didn't support large file sizes. People have faced this before already,


I was able to address this by installing a different libelf from here http://www.mr511.de/software/ with a prefix of /usr/local

CFLAGS="-I/usr/local/include/libelf -L/usr/local/include" LDFLAGS="-L/usr/local/lib -R/usr/local/lib" ./configure
Followed by:
make -j 4

I'd installed libelf and libyaml with the prefix of /usr/local, hence the custom CFLAGS and LDFLAGS.

For the longer term, I'm guessing we'll need to closely track eco-systems such as Ruby, Python PHP and the like via Continuous Integration.

[Update:] Update the CFLAGS and LDFLAGS to have the correct content + explain what I did.

post a comment

browse days
my journal