Vendoring nokogiri in a jruby rails app

I’m trying to vendor nokogiri in a jruby rails app. I want to be able
to
run my app WAR on a machine that doesn’t have the nokogiri / libxml2
native
extensions and .so files installed. I’m having trouble however. When I
do
‘rake gems:build’ and then ‘rake gems:unpack:dependencies’ I get this:

undefined method dependencies' for nil:NilClass /Users/steve/mercy/ra_trunk/vendor/rails/railties/lib/rails/gem_dependency.rb:77:independencies’
/Users/steve/src/jruby-1.4.0/lib/ruby/site_ruby/shared/builtin/core_ext/symbol.rb:3:in
to_proc' /Users/steve/mercy/ra_trunk/vendor/rails/railties/lib/rails/gem_dependency.rb:80:ineach’
/Users/steve/mercy/ra_trunk/vendor/rails/railties/lib/rails/gem_dependency.rb:80:in
map' /Users/steve/mercy/ra_trunk/vendor/rails/railties/lib/rails/gem_dependency.rb:80:independencies’

I removed all gems from my rails app except nokogiri; the problem occurs
when trying to unpack nokogiri’s dependencies.

Has anyone successfully vendor nokogiri and its dependencies into a
rails
app? I need to deploy to a locked down corporate server that does not
have
libxml2 installed.

Thanks.

Steve

On Tue, Feb 2, 2010 at 8:14 PM, Steve M. [email protected]
wrote:

I’m trying to vendor nokogiri in a jruby rails app. Â I want to be able to
run my app WAR on a machine that doesn’t have the nokogiri / libxml2 native
extensions and .so files installed. Â I’m having trouble however. Â When I do
‘rake gems:build’ and then ‘rake gems:unpack:dependencies’ I get this:

I removed all gems from my rails app except nokogiri; the problem occurs
when trying to unpack nokogiri’s dependencies.
Has anyone successfully vendor nokogiri and its dependencies into a rails
app? Â I need to deploy to a locked down corporate server that does not have
libxml2 installed.

That’s going to be pretty tough. If it’s a locked-down server, you’re
going to have to get libxml2.so prebuilt for it, unpacked somewhere
you can load it, and get nokogiri’s FFI code to find it. That’s a
pretty rough combination.

I think the first steps would be to try to get Nokogiri to work with
all the libraries co-located in the same directory on some machine
that doesn’t have libxml2, so you can at least confirm that works.

Until we get the pure-Java Nokogiri finished (HELP!!!), we’re going to
need to work through issues like this. :frowning:

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Where is the java nokogiri project?

On Wednesday, February 3, 2010, Charles Oliver N.
[email protected] wrote:

libxml2 installed.
Until we get the pure-Java Nokogiri finished (HELP!!!), we’re going to


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I believe it’s a branch of the main Nokogiri repository right now…

On Wed, Feb 3, 2010 at 5:16 PM, Steve M. [email protected]
wrote:

I removed all gems from my rails app except nokogiri; the problem occurs
I think the first steps would be to try to get Nokogiri to work with


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs