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

Psych 5.x fails to install #412

Closed
2 tasks done
parkr opened this issue Dec 8, 2022 · 1 comment
Closed
2 tasks done

Psych 5.x fails to install #412

parkr opened this issue Dec 8, 2022 · 1 comment

Comments

@parkr
Copy link

parkr commented Dec 8, 2022

Ensure the following before filing this issue

  • I verified it reproduces with the latest version with - uses: ruby/setup-ruby@v1 (see Versioning policy)

  • I tried to reproduce the issue locally by following the workflow steps (including all commands done by ruby/setup-ruby, except for Downloading Ruby & Extracting Ruby),
    and it did not reproduce locally (if it does reproduce locally, it's not a ruby/setup-ruby issue)

Are you running on a GitHub-hosted runner or a self-hosted runner?

GitHub-hosted runner

The workflow code or a link to the workflow file

https://github.com/jekyll/jekyll-import/blob/master/.github/workflows/ci.yml

Link to the log of a failed workflow job, or to a gist with the output

https://github.com/jekyll/jekyll-import/actions/runs/3638899470/jobs/6141644262

The command and output of the failing step

- name: "Set up Ruby ${{ matrix.ruby_version }}"
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby_version }}
          bundler-cache: true


Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
  
  current directory:
  /home/runner/work/jekyll-import/jekyll-import/vendor/bundle/ruby/3.1.0/gems/psych-5.0.0/ext/psych
  /opt/hostedtoolcache/Ruby/3.1.3/x64/bin/ruby -I
  /opt/hostedtoolcache/Ruby/3.1.3/x64/lib/ruby/3.1.0 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.

Any other notes?

Psych 5.0 stopped bundling libyaml (ruby/psych#541), so now ruby/setup-ruby@v1 fails during bundle install since yaml.h is missing.

@eregon
Copy link
Member

eregon commented Dec 8, 2022

Duplicate of #409 and not a setup-ruby issue.

@eregon eregon closed this as not planned Won't fix, can't repro, duplicate, stale Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants