missing libyaml-0.2.dylib in 'mpapis' user dir #1145

tarun opened this Issue Sep 27, 2012 · 8 comments

4 participants


Libraries missing for ruby-1.9.3-p194: /Users/mpapis/.rvm/usr/lib/libyaml-0.2.dylib. Refer to your system manual for installing libraries

$ rvm pkg install libyaml
Fetching yaml-0.1.4.tar.gz to /Users/tarun/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/tarun/.rvm/src
Configuring yaml in /Users/tarun/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/tarun/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/tarun/.rvm/usr

Please note that it's required to reinstall all rubies:

rvm reinstall all --force

Taruns-MacBook-Pro:~ tarun$ rvm reinstall all --force
Removing /Users/tarun/.rvm/src/ruby-1.9.3-p194...
Removing /Users/tarun/.rvm/rubies/ruby-1.9.3-p194...
ruby-1.9.3-p194 - #configure
ruby-1.9.3-p194 - #download
ruby-1.9.3-p194 - #extract
ruby-1.9.3-p194 - #validate
Libraries missing for ruby-1.9.3-p194: /Users/mpapis/.rvm/usr/lib/libyaml-0.2.dylib. Refer to your system manual for installing libraries
Mounting remote ruby failed, trying to compile.
-bash: --version: command not found
Installing Ruby from source to: /Users/tarun/.rvm/rubies/ruby-1.9.3-p194, this may take a while depending on your cpu(s)...
ruby-1.9.3-p194 - #downloading ruby-1.9.3-p194, this may take a while depending on your connection...
ruby-1.9.3-p194 - #extracting ruby-1.9.3-p194 to /Users/tarun/.rvm/src/ruby-1.9.3-p194
ruby-1.9.3-p194 - #extracted to /Users/tarun/.rvm/src/ruby-1.9.3-p194
ruby-1.9.3-p194 - #configuring
ruby-1.9.3-p194 - #compiling
ruby-1.9.3-p194 - #installing
Error running 'make install', please read /Users/tarun/.rvm/log/ruby-1.9.3-p194/install.log
There has been an error while running make install. Halting the installation.
-bash: --version: command not found


on os x mountain lion


I see this too. It looks like the reference to @mpapis is here - https://github.com/wayneeseguin/rvm/blob/master/scripts/external#L313


Seeing this as well after updating to 1.16.1

Ruby enVironment Manager member

@mcdavis good catch, but this is not the issue itself, the problem lies in how the binary was compiled, I need to try few things to make it working.


@mpapis if there's anything I can do to help, let me know (mcdavis@gmail.com).

@tarun tarun closed this Sep 27, 2012
@tarun tarun reopened this Sep 27, 2012

a side note apart from the mpapis reference.
just wanted to mention this, hoping to prevent tracing down some code chain based on the log submitted above.
The above issue occurred on 1.9.3-p194.

I was later able to successfully build "ruby-1.9.3-head" after installing "automake" and "autoconf" using homebrew as suggested by "rvm requirements".
I am still using the clang compiler and not gcc42.

@mpapis mpapis was assigned Sep 27, 2012
@mpapis mpapis closed this in 5755623 Sep 27, 2012
Ruby enVironment Manager member

@tarun ruby is not fully working with clang, there is at least known issue with Fibers, changing version of clang might introduce other bugs - use it at your own responsibility.

as for 1.9.3-p194:

rvm get stable && rvm reinstall 1.9.3

this worked now. thanks!

Taruns-MacBook-Pro:~ tarun$ rvm get stable && rvm reinstall 1.9.3
rvm 1.16.3 (stable) by Wayne E. Seguin wayneeseguin@gmail.com, Michal Papis mpapis@gmail.com [https://rvm.io/]

RVM reloaded!
/Users/tarun/.rvm/src/ruby-1.9.3-p194 has already been removed.
/Users/tarun/.rvm/rubies/ruby-1.9.3-p194 has already been removed.
ruby-1.9.3-p194 - #configure
ruby-1.9.3-p194 - #download
Archive checksum did not match, downloading again.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5099k 100 5099k 0 0 830k 0 0:00:06 0:00:06 --:--:-- 1034k
ruby-1.9.3-p194 - #extract
ruby-1.9.3-p194 - #validate
ruby-1.9.3-p194 - #setup
Saving wrappers to '/Users/tarun/.rvm/bin'.
ruby-1.9.3-p194 - #importing default gemsets (/Users/tarun/.rvm/gemsets/)
Making gemset ruby-1.9.3-p194 pristine.
Making gemset ruby-1.9.3-p194@global pristine.

@mpapis mpapis added a commit that referenced this issue Sep 27, 2012
@mpapis mpapis fix osx 10.7 ruby-1.9.3 binary, switch osx system selctor 10.7.4 -> 1…
…0.7, fix building movable rubies on osx (libyaml), update #1145, update #1121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment