linux中编译安装jpeg报错make: ./libtool: Command not found

linux中编译安装jpeg-6b报错 make: ./libtool: Command not found

测试环境: centos 6.3 64bit

出错原因:libtool版本过低

解决:

  • rpm -qa |grep libtool查看版本
rpm -e libtool卸载libtool
  • 重新下载libtool默认安装
./configure
make
make install
  • 再次进入jpeg-6b的解压目录
    PS:这个路径是我亲测成功的
cp /usr/local/share/libtool/config/config.sub .
cp /usr/local/share/libtool/config/config.guess .
 ./configure --enable-shared --enable-static
make
mkdir -p /usr/local/man/man1
make install

PS:网上也有说从cp这个路径:

cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .

标签: diandian, jpeg