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

Daniel Larsson daniel.larsson at servicefactory.com
Mon Jan 9 18:05:19 GMT 2006


Dave Beckett wrote:
> 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.

/usr/local/include and /usr/local/lib isn't, unlike in Linux, part of 
the standard search paths in BSD's compile of gcc, so typically you'll 
need to set LDFLAGS and CPPFLAGS correspondingly, like below.

> 
> You can do this via configure with:
> LDFLAGS=-L/usr/local/lib ./configure --with-ruby=/usr/local/bin/ruby
> 
> Dave
> 
> 
> _______________________________________________
> redland-dev mailing list
> redland-dev at lists.librdf.org
> http://lists.gnomehack.com/mailman/listinfo/redland-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: daniel.larsson.vcf
Type: text/x-vcard
Size: 329 bytes
Desc: not available
Url : http://lists.gnomehack.com/pipermail/redland-dev/attachments/20060109/e0c23c2d/daniel.larsson.vcf


More information about the redland-dev mailing list