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?

#21
I tried all of these answers and still wasn't able to get it working. I installed libyaml with homebrew and then installed Ruby 1.9.3 and 2.0.0 with rvm. Each time it complained that I was missing psych (libyaml). But trying to install libyaml told me it was already installed. Rinse, repeat. Urgh.

Finally, what I did was to *uninstall* libyaml. Then I [enabled autolibs in rvm](

[To see links please register here]

), which (at least in OSX) allows rvm to install and manage dependencies more directly. Now when I installed the Rubies, rvm was able to install libyaml and recognize that it was in the right spot.

So if you've tried all of the other options, try actually *removing* libyaml and then installing your Rubies. It's count-intuitive from the error messages, but that's what finally worked for me.
Reply

#22
$ brew doctor
$ brew link libyaml
Reply

#23
I reinstalled ruby 1.9.3 with libyaml support:

rvm reinstall 1.9.3 --with-libyaml

I made sure that I would use 1.9.3 before installing psych:

rvm use 1.9.3

I installed psych:

gem install psych
Reply

#24
NON-RVM ruby install method.

% uname -a
Linux localhost.localdomain 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

% cat /etc/redhat-release
CentOS release 6.4 (Final)

% wget

[To see links please register here]

% sudo rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm"
% sudo rpm -ivh rpmforge-release-0.3.6-1.el5.rf.*.rpm"

DISABLE rpmforge by editing this file and set enabled=0
% sudo vi /etc/yum.repos.d/rpmforge.repo

% grep rpmforge ~/.aliases
alias rpmforge "sudo yum --disablerepo='*' --enablerepo='rpmforge'"

% rpmforge install libyaml libyaml-devel

% sudo yum list installed | grep libyaml
libyaml.x86_64 0.1.4-1.el5.rf @rpmforge
libyaml-devel.x86_64 0.1.4-1.el5.rf @rpmforge

The libyaml-devel is the key.

% tar zxvf ruby-1.9.3-p448.tar.gz
% cd ruby-1.9.3-p448
% ./configure -prefix=$HOME/ruby-1.9.3-p448
% make ; make install
% cd $HOME; ln -s ./ruby-1.9.3-p448 ruby

Update your path and source .cshrc

% echo $PATH
/home/francis/ruby/bin:/usr/sbin:/home/francis/bin:/home/francis/jdk1.7.0_25/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin

% which ruby
/home/francis/ruby/bin/ruby

% gem update --system

Set your GEM_HOME in .cshrc and source

% echo $GEM_HOME
% /home/francis/ruby/lib/ruby/gems

% gem install mysql2 pg ruby-debug-ide rails capistrano capistrano-ext passenger


Reply

#25
I got this fixed finally. The issue was that even though I installed libyaml with brew, it was never linked. I had to remove a conflicting header file and then `brew link libyaml`.
Reply

#26
Installing ruby with rvm for mac osx, use autolibs to install libyaml and first uninstalling libyaml helps.

This worked for me:

brew uninstall libyaml
rvm autolibs enable
rvm reinstall ruby-2.1.1

Reply

#27
I had similar problem after OSX upgrade, this what solves my problem:

brew rm libyaml
brew cleanup libyaml
brew install libyaml
brew rm openssl
brew cleanup openssl
brew install openssl
rvm remove *your version*
rvm install *latest version*

[found here][1]


[1]:

[To see links please register here]

Reply

#28
If you are building ruby from source (I built 1.9.3 on Fedora 20), you will need this before you do the configure/make to build ruby:

yum install libyaml-devel

(in addition to yum install libyaml.) Similar to Francis's answer using rpmforge above.
Reply

#29
rvm pkg install libyaml
$LIBYAML_PATH will be the path where RVM installs the upated yaml
rvm get stable
rvm reinstall all --force --with-libyaml-dir=$LIBYAML_PATH
Reply

#30
If you have installed ruby on macOS with homebrew, [try this solution](

[To see links please register here]

).

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

Note that this will get rid of all installed gems. Best save a list of installed gems with `gem list` before you run this.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

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