Ruby1.8関連
最初に補足。libreadline5-devが入っていなかったのでそれがない状態だとirbでカーソルキーが聴かない。#apt-get install libreadline5-devをしておくのが肝要。
まずはソースの展開〜インストール
#tar jcvf ruby-1.8.6-p114.tar.bz2 #cd ../ruby-1.8.6-p114 #./configure --enable-shared --prefix=/usr/local/ruby1.8
cコンパイラーが見つからないのでだめですときた。なるほどね。開発環境が何もないのか。
#apt-get install gcc
これで2回目Try
#./configure --enable-shared --prefix=/usr/local/ruby1.8 checking build system type... i686-pc-linux-gnulibc1 checking host system type... i686-pc-linux-gnulibc1 checking target system type... i686-pc-linux-gnulibc1 checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details.
ふむ。config.logを見てみると以下のエラーがある。
=> /usr/bin/ld: crt1.o: No such file: No such file or directory
crt1.oはlibc系で対応できるらしいのでその辺を入れる。
#apt-get install libc6-dev libc6
3回目のTry
#./configure --enable-shared --prefix=/usr/local/ruby1.8
configureは無事通過
#make The program 'make' is currently not installed. You can install it by typing:
makeコマンドも無しか。ついでに後で必要だからbisonもいれとこう
#apt-get install make #apt-get install bison
これでOK。例によって/usr/local/binへruby1.8でシンボリックリンクを張っておく。