Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #6454
| From | Robert Klemme <shortcutter@googlemail.com> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Re: How to get ruby to find a native lib? |
| Date | 2012-02-13 20:39 +0100 |
| Message-ID | <9pt78gFffaU1@mid.individual.net> (permalink) |
| References | <235d5$4f393be1$84b70406$5935@news.eurofeeds.com> |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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