rinruby icon indicating copy to clipboard operation
rinruby copied to clipboard

Error for popen missing interactive slave

Open SixArm opened this issue 14 years ago • 4 comments

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'
   ...

SixArm avatar Sep 18 '11 23:09 SixArm

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

clbustos avatar Sep 19 '11 05:09 clbustos

@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???

kumarsaurabh20 avatar May 09 '14 20:05 kumarsaurabh20

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

pilarcormo avatar Feb 20 '15 11:02 pilarcormo

@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

kumarsaurabh20 avatar Feb 20 '15 11:02 kumarsaurabh20