dynamicproxy (dynamicproxy ) wrote,

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,

http://www.ruby-forum.com/topic/2689222
http://redmine.ruby-lang.org/issues/5384

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.
Tags: belenix, opensolaris
  • Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments