jpeg6 是安装GD的必备软件!
步骤和大多数源码包安装的一样!
mkdir -pv /usr/local/libgpeg/{,bin,lib,include,man/man1,man1}
这些命令实现了就是下面这样:
mkdir: created directory `/usr/local/libjpeg'
mkdir: created directory `/usr/local/libjpeg/bin'
mkdir: created directory `/usr/local/libjpeg/lib'
mkdir: created directory `/usr/local/libjpeg/include'
mkdir: created directory `/usr/local/libjpeg/man'
mkdir: created directory `/usr/local/libjpeg/man/man1'
mkdir: created directory `/usr/local/libjpeg/man1'
到此,看似一切常,然后
./configure --prefix=/usr/local/libjpeg --enable-shared --enable-static
make && make install
上述命令完成后的问题就是,提示报错:
make: ./libtool:Command not found
make:***[jcapimin.lo] Error 127
这个问题是,由于libtool版本过低所导致,重新下载新版本的libtool以默认方式安装,
./configure
make
make install
然后进入jpeg-6b的源码目录,然后执行以下步骤,切记!
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
./configure --enable-shared --enable-static
make
mkdir -p /usr/local/man/man1
make install
到此,这个问题解决了!
这个问题的解决方案是在网上找到的!
希望对各位有所帮助!