emyl / vagrant-triggers

Allow the definition of arbitrary scripts that will run on the host before and/or after Vagrant commands.
MIT License
546 stars 35 forks source link

Nokogiri? #48

Closed AshleyAitken closed 9 years ago

AshleyAitken commented 9 years ago

Hi,

Thanks for the plugin. I am using MacOSX Yosemite and cannot get the vagrant-triggers plugin to install. I am using Boot2Docker, of course.

I have installed nokogiri successfully on the Mac but when I try to install the plugin it gives me an error suggesting it is not installed:

An error occurred while installing nokogiri (1.6.6.2), and Bundler cannot continue. Make sure that gem install nokogiri -v '1.6.6.2' succeeds before bundling.

As mentioned, it is installed $ nokogiri -v

Nokogiri (1.6.6.2)


---
warnings: []
nokogiri: 1.6.6.2
ruby:
  version: 2.0.0
  platform: universal.x86_64-darwin14
  description: ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
  engine: ruby
libxml:
  binding: extension
  source: packaged
  libxml2_path: /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ports/x86_64-apple-darwin14/libxml2/2.9.2
  libxslt_path: /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/ports/x86_64-apple-darwin14/libxslt/1.1.28
  libxml2_patches:
  - 0001-Revert-Missing-initialization-for-the-catalog-module.patch
  - 0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch
  libxslt_patches:
  - 0001-Adding-doc-update-related-to-1.1.28.patch
  - 0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch
  - 0003-Initialize-pseudo-random-number-generator-with-curre.patch
  - 0004-EXSLT-function-str-replace-is-broken-as-is.patch
  - 0006-Fix-str-padding-to-work-with-UTF-8-strings.patch
  - 0007-Separate-function-for-predicate-matching-in-patterns.patch
  - 0008-Fix-direct-pattern-matching.patch
  - 0009-Fix-certain-patterns-with-predicates.patch
  - 0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch
  - 0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch
  - 0014-Fix-for-bug-436589.patch
  - 0015-Fix-mkdir-for-mingw.patch
  compiled: 2.9.2
  loaded: 2.9.2

Will this plugin work with boot2docker?

What do I need to do?

Thanks in advance for any suggestions.

Cheers, Ashley.

PS I was thinking it needs to be installed in the VM, but gem isn't even installed on the VM so I could not just install nokogiri.

AshleyAitken commented 9 years ago

Any thoughts please?

emyl commented 9 years ago

Hi!

Issues with nokogiri usually come from vagrant core, actually vagrant-triggers does not depend on that library. Try to uninstall/reinstall vagrant, see also #10 :wink: