File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ruby and the fly likes Question on gem dependencies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Question on gem dependencies" Watch "Question on gem dependencies" New topic

Question on gem dependencies

Bill Barbour
Ranch Hand

Joined: Dec 19, 2002
Posts: 35

If you have some Ruby code that has hooks into a native library, is there a way to validate that native library exists on the target platform that the gem is being installed to?

Jason Porter
Ranch Hand

Joined: Apr 26, 2007
Posts: 126
I don't know if there is or not, I do know that the majority of the database gems use native code. I haven't seen one yet that verifies if the libraries are there or not, it just dies when it tries to create bindings to the libraries. I'm curious to know if some else has a better answer.
Prabhakar Chaganti
Ranch Hand

Joined: Nov 30, 2004
Posts: 50
I have not seen any gem yet that checks to see if the required libs are there. A case in point being the rmagick gem which needs imagemagick installed. The installation usually fails with a ruby stack trace about something missing.

Packt Author Page (
David Berube

Joined: Jun 18, 2007
Posts: 26
I imagine it's doable, but I've yet to see it done.

Take it easy,

I agree. Here's the link:
subject: Question on gem dependencies
It's not a secret anymore!