shlomizadok / foreman-docker-compose

Docker compose of Foreman (develop branch), Smart Proxy (develop branch) and Postgres
GNU General Public License v3.0
27 stars 13 forks source link

add zlib-devel to fix foreman build #7

Closed ymajik closed 5 years ago

ymajik commented 7 years ago

I've added zlib-devel to the packages that need to be installed in the Foreman docker build, otherwise it fails while installing the nokogiri gem, and gives following error:

Installing nokogiri 1.7.2 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /usr/local/share/gems/gems/nokogiri-1.7.2/ext/nokogiri
/usr/bin/ruby -r ./siteconf20170519-1-td173z.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
Using mini_portile version 2.1.0
checking for gzdopen() in -lz... no
zlib is missing; necessary for building libxml2
*** 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.
shlomizadok commented 5 years ago

Hey, closing this PR for now. Please reopen if this change is still needed and rebased.