Ruby compiles fine the first time after extracting, but repeating it
after a make distclean
doesn’t work.
The commands:
$ tar --extract --gzip --file ruby-1.9.3-p327.tar.gz
$ cd ruby-1.9.3-p327/
$ ./configure --prefix=$HOME/.rbenv/versions/1.9.3-p327 &> my-config.log
$ make &> my-make.log
$ make distclean
$ ./configure --prefix=$HOME/.rbenv/versions/1.9.3-p327 &>
my-config2.log
$ diff my-config* && echo identical
identical
$ make &> my-make2.log
From the difference, it looks like at least some generated files are not
deleted by make distclean
- miniprelude.c being the first. Then ripper
is not configured. And last it seems that .ext/i686-linux/-test-/ and
subdirectories has been deleted but not regenerated.