Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 494 Vote(s) - 3.44 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to solve "ruby installation is missing psych" error?

#1
I used rvm to install ruby 1.9.3. even though it was successfully installed, it complained about libyaml. and now every time i wanna install a gem (say rails) this warning shows up:

It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby.

I use Mac os X 10.7 (Lion).
Reply

#2
sudo port install libyaml # or brew install libyaml
rvm get latest
rvm pkg install iconv
rvm pkg install openssl
rvm reinstall 1.9.3 --with-openssl-dir=~/.rvm/usr --with-iconv-dir=~/.rvm/usr

curl -OL

[To see links please register here]

curl -OL

[To see links please register here]


gem install linecache19-0.5.13.gem ruby-debug-base19-0.11.26.gem -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p125/
gem install ruby-debug19

rvm reload

reload your .rvmrc (cd out, cd in)

bundle

Reply

#3
for ubuntu and rvm

sudo apt-get install libtool
rvm pkg install libyaml
rvm reinstall 1.9.3

worked
Reply

#4
brew install libyaml
rvm reinstall 1.9.3

Is what worked for me (on Snow Leopard).
Reply

#5
On Snow Leopard, the solution by Catharz did not work for me. This solution, however, did:

brew install libyaml
rvm get head
rvm reinstall 1.9.3 --with-gcc=clang

(The rvm reinstall gave me a warning about clang not having the option "--with-libyaml" but it solved the error message regardless.)
Reply

#6
I had the same problem (Lion 10.7.4), and fixed it by upgrading rvm then reinstalling ruby

1) upgrade rvm [

[To see links please register here]

][1]

curl -L

[To see links please register here]

| bash -s stable --ruby

2) Then use rvm to reinstall ruby 1.9.3 (which had been previously installed with the earlier version of rvm)

rvm reinstall 1.9.3

[1]:

[To see links please register here]

Reply

#7
This worked for me at least on Ubuntu 10.04

$ sudo apt-get install libtool

$ rvm reinstall 1.9.3
Reply

#8
In my case the solution was to add the `psych` gem to the Gemfile.
Reply

#9
If not using rvm, but rather you are building and installing ruby 1.9.3 from scratch — for example, you're managing your ruby versions with [rbenv](

[To see links please register here]

) — you must install libyaml first. Get it from

[To see links please register here]

; at the moment, the file you want is

[To see links please register here]

. Open the tarball and cd into the resulting folder. Then:

./configure --prefix=/usr/local
make
sudo make install

You are now ready to build ruby. Download ruby from

[To see links please register here]

. Open the tarball and cd into the resulting folder. Now:

./configure --prefix=/wherever/you/want/it/to/go
make
make install

(Or possibly `sudo make install`, depending on where you're putting it.) If using rbenv, you'll know it has worked if you switch to `rbenv global 1.9.3-p194` (or whatever your version is called) and `gem --version` works without a warning. That worked for me on Mac OS X 10.6.8. (**Update**: I just tried this on Mac OS X 10.8.1 and it seems to have worked fine there too.)
Reply

#10
None of these answers worked for me.

I found my answer on

[To see links please register here]

I am on Centos 6.3 Virtual Machine.

YOU MUST install libyaml before you install ruby. IF you ALREADY installed ruby you must get rid of the files before compiling source again!!!

# cd to your ruby source location
rm -rf /usr/local/lib/ruby # clean out ruby files
./configure
make && make install
gem -v # check if error is fixed
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through