opensuse: nokogiri gem installation fails

Extracting libxml2-2.9.2.tar.gz into tmp/x86_64-suse-linux-gnu/ports/libxml2/2.9.2… OK
Running patch with /usr/lib64/ruby/gems/2.1.0/gems/nokogiri-…
Running ‘patch’ for libxml2 2.9.2… ERROR, review ‘/usr/lib64/ruby/gems/2.1.0/gems/nokogiri-’ to see what happened.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

The mentioned log tells us that patch executable is not installed. Fixed by:

sudo zypper in patch


Leave a Comment