Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #6454

Re: How to get ruby to find a native lib?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Robert Klemme <shortcutter@googlemail.com>
Newsgroups comp.lang.ruby
Subject Re: How to get ruby to find a native lib?
Date Mon, 13 Feb 2012 20:39:56 +0100
Lines 20
Message-ID <9pt78gFffaU1@mid.individual.net> (permalink)
References <235d5$4f393be1$84b70406$5935@news.eurofeeds.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net 3B0VWT63ip/x7Katd6hx1grWP8xHvuCQc/CGXmwS0m5giDWZA=
Cancel-Lock sha1:h6spX9IdxHKSx7R4lUMhDmrAs38=
User-Agent Mozilla/5.0 (X11; Linux i686; rv:9.0) Gecko/20111229 Thunderbird/9.0
In-Reply-To <235d5$4f393be1$84b70406$5935@news.eurofeeds.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:6454

Show key headers only | View raw


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

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to get ruby to find a native lib? Adam Russell <ac.russell@live.com> - 2012-02-13 11:35 -0500
  Re: How to get ruby to find a native lib? Robert Klemme <shortcutter@googlemail.com> - 2012-02-13 20:39 +0100
    Re: How to get ruby to find a native lib? Adam Russell <ac.russell@live.com> - 2012-02-13 17:57 -0500
  Re: How to get ruby to find a native lib? xman <cshinyee@gmail.com> - 2012-02-16 09:54 -0800

csiph-web