From: Gourav Tiwari on 30 Jun 2010 14:00 Hi Alex I am facing similar issue and I do have $PATH variable setup in the windows. Basically, it happens, when I run cucumber features on culerity gem. Error is: (::) failed steps (::) Exec format error - C:/Ruby/lib/ruby/gems/1.8/gems/culerity-0.2.10/lib/../bin/run_celerity_server.rb (Errno::ENOEXEC) The only line in run_celerity_server.rb I could see is: #!/usr/bin/env jruby require File.dirname(__FILE__) << '/../lib/culerity/celerity_server' Culerity::CelerityServer.new(STDIN, STDOUT) Thanks in advance. -Gourav Alex Stahl wrote: > Do you have the path to the executable listed in your $PATH environment > variable? -- Posted via http://www.ruby-forum.com/.
From: Gordon Thiesfeld on 30 Jun 2010 14:14 On Tue, Jun 8, 2010 at 2:53 PM, Santhosh Kattissery <santhosh214(a)gmail.com> wrote: > Thanks for you reply. > And yes, I am trying to execute a command. > puts `ls`, works for me. > install bundle works for me from command line. > But I want to execute it from ruby code. > Which version of ruby are you using? You may need to run something like: puts `bundle.bat install` HTH Gordon
From: Gourav Tiwari on 30 Jun 2010 14:23 Thanks for the reply Gordon I will give it a try, by the way, I am using ruby 1.8.6 and jruby 1.5.1 Gordon Thiesfeld wrote: > On Tue, Jun 8, 2010 at 2:53 PM, Santhosh Kattissery > <santhosh214(a)gmail.com> wrote: >> Thanks for you reply. >> And yes, I am trying to execute a command. >> puts `ls`, works for me. >> install bundle works for me from command line. >> But I want to execute it from ruby code. >> > > Which version of ruby are you using? You may need to run something > like: > > puts `bundle.bat install` > > HTH > > Gordon -- Posted via http://www.ruby-forum.com/.
From: Gourav Tiwari on 30 Jun 2010 14:42 It didn't work, any idea what may be going wrong here? -Gourav Gourav Tiwari wrote: > Thanks for the reply Gordon > > I will give it a try, by the way, I am using ruby 1.8.6 and jruby 1.5.1 > > Gordon Thiesfeld wrote: >> On Tue, Jun 8, 2010 at 2:53 PM, Santhosh Kattissery >> <santhosh214(a)gmail.com> wrote: >>> Thanks for you reply. >>> And yes, I am trying to execute a command. >>> puts `ls`, works for me. >>> install bundle works for me from command line. >>> But I want to execute it from ruby code. >>> >> >> Which version of ruby are you using? You may need to run something >> like: >> >> puts `bundle.bat install` >> >> HTH >> >> Gordon -- Posted via http://www.ruby-forum.com/.
From: Gordon Thiesfeld on 30 Jun 2010 14:44
On Wed, Jun 30, 2010 at 1:23 PM, Gourav Tiwari <gouravtiwari21(a)gmail.com> wrote: > Thanks for the reply Gordon > > I will give it a try, by the way, I am using ruby 1.8.6 and jruby 1.5.1 > Running ruby scripts are a bit different. You may want to try adding 'ruby ' to the begining C:\Users\gthiesfeld\Work\repo>pik 1.8.6 C:\Users\gthiesfeld\Work\repo\pik>ruby -v ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32] C:\Users\gthiesfeld\Work\repo>irb irb(main):001:0> `test.rb` Errno::ENOEXEC: Exec format error - test.rb from (irb):1:in ``' from (irb):1 irb(main):002:0> `ruby test.rb` => "Hello world!\n4\n" irb(main):003:0> exit C:\Users\gthiesfeld\Work\repo>pik jruby C:\Users\gthiesfeld\Work\repo>ruby -v 'ruby' is not recognized as an internal or external command, operable program or batch file. C:\Users\gthiesfeld\Work\repo\pik>jruby -v jruby 1.5.1 (ruby 1.8.7 patchlevel 249) (2010-06-06 f3a3480) (Java HotSpot(TM) Client VM 1.6.0_20) [x86-java] C:\Users\gthiesfeld\Work\repo>jirb irb(main):001:0> `ruby test.rb` => "Hello world!\n4\n" irb(main):002:0> exit |