Until something goes through along the lines of packaging NumRu into a
gem, I may try doing something along those lines. Thanks for the
recommendation.
chris
On Nov 4, 2008, at 7:54 PM, Daniel Zepeda wrote:
It does sound complicated.
Since Shoes has its own ruby distribution, you might try to replace
the one in Shoes with the one in NumRu. Trouble is, I don't know how
much, if anything, _why has changed in the ruby distribution that
comes in Shoes to get Shoes to work.
If I were you, I'd whip out kdiff3 against the NumRu distribution,
the Shoes distribution and a "normal" distribution. That may give
you enough information to come up with an answer.
Otherwise,I've got nothing.
DZ
On Nov 3, 2008, at 6:40 PM, Christopher Small wrote:
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