[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Compile requirements of Ruby and Extensions

Markus Kolb

4/1/2006 3:46:00 PM

Hi,

is there anywhere a list what libs ruby and a extension needs to be
configured and compiled?

Thanks.
Markus

3 Answers

Stephen Waits

4/1/2006 4:23:00 PM

0


On Apr 1, 2006, at 7:48 AM, Markus Kolb wrote:

> is there anywhere a list what libs ruby and a extension needs to be
> configured and compiled?

Unfortunately, no. I dug around until I figured it out. See
attached script for help.

--Steve

Timothy Goddard

4/2/2006 1:54:00 AM

0

Ruby seems to have very few dependencies. On my ruby 1.8.4 / linux
system it seems to require openssl for ruby itself and readline, zlib,
ncurses and gdbm for the standard libraries and other tools. Obviously
different platforms may have alternatives to these libraries instead.

Markus Kolb

4/2/2006 10:27:00 AM

0

Timothy Goddard wrote:
> Ruby seems to have very few dependencies. On my ruby 1.8.4 / linux
> system it seems to require openssl for ruby itself and readline, zlib,
> ncurses and gdbm for the standard libraries and other tools. Obviously
> different platforms may have alternatives to these libraries instead.
>

But that is not the end. Tk needs libtk,libtcl...
It tries to find and link with e.g. libtermcap and I don't know if it is
bad or ok if this fails.
Then I think there are replacements in Ruby script if some libs are
missing. These script replacements are of course slower in execution as
the binary code.
Shouldn't the make test check if the compilation was successful?
I've done a small C-file patch and lib/ruby/1.8/(arch)/socket.so got not
build.
The make all, make install and make test doesn't abort.
So I don't know if everything is in place after make install.
Or if it could happen that anytime in the future I use some feature and
Ruby misses a file to do its work. Or if my build is fine or it could be
done better.

It would be a very simple work for developers during development to note
the libs they try to link with.

Then I am missing --enable/disable-features in configure.