Showing posts with label ruby shared libraries not loading. Show all posts
Showing posts with label ruby shared libraries not loading. Show all posts

Monday, May 17, 2010

Ruby shared libraries on AIX

With Ruby 1.9.1 p376, a simple gem install like "gem install curb" results in a shared library that can not be loaded. The root of the problem is the -Wl,-blibpath:/usr/local/lib argument that is added to the final link.

If you find the rbconfig.rb file down the /usr/local/lib/ruby/1.9.1 path, and find the RPATHFLAG it will be set to " -Wl,-blibpath:%1$-s". Just change it to "" and that will solve the problem.

You can track this issue in Ruby bug report 3306