I'm using a Mac, but when I try to build a docker-machine on Parallels Desktop Pro Edition environment, I get an error no matter what I do at the stage of bundle install
to the docker container, so this article I have written.
it's simple.
Just add the following to .bundle / config
in the directory where you are trying to run bundle install
:
Project root/.bundle/config
BUNDLE_BUILD__NOKOGIRI: "--use-system-libraries"
After adding, if you execute bundle install
using the docker container, it will pass smoothly.
Before the nokogiri error, throwing an error in therubyracer and running $ bundle config --local build.therubyracer --with-v8-include = / usr / local / opt / [email protected]
will fix it. Information and actually solved it, but when this command is executed, BUNDLE_BUILD__THERUBYRACER:"-with -v8-dir = / usr / local / opt / [email protected] "
was added.
However, even if I executed bundle config build.nokogiri" --use-system-libaries "
in nokogiri, nothing changed to .bundle / config
, so I added" Maybe manually. I thought, "Well, then I'll pass it?"
I thought that other measures led to success, so I deleted the added contents, deleted the directory containing the gem that I put in bundle install
, and tried running bundle install
again. I didn't pass. When I returned the added contents and executed bundle install
, it succeeded. I think this method is the simplest.