This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on gem dependencies

 
Bill Barbour
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Author
Ranch Hand
Posts: 126
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
David Berube
author
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I imagine it's doable, but I've yet to see it done.

Take it easy,

Dave
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic