rvm, ruby 1.9.2 - libyaml problems

236 views
Skip to first unread message

onemanarmy

unread,
Jun 15, 2010, 6:44:47 PM6/15/10
to rvm (Ruby Version Manager)
I'm trying to install ruby 1.9.2 via RVM but it fails the compiling,
complaining about libyaml not being installed. So I did so via
MacPorts, but it still can't find it. I'm guessing I need to somehow
pass an option to point it to the right directory but I'm not sure
how. Any help would be very much appreciated. I'm running Mac 10.6.
Thanks in advance.

Darcy Laycock

unread,
Jun 16, 2010, 1:19:27 AM6/16/10
to rvm (Ruby Version Manager)
Hi onemanarmy,

Any chance you could gist the output of the make error log (it should
give you the path for it in the errors when trying to make).

Also, I'll be around on IRC as Sutto if you want to step through the
process with me.

onemanarmy

unread,
Jun 16, 2010, 6:11:35 PM6/16/10
to rvm (Ruby Version Manager)
Here's the output of the make.error.log: http://pastie.org/1007665
I'm new to IRC but I'll try and look you up.

Wayne E. Seguin

unread,
Jun 17, 2010, 9:57:07 AM6/17/10
to rubyversi...@googlegroups.com
That looks more like a readline issue than libyaml.
Please follow this: http://rvm.beginrescueend.com/packages/readline/

onemanarmy

unread,
Jun 17, 2010, 2:15:58 PM6/17/10
to rvm (Ruby Version Manager)
Wayne, you're my hero. Thank you so much.

Wayne E. Seguin

unread,
Jun 19, 2010, 2:53:05 PM6/19/10
to rubyversi...@googlegroups.com
On Thu, Jun 17, 2010 at 2:15 PM, onemanarmy <brad....@gmail.com> wrote:
> Wayne, you're my hero.   Thank you so much.

Excellent, glad you got sorted.

jdutil

unread,
Aug 6, 2010, 3:52:16 PM8/6/10
to rvm (Ruby Version Manager)
Thanks for the readline issue link that helped me finally get rvm up
and running. I kept trying to install libyaml to no avail. I've been
putting off using rvm for months since I kept getting errors when
trying to install rubies. It kind of bugs me that I need to remember
to use:
-C --with-readline-dir=$HOME/.rvm/usr

after any ruby install I'm trying to run though. Is there a way to
configure my rvm installation so that I don't need to pass the
readline option in every install?


On Jun 19, 2:53 pm, "Wayne E. Seguin" <wayneeseg...@gmail.com> wrote:

Wayne E. Seguin

unread,
Aug 6, 2010, 3:56:54 PM8/6/10
to rubyversi...@googlegroups.com
On Fri, Aug 6, 2010 at 3:52 PM, jdutil <jdut...@gmail.com> wrote:
> Thanks for the readline issue link that helped me finally get rvm up
> and running.  I kept trying to install libyaml to no avail.  I've been
> putting off using rvm for months since I kept getting errors when
> trying to install rubies.  It kind of bugs me that I need to remember
> to use:
> -C --with-readline-dir=$HOME/.rvm/usr
>
> after any ruby install I'm trying to run though.  Is there a way to
> configure my rvm installation so that I don't need to pass the
> readline option in every install?

You should be able to place the following inside of your
~/.rvm/config/user IIRC:

ruby_configure_flags=--with-readline-dir=$HOME/.rvm/usr

And then simply 'rvm install 1.8.7' for example will automatically
include that option.

~Wayne

Reply all
Reply to author
Forward
0 new messages