File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ruby and the fly likes Question on gem dependencies Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other Languages » Ruby
Reply Bookmark "Question on gem dependencies" Watch "Question on gem dependencies" New topic
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
 
IntelliJ Java IDE
 
subject: Question on gem dependencies
 
Threads others viewed
java lang UnsatisfinedLindError
gem installation problems in windows
WA #1.....word association
How to install "Fast Debugger" using Netbeans as IDE for Ruby?
Copy dlls and lic files from server path to local system 32 dir in Applet init()
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture