Vagrant cannot install nokogiri-dependent plugins

后端 未结 9 671
迷失自我
迷失自我 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条回答
  •  猫巷女王i
    2021-01-18 07:41

    The posted solutions didn't work for me. Instead I needed to specify the libxml2, libxslt and libiconv that I installed with homebrew (Do this first).

    I installed the gem manually with the embedded ruby with the following [very concise] command line:

        /Applications/Vagrant/embedded/bin/gem install \ # select the embedded ruby
          --install-dir ~/.vagrant.d/gems \              # install to the vagrant dir
          nokogiri -v '1.6.2.1' -- \                     # pass options to nokogiri install
          --with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/include/libxml2 \
          --with-xml2-lib=/usr/local/Cellar/libxml2/2.7.8/lib \
          --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26 \
          --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include \
          --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib
    

提交回复
热议问题