From: soxinbox Date: 2005-10-21T23:32:01+09:00 Subject: Re: gnuplot on ruby gordon, It looks like the gnuplot executable on windows needs to be pgnuplot.exe. Might I suggest that when on windows you set cmd = "pgnuplot" and assume it is in the path. I don't know the ruby way to check for platform, perhaps ENV["OS"].downcase.include?("win") or some such hack. wrote in message news:1129898636.033794.322130@z14g2000cwz.googlegroups.com... > Ara.T.Howard wrote: >> On Fri, 21 Oct 2005, soxinbox wrote: >> >> > I installed gnuplot gem, and I am getting some syntax errors when I try >> > to >> > run the samples on the projects web page. >> > >> >> ruby test.rb >> > c:/programs/ruby/lib/ruby/gems/1.8/gems/gnuplot-2.1/lib/gnuplot.rb:20:in >> > `popen': No such file or directory - which gnuplot (Errno::ENOENT) >> > from >> >> it looks like the code must do >> >> IO::popen `which gnuplot` >> >> so either >> >> - gnuplot is not on your system >> >> - gnuplot is not in your path >> >> can you verify both of these? from the shell do >> >> ~:> which -a gnuplot >> > > Ara is completely correct with his diagnosis. You have two choices, > either ensure that gnuplot is in your path or hardcode the path in the > gnuplot.rb file. I've struggled for a number of years on how to > improvie this but haven't been able to come up with something better > that satisfies my sense of right and wrong. Suggestions would be > appreciated. > > Gordon >