From: Howard Roberts on
Due to recent concerns I took the (perhaps rash) step of purging my apt
installed version of Ruby and installed it from source to achieve patch
level 22 before it was available through the repository. All is well
with my system now, except that I cannot re-compile Shoes correctly.
When I try to make it, I get:

CC -o dist/libshoes.so
/usr/bin/ld: cannot find -lruby
collect2: ld returned 1 exit status
make: *** [dist/libshoes.so] Error 1

Compiling software via make is not one of my strengths, but I have tried
sudo ldconfig and make -I/usr/local/include to no avail. It seems that
Ruby or a library cannot be found, but I'm unsure how to proceed. Any
suggestions or tips would be appreciated.

Thanks,
Howard
--
Posted via http://www.ruby-forum.com/.

From: Peña, Botp on
From: Howard Roberts [mailto:howardroberts(a)comcast.net]
# CC -o dist/libshoes.so
# /usr/bin/ld: cannot find -lruby
# collect2: ld returned 1 exit status
# make: *** [dist/libshoes.so] Error 1

déjà vu,

got a similar problem and i'd like to quotes _why's answer..

--------------------------------------
> /usr/bin/ld: cannot find -lruby
> collect2: ld returned 1 exit status
> make: *** [dist/libshoes.so] Error 1

And it doesn't have the shared lib installed.

You'll need to rebuild Ruby to include the shared lib:

$ ./configure --enable-shared
$ make && make install

I'll look into switching to static linking if the shared lib is
missing. This is very common.

_why"
--------------------------------------



kind regards -botp
From: Howard Roberts on
Peña, Botp wrote:

> got a similar problem and i'd like to quotes _why's answer..
<snip>
> You'll need to rebuild Ruby to include the shared lib:
>
> $ ./configure --enable-shared
> $ make && make install
<snip>
> _why"
<snip>
> kind regards -botp

Exactly the problem, of course. Thanks to you, botp (and _why, too) for
the solution.

Sincerly,
Howard
--
Posted via http://www.ruby-forum.com/.