On Nov 3, 2008, at 2:08 PM, Christopher Small wrote:

Howdy -

I'm making a a GUI for a ruby program that I've written which uses the GNU Scientific Libraries (GSL) with ruby-gsl bindings. Normally, I am able to get acces to the GSL and bindings by doing

require "gsl"

When I try to include this in a Shoes.app block, I get "no such file to load -- gsl". Does anyone know how I would get this to work properly?

Thanks

Chris

You can either do...

Shoes.setup do
        gem 'gsl'
end

...which will download and install the gem, or you can take the approach of putting it your project, and requiring it from there.

I've actually got into the habit of unpacking all of the gems my programs depend on and put it into a /vendor directory within my project.

There are advantages and disadvantages to both approaches.

DZ



It doesn't look like there is a gem for gsl. I'm guessing that there are native extensions to compile involved, which I haven't had to face directly yet. I'd guess putting the library for all the target platforms directly in your project as I previously mentioned, and them requiring the correct one based on RUBY_PLATFORM might be the best approach.

DZ

Reply via email to