On Thu, Oct 11, 2012 at 8:25 PM, Asher Vilensky <
dor...@gmail.com> wrote:
> Update:
>
> I was able to overcome the openssl issue (by reinstalling ruby 1.9.3).
> However, I still get a load error for whichever is the required gem in the
> .rb file. So for example, I changed the order of the required gems below to
> be:
>
> require 'rubygems'
>
> require 'yajl'
> require 'json-compare'
> require 'test/unit'
> require 'httparty'
>
> Notice that I moved httparty to the bottom of the list. Now I get a load
> error for yajl:
>
> $ cucumber
> cannot load such file -- yajl (LoadError)
>
>
> So it seems that the process cannot find the gems - even though they are all
> installed.
>
> So I put the above list in a foo.rb file and ran it like this:
> $ ruby foo.rb
>
> It ran fine. It didn't complain. So I'm suspecting it's cucumber who can't
> load the gems, but I'm not sure why or how to fix it.
>
Cucumber doesn't load gems. The ruby interpreter does.
Are you using rvm? rvm gemsets? bundler?
It's most likely something to do with one of these - or your ruby
installation. I doubt it's cucumber related.
What happens if you run `bundle exec cucumber`?
Aslak
> --
> -- Rules --
>
> 1) Please prefix the subject with [Ruby], [JVM] or [JS].
> 2) Please use interleaved answers
>
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
> 3) If you have a question, don't reply to an existing message. Start a new
> topic instead.
>
> You received this message because you are subscribed to the Google Groups
> Cukes group. To post to this group, send email to
cu...@googlegroups.com. To
> unsubscribe from this group, send email to
>
cukes+un...@googlegroups.com. For more options, visit this group at
>
https://groups.google.com/d/forum/cukes?hl=en
>
>