Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sage-andrew-taylor
Created July 28, 2013 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sage-andrew-taylor/cbdd3c6852e2490e5e00 to your computer and use it in GitHub Desktop.
Save sage-andrew-taylor/cbdd3c6852e2490e5e00 to your computer and use it in GitHub Desktop.
[andrew_taylor@accounts-081-pt-uat host_app]$ bundle exec nokogiri -v
# Nokogiri (1.6.0)
---
warnings: []
nokogiri: 1.6.0
ruby:
version: 1.9.3
platform: x86_64-linux
description: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]
engine: ruby
libxml:
binding: extension
source: packaged
libxml2_path: /tmp/working/app/host_app/vendor/bundle/ruby/1.9.1/gems/nokogiri-1.6.0/ports/x86_64-redhat-linux/libxml2/2.8.0
libxslt_path: /tmp/working/app/host_app/vendor/bundle/ruby/1.9.1/gems/nokogiri-1.6.0/ports/x86_64-redhat-linux/libxslt/1.1.26
compiled: 2.8.0
loaded: 2.8.0
[andrew_taylor@accounts-081-pt-uat host_app]$ mv /tmp/working /tmp/notworking
[andrew_taylor@accounts-081-pt-uat host_app]$ bundle exec nokogiri -v
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.6
# Nokogiri (1.6.0)
---
warnings:
- Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.6
nokogiri: 1.6.0
ruby:
version: 1.9.3
platform: x86_64-linux
description: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]
engine: ruby
libxml:
binding: extension
source: packaged
libxml2_path: /tmp/working/app/host_app/vendor/bundle/ruby/1.9.1/gems/nokogiri-1.6.0/ports/x86_64-redhat-linux/libxml2/2.8.0
libxslt_path: /tmp/working/app/host_app/vendor/bundle/ruby/1.9.1/gems/nokogiri-1.6.0/ports/x86_64-redhat-linux/libxslt/1.1.26
compiled: 2.8.0
loaded: 2.7.6
@sage-andrew-taylor
Copy link
Author

If you notice, when /tmp/working doesn't exist (ie when we deploy to a different box that we built on) the version loaded reverts to 2.7.6 which is the version we have installed system-wide from yum. I would expect that the libxml2_path was the path in ./vendor/bundle at the time of execution, not, at the time of build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment