现在的位置: 首页 > 综合 > 正文

编译libjpeg库,jpeg-6b编译错误

2013年08月29日 ⁄ 综合 ⁄ 共 1430字 ⁄ 字号 评论关闭

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

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
e

To 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 as root
.

 

抱歉!评论已关闭.