# Rbconfig not indicating correct ruby-dev libaries locations

**URL:** <https://www.ruby-forum.com/t/rbconfig-not-indicating-correct-ruby-dev-libaries-locations/140986>\
**Category:** Ruby\
**Created:** [June 20, 2008, 2:55pm UTC](https://www.ruby-forum.com/t/rbconfig-not-indicating-correct-ruby-dev-libaries-locations/140986 "2008-06-20T14:55:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axel\_E](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7c8e57/32.png) [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Post date:** [June 20, 2008, 2:55pm UTC](https://www.ruby-forum.com/t/rbconfig-not-indicating-correct-ruby-dev-libaries-locations/140986/1 "2008-06-20T14:55:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Axel\_E](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7c8e57/32.png) [@Axel\_E](https://www.ruby-forum.com/u/Axel_E)\
**Post date:** [June 20, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/rbconfig-not-indicating-correct-ruby-dev-libaries-locations/140986/2 "2008-06-20T17:26:58Z")

</div>

On Jun 20, 2008, at 6:52 AM, Axel E. wrote:

> CC -o dist/libshoes.so  
> RUBY\_SO = `ruby -rrbconfig -e 'puts Config::CONFIG["RUBY_SO_NAME"]'`  
> 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.

> –  
> Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten  
> Browser-Versionen downloaden: [GMX Browser - verwenden Sie immer einen aktuellen Browser. Kostenloser Download.](http://www.gmx.net/de/go/browser)

a @ [http://codeforpeople.com/](http://codeforpeople.com/)
