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

Error for popen missing interactive slave #4

Open
SixArm opened this issue Sep 18, 2011 · 4 comments
Open

Error for popen missing interactive slave #4

SixArm opened this issue Sep 18, 2011 · 4 comments

Comments

@SixArm
Copy link

SixArm commented Sep 18, 2011

Hi, I'm getting this error when I try to do a completely different command (rails generate active_admin:install).

Any idea why rinruby is trying to automatically start up R?

Thanks, Joel

 ./lib/ruby/gems/1.9.1/gems/rinruby-2.0.2/lib/rinruby.rb:164:in `popen': 
  No such file or directory - R --interactive --slave (Errno::ENOENT)
from /opt/ruby/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rinruby-2.0.2/lib/rinruby.rb:164:in `initialize'
from /opt/ruby/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rinruby-2.0.2/lib/rinruby.rb:789:in `new'
from /opt/ruby/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/rinruby-2.0.2/lib/rinruby.rb:789:in `<top (required)>'
from /opt/ruby/ruby-1.9.2-p290/lib/ruby/gems/1.9.1/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `require'
   ...
@clbustos
Copy link
Owner

Do you have R on your path, right?
If not, you can use
require 'rinruby'
r=RinRuby.new(@eXecutable="/home/user/bin/R"

@kumarsaurabh20
Copy link

@clbustos Hi, is there any way I can avoid using r=RinRuby.new(@eXecutable="/home/user/bin/R"
I am receiving the same error when I deploy my app on the server..

No such file or directory - R --interactive --slave (Errno::ENOENT)

Even if I remove require 'rinruby', this error is popping up..

Any suggestions for this???

@pilarcormo
Copy link

@kumarsaurabh20 I have the same problem. Did you manage to fix it? Thank you!

@kumarsaurabh20
Copy link

@pilarcormo I think I was getting this error because rails was not detecting R in the production environment. I did solve this problem by adding the following line in the .htaccess file in the public folder of my production server.

SetEnv PATH Path/to/your/server/R/bin

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

3 participants