Bundle install fails to install libxml-ruby

前端 未结 4 2204
礼貌的吻别
礼貌的吻别 2021-02-20 09:50

I\'m a new to Ruby world and I need to clone an existing project.

The instructions are:

source .env.development
bundle install

But it f

4条回答
  •  不要未来只要你来
    2021-02-20 10:25

    I manage to fix this with the help of a colleague, if anybody else encounter this problem:

    gem install libxml-ruby -v '2.9.0' -- --use-system-libraries --with-xml2-dir=/usr/local/Cellar/libxml2/2.9.8/include/libxml2/libxml/ --with-xml2-config=/usr/bin/xml2-config
    

    Replace '2.9.0' with the libxml version that you need!

提交回复
热议问题