How to Resolve Ruby Error (Missing Psych)

how to solve ruby installation is missing psych error?

In my case

rvm pkg install libyaml

and

rvm reinstall ruby-1.9.3-p125

solved the problem.

For people using Ubuntu, make sure that libtool is installed prior to the steps above:

sudo apt-get install libtool

For macOS users (with homebrew):

rm -rf /usr/local/lib/ruby/gems/ && brew reinstall ruby

Unable to resolve Ruby error (missing psych)

I had this problem and installing libyaml didn't help. It turned out that libyaml-devel was needed by psych. I was on centos6 so I did this:

curl -O http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/atomic-release-1.0-14.el6.art.noarch.rpm

sudo rpm -Uvh atomic-release-1.0-14.el6.art.noarch.rpm

sudo yum install libyaml-devel

rvm reinstall 1.9.3-p194

Fixing the ruby installation is missing psych error?

I had same problem after installing ruby 1.9.3 with rvm.
I solve it by downloading yaml-0.1.4.tar.gz into ~/.rvm/archives and then reinstalled ruby again.

cd ~/.rvm/archives
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
rvm reinstall 1.9.3

If you get some compileerrors, try with this instead

rvm reinstall 1.9.3 --with-gcc=clang

Ruby missing psych for YAML ouput

I had Ruby 2.5.1 installed from ‘sudo apt install Ruby’ and 2.5.3 installed from RVM. I wiped all installed Rubies and RVM, reinstalled 2.5.3 via RVM on the root directory and was good to go.

how to solve ruby installation is missing psych error?

In my case

rvm pkg install libyaml

and

rvm reinstall ruby-1.9.3-p125

solved the problem.

For people using Ubuntu, make sure that libtool is installed prior to the steps above:

sudo apt-get install libtool

For macOS users (with homebrew):

rm -rf /usr/local/lib/ruby/gems/ && brew reinstall ruby

Ruby can't find psych.so despite it existing

This doesn't feel like a "real" solution, but I was able to get things working.

In my case, libyaml is installed in /usr/local/lib. Adding that path to my environment variables did the trick (inspired by Shared Libraries). I added the following to my .bash_profile

LD_LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH

For other visitors who - like me - are trying to make this work with capistrano, adding this to my deploy.rb worked:

set :default_environment, {'LD_LIBRARY_PATH' => '/usr/local/lib'}

I look forward to more informed suggestions.

gem install psych error

install libyaml

port install libyaml +universal

Capistrano deployment throws psych error: wrong number of arguments (given 4, expected 1) :`safe_load'

Solution:
I looked for the Gem that is adding Psych Gem (it is not listed in Gemfile directly). Then I restricted that parent Gem's version to previous version that does not download Psych.
Then I ran gem uninstall psych on the server where I was deploying the code. Removed all versions of Psych from that server.
Then the deployment worked fine.



Related Topics



Leave a reply



Submit