wayneeseguin/rvm — Issue #553: Cannot compile yaml for Ruby 1.9.2 on Ubuntu 11.10
Author: travisp
Created: 2011-10-31 22:29:46+00:00
State: open

I get:

make[2]: Entering directory `/home/travis/.rvm/src/yaml-0.1.4/src'
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -g -O2 -MT api.lo -MD -MP -MF .deps/api.Tpo -c -o api.lo api.c
mv -f .deps/api.Tpo .deps/api.Plo
mv: cannot stat `.deps/api.Tpo': No such file or directory

Full details here: https://gist.github.com/1328695

It appears to have something to do with the PATH being set, as the /usr/bin appended to the beginning seems to be the source of the problem.

This thread suggests a work around:

http://groups.google.com/group/rubyversionmanager/browse_thread/thread/9cba4059890828af?hl=en_US

> To fix the rvm install
> problem I edited ~/.rvm/./scripts/functions/pkg and added a
> "autoreconf" before the "./configure". Here's the diff:
>
> 67c67
> < "${configure:-"${rvm_configure_env:-""} ./configure --prefix=\"${prefix_path:-"$rvm_usr_path"}\""} ${rvm_configure_flags:-""} $configure_flags" \
> ---
> \> "${configure:-"${rvm_configure_env:-""} autoreconf; ./configure --prefix=\"${prefix_path:-"$rvm_usr_path"}\""} ${rvm_configure_flags:-""} $configure_flags" \

I can confirm that this worked for me.