Bundle install fails to install libxml-ruby

前端 未结 4 2256
礼貌的吻别
礼貌的吻别 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:32

    Just happened today.

    $ brew link --force libxml2
    Warning: Refusing to link macOS-provided software: libxml2
    ...
    

    At first, I wasn't aware that there's a warning and it doesn't work anymore. Then found this workaround and it worked for me.

    bundle config build.libxml-ruby --use-system-libraries=true --with-xml2-include=/usr/local/opt/libxml2/include/libxml2/
    

提交回复
热议问题