Vagrant cannot install nokogiri-dependent plugins

后端 未结 9 619
迷失自我
迷失自我 2021-01-18 07:05

I\'m trying to install the rackspace plugin for vagrant (1.5.1):

vagrant plugin install vagrant-rackspace

But it complains

相关标签:
9条回答
  • 2021-01-18 07:45

    Vagrant ships with embedded Ruby and isolated gem environment. So installing gems manually to your "normal" gem environment won't help.

    The first issue is that you should never use sudo to run any vagrant command. If possible, please remove ~/.vagrant.d/ or at least chown it recursively back to your own user. You could also try upgrading Vagrant to v1.5.1.

    Then please gist/pastebin the output of vagrant plugin install vagrant-rackspace --debug and ~/.vagrant.d/gems/gems/nokogiri-1.6.1/ext/nokogiri/mkmf.log.

    0 讨论(0)
  • 2021-01-18 07:46

    I'm on OSX Mavericks and this worked for me:

    Set as environment property:

    NOKOGIRI_USE_SYSTEM_LIBRARIES=1 
    

    Then install as usual:

    vagrant plugin install vagrant-rackspace
    
    0 讨论(0)
  • 2021-01-18 07:47

    in my case while trying to install vagrant-parallels, i had to check the Command line tools folder had an error in the naming for some reason. Fixing that allowed nokigiri to work well

    0 讨论(0)
提交回复
热议问题