分享 初学者连载系列之十三:手动安装 m4, autoconf, automake, libtool

kevinhua · 2012年04月07日 · 最后由 sakurazensen 回复于 2013年01月23日 · 37658 次阅读

系列文章原载于自己的博客,TOPI.CO (http://topi.co) ,某天不小心就 push 错啦,懒得从头再来,上传到 Ruby-China 来,一是方便自己回顾,另外也方便跟我一样的初学者

这些软件包都是在安装 CoreSeek4.01 时必须的。但后来者也代码升级,CoreSeek 安装已经不需要。

###安装 m4

wget http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz \
&& tar -xzvf m4-1.4.13.tar.gz \
&& cd m4-1.4.13 \
&& ./configure --prefix=/usr/local
make && make install
cd ..

###安装 autoconf

wget http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz \
&& tar -xzvf autoconf-2.65.tar.gz \
&& cd autoconf-2.65 \
&& ./configure --prefix=/usr/local
make && make install
cd ..

###安装 automake

wget http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz \
&& tar xzvf automake-1.11.tar.gz \
&& cd automake-1.11 \
&& ./configure --prefix=/usr/local
make && make install
cd ..

###安装 libtool

wget http://mirrors.kernel.org/gnu/libtool/libtool-2.2.6b.tar.gz \
&& tar xzvf libtool-2.2.6b.tar.gz \
&& cd libtool-2.2.6b \
&& ./configure --prefix=/usr/local
make && make install
cd ..

我默认升级安装了 automake 以后,用/usr/local/bin/automake --version 查看显示的是最新安装的版本 用/usr/bin/automake --version 查看显示的升级之前的版本,用 rpm -qa|grep automake 查看也是升级之前的版本,请问这是为什么?libtool 也是这样的

需要 登录 后方可回复, 如果你还没有账号请 注册新账号