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注:如果还是不能make 直接在jpeg-6b目录下创建一个软连接: ln -s /usr/local/bin/libtool ./libtool
mkdir -p /usr/local/man/man1
make install
------------------------------------------------------------------------------------------------------------------------------------------
Introduction to libjpeg
The libjpeg
package contains
libraries that allow compression of image files based on the Joint
Photographic Experts Group standard. It is a "lossy" compression
algorithm.Package Information
Download (HTTP): http://mac.softpedia.com/progDownload/libjpeg-Download-43884.html
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/libjpeg
Installation of libjpeg
Install libjpeg
by running the
following commands:./configure --prefix=/usr --enable-static --enable-shared && mak eTo test the results, issue: make
test
.Now, as the
root
user:make install
Command Explanations
--enable-static
--enable-shared
: These switches tell libjpeg
to build both shared and static
libraries.Configuring libjpeg
Configuration Information
As with most libraries, there is no configuration to do, save
that the library directory, i.e.,/opt/lib
or/usr/local/lib
should appear in/etc/ld.so.conf
so that ldd
can find the shared
libraries. After checking that this is the case, /sbin/ldconfig
should be run
while logged in asroot
.