[redland-dev] Ruby bindings make problem...

Dave Beckett dave at dajobe.org
Sat Jan 7 20:16:55 GMT 2006


Ryan Gendron wrote:
> Hi!
> 
> I'm looking forward to using Redland with with ruby bindings.
> Unforunately, I am having a problem with the installation.
> 
> During the make of redland-bindings-1.0.2.1, it stops with the following
> 
> 
> /usr/bin/ld: cannot find -lruby
> collect2: ld returned 1 exit status
> make[2]: *** [ruby-redland-stamp] Error 1
> make[2]: Leaving directory `/usr/local/src/redland-bindings-1.0.2.1/ruby'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/redland-bindings-1.0.2.1/ruby'
> make: *** [all-recursive] Error 1
> 
> I configure like so
> ./configure --with-ruby=/usr/local/bin/ruby
> 
> The settings in the makefile related to ruby are like this:
> 
> RUBY = /usr/local/bin/ruby
> RUBY_DIR = /usr/local/lib/ruby/1.8/i686-linux
> RUBY_INCLUDES = -I/usr/local/lib/ruby/1.8/i686-linux
> RUBY_LIB = ruby
> RUBY_LIBDIR = /usr/local/lib/ruby/1.8
> RUBY_VERSION = 1.8.3
> 
> If anyone has any ideas as to what I am doing wrong, I would really
> appreciate you sharing your wisdom.

Is there is a libruby.so in /usr/local/lib ?

As this looks like it might be a BSD, sometimes I find you have to add a
extra -L/usr/local/lib in order to make the standard gcc link with the
standard libraries install path.  Why this is the case, I don't know.

You can do this via configure with:
LDFLAGS=-L/usr/local/lib ./configure --with-ruby=/usr/local/bin/ruby

Dave




More information about the redland-dev mailing list