| Author |
Question on gem dependencies
|
Bill Barbour
Ranch Hand
Joined: Dec 19, 2002
Posts: 35
|
|
Hello, 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? Thanks!
|
 |
Jason Porter
Ranch Hand
Joined: Apr 26, 2007
Posts: 120
|
|
|
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
author
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 (http://www.packtpub.com/author_view_profile/id/120)
|
 |
David Berube
author
Greenhorn
Joined: Jun 18, 2007
Posts: 26
|
|
I imagine it's doable, but I've yet to see it done. Take it easy, Dave
|
 |
 |
|
|
subject: Question on gem dependencies
|
|
|