[Rubygems-developers] Having dynamic libraries installed in the bin directory without having them put in ruby's search path?

Olivier Boudry olivier.boudry at gmail.com
Tue Mar 20 08:20:12 EDT 2007

> If you have two shared libraries to load, one via require and the
> other via the required shared library give them different names (like
> zlib1.dll and zlib.so).  It'll be a much simpler solution.

You're right, it's much simple and probably the only way to get it to
work properly.

> Also, how does ruby get away with having zlib.so in a directory
> that's not in ENV['PATH']?  Can you use the same trick?

zlib.so is in the ruby search path (for searching ruby modules) and
zlib1.dll is in the bin directory. At least when installed with the
One Click Installer.

Thanks for your help,



More information about the Rubygems-developers mailing list