Hmm... Sounds like this may end up being a bit complicated. I'm primarily developing for a group of windows boxes. I installed gsl and the ruby bindings on my windows computer using the NumRu (numerical ruby) installer, which contains these packages. The NumRu package comes with it's own ruby distribution which is able to require this file, but I have not found a way to require it through any applications run through the standard distibution. I've tried things like adding stuff to my PATH variable (everything that I've found that gets loaded when I run NumRu) and have also tried adding all of the directories in the NumRu $: variable to the standard $: variable before requiring, but neither has helped. I was hoping to be able to get everything wrapped up using my mac, but if this seems to be a op_sys dependent issue, that leaves me thinking this might be harder than it's worth for me. I have a lot to learn about working with libraries and such, and I'm far less used to windows for such things. Any further suggestions are welcome - I'll see what I can figure out though.
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
