Skip to content
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

Open
translunar opened this issue Jul 2, 2013 · 6 comments
Open

Gnuplot and GSL seem to conflict #23

translunar opened this issue Jul 2, 2013 · 6 comments

Comments

@translunar
Copy link

I'm trying to use Gnuplot in a regular Ruby application (which uses Bundler). When I require "gnuplot", that works fine (it returns true). Unfortunately, the Gnuplot 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?

@ashrocket
Copy link

+1, having the same problem. Works fine if I require gnuplot first in a non-rails and non Bundler managed script.
But as soon as Bundler or rails gets involved, the constant is 'missing'

@translunar
Copy link
Author

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.

@rdp
Copy link
Owner

rdp commented Sep 24, 2013

what is causing it to be undefined? does ::GnuPlot work?

@ashrocket
Copy link

As the OP said, it's somehow related to the GSL Gem.
So, this is probably not the correct forum.
Somehow the Namespace gets hidden so you can't refere to Gnuplot or GSL::Gnuplot because the RB GSL gem requires that Gnuplot be loaded first, which it is in my Gemfile, and the latest Bundler is supposed to respect that.

@ashrocket
Copy link

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
And now the Plot functions don't work, but as I said, it's a GSL problem.

@nurettin
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants