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
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
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
Ruby on Rails. gem error cant find installation
I think you need to install node js as there is a dependency on the run time, that helpfully does not show up.
Please find a link: Rake aborted, Error while trying to load the gem 'uglifier'
where they suggest apt-get install nodejs
Please install libyaml and reinstall your ruby
First remove any previous docs of yaml by
cd .rvm/src
sudo rm -rf yaml*
Then you can do rest of the install by -
rvm pkg install libyaml
P.S You will need to reinstall ruby after this.
UPDATE: If
rvm pkg
seems to be deprecated. You can compile a source on your own. All you gotta do is download the latest version of libyaml from http://pyyaml.org/download/libyaml/
tar zxf yaml-0.1.4.tar.gz
cd yaml-0.1.4
./configure
make
make install
UPDATE2: BTW, you could still use rvm pkg and/or when reinstalling ruby make sure to enbale autolibs by
\curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enable
Ruby Installation on Ubuntu is really messed up
Try installing RVM.
Not sure if this helps:
http://www.andrehonsberg.com/article/install-rvm-ubuntu-1204-linux-for-ruby-193
http://mattslay.com/installing-rails-on-ubuntu-12-04-with-rvm-support/
Last time I used Ubuntu (2007) - it was the same, OSX doesn't make it much easier, but RVM takes most of the issues away.
Related Topics
Restarting a Loop from the Top
How to Check If a Value Exists in an Array in Ruby
Code Block Passed to Each Works With Brackets But Not With 'Do'-'End' (Ruby)
Bundle Install Fails With Ssl Certificate Verification Error
Error: While Executing Gem ... (Gem::Filepermissionerror)
What Is the Ruby ≪=≫ (Spaceship) Operator
Why Use Ruby'S Attr_Accessor, Attr_Reader and Attr_Writer
Why Is It Bad Style to 'Rescue Exception =≫ E' in Ruby
How to Call Shell Commands from Ruby
Ruby Array Access 2 Consecutive(Chained) Elements At a Time
Git, Heroku: Pre-Receive Hook Declined
Rails Activerecord Perform Group, Sum and Count in One Query
Ssl_Connect Returned=1 Errno=0 State=Sslv3 Read Server Certificate B: Certificate Verify Failed