[Tioga-users] [Fwd: Re: tioga 1.4]
Vincent Fourmond
vincent.fourmond at 9online.fr
Sun Feb 4 15:14:39 EST 2007
[sorry, always forget to reply to the list]
Edwin wrote:
> Hi,
>
> I'm curious to know if anyone else has problems with tioga-1.4?
>
> The gem seems to install the libs wrongly. There is no directory Tioga
> under the libs, so when tioga.rb requires Tioga/FigureMaker it can't find
> it. The easiest way around it was to make the directory and copy
> everything in the lib dir to it.
I'm curious about this part. Could you output the command tree whithin
your gem directory ?
BTW, you need to have
require 'rubygems'
before
require 'Tioga/FigureMaker'
in the script, else the rubygem lookup mechanism simply doesn't work and
require will fail. [I and Bill and JJ got caught by this as well, so
don't feel bad if that is the case ;-)...]
> Next I get an segmentation fault when trying to plot a plot:
> edwin at vimes:~/documents/rhul/popdyn/article$ tioga popdyn_plots.rb -13
> loading /home/edwin/documents/rhul/popdyn/article/popdyn_plots.rb
> /usr/lib/ruby/site_ruby/1.8/Tioga/FigMkr.rb:897: [BUG] Segmentation fault
> ruby 1.8.5 (2006-12-04) [i686-linux]
>
> Aborted
>
> The corresponding line in FigMkr.rb:
> show_axis(self.xaxis_loc) if self.xaxis_visible
>
> (This happened with both the gem version and the other version).
> I'm using gentoo linux, gcc 4.1.1.
If this one is a reproducible bug, here is how to get useful input for
me to debug: run
gdb ruby
[then, whithin gdb]
run your_script.rb and its command line arguments
[then, when it fails with a segfault,]
bt
This should allow us to track the problem. My guess is it might be
packaging-related (ie, my fault).
Cheers, and thanks for the input !
Vincent
--
Vincent Fourmond, PhD student (not for long anymore)
http://vincent.fourmond.neuf.fr/
More information about the Tioga-users
mailing list