Here is my Gemfile: gem "jruby-openssl" gem "will_paginate", "~> 3.0.pre2" gem "rubycas-client" gem ''foreigner'' gem ''warbler'' group :test, :development do gem ''capybara'' gem ''database_cleaner'' gem ''cucumber-rails'' gem ''cucumber'' gem ''rspec-rails'', ''>=2.0.0.beta.22'' gem ''spork'' gem ''launchy'' end When I run jruby script/rails generate cucumber:install --help I have this error: /home/user/jruby/lib/ruby/site_ruby/shared/ffi/library.rb:28:in `ffi_lib'': Could not open library ''xml2'' : xml2: cannot open shared object file: No such file or directory. Could not open library ''libxml2.so'' : libxml2.so: cannot open shared object file: No such file or directory (LoadError) What I''ve missed? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Fri, Oct 15, 2010 at 11:08 AM, Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > When I run jruby script/rails generate cucumber:install --help I have > this error: > > /home/user/jruby/lib/ruby/site_ruby/shared/ffi/library.rb:28:in > `ffi_lib'': Could not open library ''xml2'' : xml2: cannot open shared > object file: No such file or directory. Could not open library > ''libxml2.so'' : libxml2.so: cannot open shared object file: No such > file or directory (LoadError) >You need to install libxml for your os distro, because Nokogiri depends on it and from what I see, Cucumber uses Nokogiri from what I have seen. I have installed this on both osx and Ubuntu Server, let me know if you have any trouble and I can try to dig up my notes. What I''ve missed?> > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 15 October 2010 18:17, David Kahn <dk-rfEMNHKVqOwNic7Bib+Ti1W1rNmOCjRP@public.gmane.org> wrote:> > > On Fri, Oct 15, 2010 at 11:08 AM, Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> When I run jruby script/rails generate cucumber:install --help I have >> this error: >> >> /home/user/jruby/lib/ruby/site_ruby/shared/ffi/library.rb:28:in >> `ffi_lib'': Could not open library ''xml2'' : xml2: cannot open shared >> object file: No such file or directory. Could not open library >> ''libxml2.so'' : libxml2.so: cannot open shared object file: No such >> file or directory (LoadError) > > You need to install libxml for your os distro, because Nokogiri depends on > it and from what I see, Cucumber uses Nokogiri from what I have seen. I have > installed this on both osx and Ubuntu Server, let me know if you have any > trouble and I can try to dig up my notes.I''m using debian. I''ve to install libxml-ruby and nokogiri-ruby packages? I''m using jruby. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Fri, Oct 15, 2010 at 3:05 PM, Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 15 October 2010 18:17, David Kahn <dk-rfEMNHKVqOwNic7Bib+Ti1W1rNmOCjRP@public.gmane.org> wrote: > > > > > > On Fri, Oct 15, 2010 at 11:08 AM, Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> > >> When I run jruby script/rails generate cucumber:install --help I have > >> this error: > >> > >> /home/user/jruby/lib/ruby/site_ruby/shared/ffi/library.rb:28:in > >> `ffi_lib'': Could not open library ''xml2'' : xml2: cannot open shared > >> object file: No such file or directory. Could not open library > >> ''libxml2.so'' : libxml2.so: cannot open shared object file: No such > >> file or directory (LoadError) > > > > You need to install libxml for your os distro, because Nokogiri depends > on > > it and from what I see, Cucumber uses Nokogiri from what I have seen. I > have > > installed this on both osx and Ubuntu Server, let me know if you have any > > trouble and I can try to dig up my notes. > > I''m using debian. > I''ve to install libxml-ruby and nokogiri-ruby packages? > I''m using jruby. >First, I know very little about jruby. But as far as getting cucumber working, I *think* that you should first just try installing libxml2 - I think you have to use your distro''s package manager or manually install. I would google for libxml2 and debian. Then see if you are getting the same error message. I think this would solve the problem, because as far as I can see Cucumber installs Nokogiri along with it -- at least I am using rvm and I did not have to install Nokogiri to get Cucumber working, so I am making that assumption. Also, someone can correct me if wrong, but I think libxml-ruby is something that sits on top of libxml/libxml2, so I think you have to install libxml first.> > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 16 October 2010 00:31, David Kahn <dk-rfEMNHKVqOwNic7Bib+Ti1W1rNmOCjRP@public.gmane.org> wrote:> On Fri, Oct 15, 2010 at 3:05 PM, Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> On 15 October 2010 18:17, David Kahn <dk-rfEMNHKVqOwNic7Bib+Ti1W1rNmOCjRP@public.gmane.org> wrote: >> > >> > >> > On Fri, Oct 15, 2010 at 11:08 AM, Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> >> >> When I run jruby script/rails generate cucumber:install --help I have >> >> this error: >> >> >> >> /home/user/jruby/lib/ruby/site_ruby/shared/ffi/library.rb:28:in >> >> `ffi_lib'': Could not open library ''xml2'' : xml2: cannot open shared >> >> object file: No such file or directory. Could not open library >> >> ''libxml2.so'' : libxml2.so: cannot open shared object file: No such >> >> file or directory (LoadError) >> > >> > You need to install libxml for your os distro, because Nokogiri depends >> > on >> > it and from what I see, Cucumber uses Nokogiri from what I have seen. I >> > have >> > installed this on both osx and Ubuntu Server, let me know if you have >> > any >> > trouble and I can try to dig up my notes. >> >> I''m using debian. >> I''ve to install libxml-ruby and nokogiri-ruby packages? >> I''m using jruby. > > First, I know very little about jruby. But as far as getting cucumber > working, I *think* that you should first just try installing libxml2 - I > think you have to use your distro''s package manager or manually install. I > would google for libxml2 and debian. Then see if you are getting the same > error message.libxml2-dev, I have installed it and solved the problem. Thank you very much. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.