Installing libyaml for ruby on a mac osX (Lion)
Asked Answered
L

4

8

I am getting this error message:

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

I have tried entering this command: rvm pkg install libyaml

and I am getting this error message:

"Fetching yaml-0.1.4.tar.gz to /Users/luke/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/luke/.rvm/src
Error running 'tar xmzf /Users/luke/.rvm/archives/yaml-0.1.4.tar.gz -C
/Users/luke/.rvm/src ', 
   please read /Users/luke/.rvm/log/yaml/extract.log
Configuring yaml in /Users/luke/.rvm/src/yaml-0.1.4.
Error running ' ./configure --prefix="/Users/luke/.rvm/usr"  ', 
   please read /Users/luke/.rvm/log/yaml/configure.log
Compiling yaml in /Users/luke/.rvm/src/yaml-0.1.4.
Error running 'make ', please read /Users/luke/.rvm/log/yaml/make.log

Database file /Users/luke/.rvm/config/packages does not exist."

Does anyone know what I am doing wrong? Thanks!

Laudable answered 1/5, 2012 at 1:26 Comment(3)
Did you read the extract.log and configure.log like the error message instructs? Perhaps post the contents to a gist (gist.github.com).Clericals
I did not. Reading that now. Thanks!Laudable
gist.github.com/2640638 This is what I got when I opened extract.log. Thanks for your help!Laudable
S
1

Try this...

Open a new terminal window and:

cd .rvm/src
sudo rm -rf yaml*

(supply your credentials)

cd ~
rvm pkg install libyaml
Stramonium answered 29/5, 2012 at 22:28 Comment(1)
rvm package install libyaml for rvm 1.6.4Effects
C
13

The current release [was] LibYAML: 0.1.4 (2011-05-30) [in 2012 when I answered this question].

Download the source package: http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz.

To build and install LibYAML, run

  • $tar zxf yaml-0.1.4.tar.gz
  • $cd yaml-0.1.4
  • $ ./configure
  • $ make
  • $ make install

    OR just:

    $brew install libyaml

    Next, $brew install ruby

    Good luck.

  • Chericheria answered 6/5, 2012 at 4:25 Comment(1)
    I am getting this after the "./configure" step: make all-recursive Making all in include make[2]: Nothing to be done for all'. Making all in src make[2]: Nothing to be done for all'. Making all in . Making all in tests make[2]: Nothing to be done for all'. Making all in win32 make[2]: Nothing to be done for all'. luke$ Also, I am not sure if it matters but $brew install ruby does not seem to work for me. I am using rvm to reinstall it. I really appreciate your help! Thanks!Laudable
    P
    4

    This worked for me:

    Priscillaprise answered 8/9, 2012 at 2:35 Comment(0)
    S
    1

    Try this...

    Open a new terminal window and:

    cd .rvm/src
    sudo rm -rf yaml*
    

    (supply your credentials)

    cd ~
    rvm pkg install libyaml
    
    Stramonium answered 29/5, 2012 at 22:28 Comment(1)
    rvm package install libyaml for rvm 1.6.4Effects
    M
    1

    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
    
    Mikesell answered 23/5, 2014 at 11:50 Comment(0)

    © 2022 - 2024 — McMap. All rights reserved.