1. ダウンロード
wget http://downloads.sourceforge.net/project/w3m/w3m/w3m-0.5.2/w3m-0.5.2.tar.gz?use_mirror=jaist
wget http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.0.tar.gz
2. 展開
$ tar zxvf w3m-0.5.2.tar.gz
$ tar zxvf gc-7.0.tar.gz
3. make libgc
$ cd gc-7.0
$ ./configure –prefix=$HOME/usr/local –enable-cplusplus –enable-threads=none
$ make
$ make install
4. make w3m
.bashrc に以下を追加
export LD_LIBRARY_PATH=/home/popgamer/usr/local/lib/
(これがないとmakeの途中でこける)
$ cd w3m-0.5.2
$ ./configure –prefix=$HOME/usr/local –with-gc=$HOME/usr/local –enable-shared=no
$ make
$ make install
[参考]
http://amecoro.seesaa.net/article/113067577.html
http://d.hatena.ne.jp/yusuket/20100202/1265128711