openSUSE / software-o-o

The site behind https://software.opensuse.org. It is the default web interface to download openSUSE distributions and to search for OBS packages. Packaged at https://build.opensuse.org/project/show/openSUSE:infrastructure:software.opensuse.org
https://software.opensuse.org/
GNU General Public License v2.0
131 stars 109 forks source link

Error 'yaml.h not found' when running docker-compose build #1472

Closed gagahpangeran closed 3 months ago

gagahpangeran commented 3 months ago

I try to run this project locally. I run the docker-compose command from https://github.com/openSUSE/software-o-o/blob/master/CONTRIBUTING.md#development-environment

docker-compose build --no-cache --pull

And then got this error in step RUN bundle install --jobs=3 --retry=3 based on the output.

63.01 Installing actiontext 7.1.3.2
238.1 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
238.1 
238.1 current directory:
238.1 /tmp/bundler20240402-1-5yfjkopsych-5.1.2/gems/psych-5.1.2/ext/psych
238.1 /usr/bin/ruby.ruby3.1 -I /usr/lib64/ruby/3.1.0 extconf.rb
238.1 checking for yaml.h... no
238.1 yaml.h not found
238.1 *** extconf.rb failed ***
238.1 Could not create Makefile due to some reason, probably lack of necessary
238.1 libraries and/or headers.  Check the mkmf.log file for more details.  You may
238.1 need configuration options.

Looks like there is missing dependency in Dockerfile.

hennevogel commented 3 months ago

Fixed in https://build.opensuse.org/package/rdiff/openSUSE:infrastructure:software.opensuse.org/base?linkrev=base&rev=11