[Rubygems-developers] How to deal with binary dependencies?
drbrain at segment7.net
Sun Aug 17 03:55:22 EDT 2008
On Aug 16, 2008, at 13:49 PM, Charlie Savage wrote:
>> On Jul 21, 2008, at 12:56 PM, Luis Lavena wrote:
>>>> Of course, you might not want that to happen on all platforms,
>>>> but to solve
>>>> that you just provide platform specific gems (which obviously you
>>>> have to
>>>> anyway if the GEM include binary files). For a Windows GEM you'd
>>>> the spec.libraries line, for other platform GEMS you would not.
>>> I'll love to heard back from Eric and other RubyGems developers
>>> about this.
>> I think I'd prefer 'shared_libraries' as the name of this thing.
>> AFAIK, only windows has the problem being dealt with in this
>> thread, so we can implement whichever solution is best for windows.
> Well, it could happen on any platform if you don't the library
> installed. The ifferences are 1) many of these libraries come by
> default on Linux but not Windows 2) its easier to install them on
> Linux, particularly if there aren't pre-built binaries by the
> library maintainers.
Also, adding the library's path to PATH only works on windows. On
unix-like platforms, I think you need to set LD_LIBRARY_PATH instead.
> Anyway, shared_libraries seems like a good name to me. So the idea
> would be:
> Add shared_libraries to a specification. If any are set, make sure
> they end up on the execution path by a) copying them to ruby/bin or
> b) munging the PATH for the running Ruby program (see previous
> emails for more discussion about these two approaches).
> If we want to get this done, should be develop a patch for Gems?
Since I don't have a windows environment for ruby, I can't implement
this. Can you write the patch?
More information about the Rubygems-developers