yaml.h not found and psych.rb:455:in parse_stream
: undefined method parse
for #<Psych::Parser
#607
-
Hi, I'm getting two different errors on different environments (both Linux) when upgrading to Psych 5 but it works fine on macOS. First error is:
And second error is:
|
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 1 reply
-
I'm seeing undefined method `_native_parse' for #Psych::Parser:0x...... |
Beta Was this translation helpful? Give feedback.
-
Could this be related to #541? Is |
Beta Was this translation helpful? Give feedback.
-
I'm also seeing problems with missing libyaml - the Ubuntu image that dependabot uses doesn't seem to include libyaml, which makes psych 5.0.0 install fail, which means dependabot can't check my dependencies for projects that use latest psych. Not quite sure what needs to be fixed: psych, dependabot, or the image? |
Beta Was this translation helpful? Give feedback.
-
Ran into the "yaml.h not found" error with the RubyInstaller for Windows which uses MINGW. For others in the same boat, you will need to run |
Beta Was this translation helpful? Give feedback.
-
With libyaml-dev installed I get the same error on AWS and on GitHub Actions (related to the Skylight gem) |
Beta Was this translation helpful? Give feedback.
-
Anyone like me who got here via a failing github action may be interested in ruby/setup-ruby#409 and actions/runner-images#6725 |
Beta Was this translation helpful? Give feedback.
-
JFYI, on Windows, I think Quite a few packages on Ubuntu are split into 'runtime' packages (the standard one), and a 'dev' package. With MSYS2 and vcpkg, they are often a single package... |
Beta Was this translation helpful? Give feedback.
-
I'm still seeing the |
Beta Was this translation helpful? Give feedback.
-
I'm seeing this with ubuntu-20.04 and ubuntu-latest and ruby 3.1.3. I got around it by removing rdoc to get rid of the psych dependency. |
Beta Was this translation helpful? Give feedback.
-
I ran into this problem with psych 5.0 on CircleCI running Ubuntu 22.04 with CI output
Not sure why but I don't run into this issue on my Pop!_OS 22.04 laptop running the same version of libyaml-dev. |
Beta Was this translation helpful? Give feedback.
-
gem_make.out
mkmf.log
|
Beta Was this translation helpful? Give feedback.
-
Closing the loop on this, a bug in library path resolution was reported at rubygems/rubygems#6611, fixed by rubygems/rubygems#6490, and the fix was released in rubygems 2.4.9. TL;DR affected users can upgrade their rubygems installation to 2.4.9 or later. I think we can close this discussion! |
Beta Was this translation helpful? Give feedback.
Closing the loop on this, a bug in library path resolution was reported at rubygems/rubygems#6611, fixed by rubygems/rubygems#6490, and the fix was released in rubygems 2.4.9.
TL;DR affected users can upgrade their rubygems installation to 2.4.9 or later.
I think we can close this discussion!