Psych error when trying to bundle

Posted by Alán

over 1 year ago

1

psych bundle gem gemfile rails

Error message:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension. An error occurred while installing psych (5.1.1.1), and Bundler cannot continue.


A fix for this would be downgrading the version of Psych. Try adding the code below into your gemfile.

gem "psych", "~> 4.0"
Then run in your terminal

bundle install

The alumni community has posted 2 alternative solutions

Posted by Hamed Aljamry

about 1 year ago

gem install psych -v "5.1.2"
gem update --system
bundle

0


Posted by Hamed Aljamry

about 1 year ago

Ubuntu/WSL
sudo apt update
sudo apt install libyaml-dev

MacOs
brew install libyaml 

0