Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add libyaml-devel to Dockerfile-ruby32 #143

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Commits on Apr 22, 2024

  1. add libyaml-devel to ruby Dockerfiles

    This fixes a `cdk deploy` failure when the ruby gem `psych` is a dependency.
    
    The error that this commit fixes is:
    ```
    Fetching psych 5.1.2
    Installing psych 5.1.2 with native extensions
    Fetching activesupport 7.1.3
    Fetching aws-sdk-dynamodb 1.103.0
    Installing aws-sdk-dynamodb 1.103.0
    Installing activesupport 7.1.3
    Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
    
        current directory: /asset-output/ruby/3.2.0/gems/psych-5.1.2/ext/psych
    /var/lang/bin/ruby extconf.rb
    checking for yaml.h... no
    yaml.h not found
    *** 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.
    
    Provided configuration options:
    	--with-opt-dir
    	--without-opt-dir
    	--with-opt-include
    	--without-opt-include=${opt-dir}/include
    	--with-opt-lib
    	--without-opt-lib=${opt-dir}/lib
    	--with-make-prog
    	--without-make-prog
    	--srcdir=.
    	--curdir
    	--ruby=/var/lang/bin/$(RUBY_BASE_NAME)
    	--with-libyaml-source-dir
    	--without-libyaml-source-dir
    	--with-yaml-0.1-dir
    	--without-yaml-0.1-dir
    	--with-yaml-0.1-include
    	--without-yaml-0.1-include=${yaml-0.1-dir}/include
    	--with-yaml-0.1-lib
    	--without-yaml-0.1-lib=${yaml-0.1-dir}/lib
    	--with-yaml-0.1-config
    	--without-yaml-0.1-config
    	--with-pkg-config
    	--without-pkg-config
    	--with-libyaml-dir
    	--without-libyaml-dir
    	--with-libyaml-include
    	--without-libyaml-include=${libyaml-dir}/include
    	--with-libyaml-lib
    	--without-libyaml-lib=${libyaml-dir}/lib
    
    To see why this extension failed to compile, please check the mkmf.log which can
    be found here:
    
      /asset-output/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.2/mkmf.log
    
    extconf failed, exit code 1
    ```
    
    f
    chrishiestand committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    e3f3511 View commit details
    Browse the repository at this point in the history