PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > rbconfig not indicating correct ruby-dev libaries locations
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
rbconfig not indicating correct ruby-dev libaries locations

Réponse
 
LinkBack Outils de la discussion
Vieux 20/06/2008, 13h52   #1
Axel Etzold
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut rbconfig not indicating correct ruby-dev libaries locations

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



--
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

  Réponse avec citation
Vieux 20/06/2008, 16h24   #2
ara.t.howard
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: rbconfig not indicating correct ruby-dev libaries locations


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

> 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.


>
>
>
>
> --
> Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
> Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
>


a @ http://codeforpeople.com/
--
we can deny everything, except that we have the possibility of being
better. simply reflect on that.
h.h. the 14th dalai lama




  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h03.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09694 seconds with 10 queries