trouble with native libraries when using --local --path

216 views
Skip to first unread message

Thorsten von Eicken

unread,
Nov 25, 2013, 12:30:13 AM11/25/13
to ruby-b...@googlegroups.com
I'm having trouble with bundle install --local --path vendor/gems and native gems, nokogiri specifically. When I try to bundle exec rackup I get the error
:in `require': libexslt.so.0: cannot open shared object file: No such file or directory
the .so is in
./vendor/gems/ruby/1.9.1/gems/nokogiri-1.6.0/ports/x86_64-redhat-linux/libxslt/1.1.26/lib/libexslt.so
and in
./vendor/gems/ruby/1.9.1/gems/nokogiri-1.6.0/ext/nokogiri/tmp/x86_64-redhat-linux/ports/libxslt/1.1.26/libxslt-1.1.26/libexslt/.libs/libexslt.so
but neither seem to be in the load path. It seems that when using --local and --path while the gems all get installed locally the dependencies of the shared libraries don't properly get referenced. Is install --local --path supposed to work with native gems like this or is there some additional magic needed?

Andre Arko

unread,
Nov 25, 2013, 6:51:54 PM11/25/13
to ruby-b...@googlegroups.com
The `--local` option simply means that Bundler won't talk to gem servers while installing, so I think we can rule it out.

Does `--system` work for you, but `--path` does not? I believe that this problem is linked to Bundler sometimes not adding a gem's `ext` folder to the load path.

Thorsten von Eicken

unread,
Nov 26, 2013, 12:53:31 AM11/26/13
to ruby-b...@googlegroups.com
Yes, --system works. Your description of "Bundler sometimes not adding a gem's `ext` folder to the load path" sounds on the mark. Is there a way I can influence the "sometimes"?

André Arko

unread,
Nov 26, 2013, 4:25:15 PM11/26/13
to ruby-b...@googlegroups.com
I’m not sure what the criteria are… maybe --path is the time that happens. I believe there’s an open ticket for this issue, and I will try to investigate it when I get the chance. In the meantime, if you have time to investigate, feel free. :)

--
You received this message because you are subscribed to the Google Groups "ruby-bundler" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-bundler...@googlegroups.com.
To post to this group, send email to ruby-b...@googlegroups.com.
Visit this group at http://groups.google.com/group/ruby-bundler.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages