rbconfig not indicating correct ruby-dev libaries locations

A

Axel Etzold

Dear all,

when trying to install the newest Shoes on ubuntu 8.04 from source, I got an error

shoes build options:
CC = cc
RUBY = /usr/local
OPTIONS =
ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-linux]
CC -o dist/libshoes.so
/usr/bin/ld: cannot find -lruby
collect2: ld returned 1 exit status
make: *** [dist/libshoes.so] Error 1

So the correct ruby development library files cannot be found, even though they are installed, because
they are named ruby1.8-dev instead of ruby-dev .
Looking at the Makefile, I see this:

RUBY_INCS = `ruby -rrbconfig -e 'puts Config::CONFIG["archdir"]'`
RUBY_SO = `ruby -rrbconfig -e 'puts Config::CONFIG["RUBY_SO_NAME"]'`
RUBY_LIBS = `ruby -rrbconfig -e 'puts Config::CONFIG["LIBRUBYARG_SHARED"]'` -l${RUBY_SO}
RUBY_PREFIX = `ruby -rrbconfig -e 'puts Config::CONFIG["prefix"]'`

Why can't Ruby determine the names of these files correctly ?

Thank you very much,

Best regards,

Axel
 
A

ara.t.howard

Dear all,

when trying to install the newest Shoes on ubuntu 8.04 from source,
I got an error

shoes build options:
CC = cc
RUBY = /usr/local
OPTIONS =
ruby 1.8.6 (2008-03-03 patchlevel 114) [i686-linux]
CC -o dist/libshoes.so
/usr/bin/ld: cannot find -lruby
collect2: ld returned 1 exit status
make: *** [dist/libshoes.so] Error 1

So the correct ruby development library files cannot be found, even
though they are installed, because
they are named ruby1.8-dev instead of ruby-dev .
Looking at the Makefile, I see this:

RUBY_INCS = `ruby -rrbconfig -e 'puts Config::CONFIG["archdir"]'`
RUBY_SO = `ruby -rrbconfig -e 'puts Config::CONFIG["RUBY_SO_NAME"]'`
RUBY_LIBS = `ruby -rrbconfig -e 'puts
Config::CONFIG["LIBRUBYARG_SHARED"]'` -l${RUBY_SO}
RUBY_PREFIX = `ruby -rrbconfig -e 'puts Config::CONFIG["prefix"]'`

Why can't Ruby determine the names of these files correctly ?

Thank you very much,

Best regards,

Axel


package managers *often* completely hose rbconfig since it ends up
reflecting the packager's machine and not the target machine. this is
extremely true in the case of the one-click-installer and why i
personally always install ruby by hand.

in your case though, you may simply need to set LD_LIBRARY_PATH to
point to the right spot or manage some softlinks so things are found
where they are expected.


cheers.


a @ http://codeforpeople.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top