Compile requirements of Ruby and Extensions


#1

Hi,

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

Thanks.
Markus


#2

On Apr 1, 2006, at 7:48 AM, Markus K. 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


#3

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.


#4

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