Hi All, I need your guide on an issue. My Environment: Window xp , Rails 2.2.2, Rspec-rails 1.1.11, Rspec 1.1.11, Cucmber , Webrat,Culerity I installed the jruby, sets its path in environment. It shows me Version of jruby also. Now the problem is when before installing langalex-culerity(http://github.com/langalex/culerity/tree/master) my cucumber and rspec are working fine. Now i have to test my javascript and ajax and i installed cularity. When i run "rake features". it gives me this error. Scenario: Log in # features/manage_logins.feature:5 C:/Documents and Settings/Administrator/My Documents/NetBeansProjects/1.4/vendor/gems/langalex-culerity-0.1.2/lib/culerity.rb :7:in `popen'': Exec format error - jruby C:/Documents and Settings/Administrator/My Documents/NetBeansProjects/1.4/vendor/gem s/langalex-culerity-0.1.2/lib/culerity.rb (Errno::ENOEXEC) from C:/Documents and Settings/Administrator/My Documents/NetBeansProjects/1.4/vendor/gems/langalex-culerity-0.1.2/li b/culerity.rb:7:in `run_server'' from ./features/step_definitions/common_celerity.rb:2:in `__cucumber_45721280'' from c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.1.16/bin/../lib/cucumber/core_ext/proc.rb:48:in `__send__'' from c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.1.16/bin/../lib/cucumber/core_ext/proc.rb:48:in `call_in'' from c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.1.16/bin/../lib/cucumber/executor.rb:86:in `execute_scenario'' from c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.1.16/bin/../lib/cucumber/executor.rb:86:in `each'' from c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.1.16/bin/../lib/cucumber/executor.rb:86:in `execute_scenario'' from c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.1.16/bin/../lib/cucumber/executor.rb:75:in `visit_scenario'' ... 10 levels... from c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.1.16/bin/../lib/cucumber/cli.rb:13:in `execute'' from c:/ruby/lib/ruby/gems/1.8/gems/cucumber-0.1.16/bin/cucumber:6 from c:/ruby/bin/cucumber:19:in `load'' from c:/ruby/bin/cucumber:19 Thanks for your Help. Regards, Kaleem Ullah -- Posted via http://www.ruby-forum.com/.
Joaquin Rivera Padron
2009-Feb-22 12:42 UTC
[rspec-users] Culerity Error while running feature.
hey Kaleem, I am myself no expert on w$ but the line throwing the error is def self.run_server IO.popen("jruby #{__FILE__}", ''r+'') end are you able to run popen calls in w$ ? try your irb and see, if not maybe there''s some w$ expert who can help hope that helps joaquin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090222/23d114e1/attachment.html>
On Sun, Feb 22, 2009 at 1:42 PM, Joaquin Rivera Padron <joahking at gmail.com> wrote:> hey Kaleem, > I am myself no expert on w$ but the line throwing the error is > def self.run_server > IO.popen("jruby #{__FILE__}", ''r+'')When forking a new ruby interpreter, always use rbconfig: require ''rbconfig'' ruby = File.join(Config::CONFIG[''bindir''], Config::CONFIG[''ruby_install_name'']) IO.popen("#{ruby} #{__FILE__}", ''r+'') If you don''t, you might end up running a different ruby than the one you want. Aslak> end > are you able to run popen calls in w$ ? try your irb and see, if not maybe > there''s some w$ expert who can help > > hope that helps > joaquin > > > > > > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Aslak (::)
Joaquin Rivera Padron
2009-Feb-22 18:24 UTC
[rspec-users] Culerity Error while running feature.
cool, I''ll give that a try in short thanks joaquin 2009/2/22, aslak hellesoy <aslak.hellesoy at gmail.com>:> On Sun, Feb 22, 2009 at 1:42 PM, Joaquin Rivera Padron > <joahking at gmail.com> wrote: >> hey Kaleem, >> I am myself no expert on w$ but the line throwing the error is >> def self.run_server >> IO.popen("jruby #{__FILE__}", ''r+'') > > When forking a new ruby interpreter, always use rbconfig: > > require ''rbconfig'' > ruby = File.join(Config::CONFIG[''bindir''], > Config::CONFIG[''ruby_install_name'']) > IO.popen("#{ruby} #{__FILE__}", ''r+'') > > If you don''t, you might end up running a different ruby than the one you > want. > > Aslak > >> end >> are you able to run popen calls in w$ ? try your irb and see, if not maybe >> there''s some w$ expert who can help >> >> hope that helps >> joaquin >> >> >> >> >> >> >> >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users >> > > > > -- > Aslak (::) > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- www.least-significant-bit.com