-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gnuplot and GSL seem to conflict #23
Comments
+1, having the same problem. Works fine if I require gnuplot first in a non-rails and non Bundler managed script. |
Since there's been no reply from the author in three months, I'll go ahead and recommend you try out rubyvis or plotrb. Plotrb may be more appropriate for a Rails app. |
what is causing it to be undefined? does ::GnuPlot work? |
As the OP said, it's somehow related to the GSL Gem. |
I need something like Gnuplot though, the other libs are fine for the Web App, but I'm running code in the Rails Environment, but not necessarily in a Rails App, so I need to be able to "see" my work from the Shell, which worked great when I was only in Ruby. But to access my Models, I needed to run my script as Rails run lib/script.rb |
I'm trying to use Gnuplot in a regular Ruby application (which uses Bundler). When I
require "gnuplot"
, that works fine (it returnstrue
). Unfortunately, theGnuplot
constant does not exist.One questioner on StackOverflow suggested it's due to gem require order (gnuplot needs to come before gsl). I've tried rearranging my Gemfile in every manner of order (bundler now requires in the user-specified order), but no luck.
How does one use the gnuplot gem when gsl is also being used?
The text was updated successfully, but these errors were encountered: