On 02/13/2012 05:35 PM, Adam Russell wrote:
> I have installed some native libraries. They are in /usr/local/lib.
> I am now trying to install a ruby gem which needs these in order to
> build correctly but the gem build fails as it cannot find these
> libraries.
> The gem's extconf.rb file tries to confirm it can find the library with
> have_library() but this fails for some reason.
> I have tried setting a bunch of environment variables (see below for my
> tests in irb) but nothing seems to work.
> What is the best way to solve this problem?
Hmm, did you try
$ LD_LIBRARY_PATH=/usr/local/lib gem install XYZ
? Maybe also export CPPFLAGS=-I/usr/local/include
Kind regards
robert