Compiling libjpeg library, jpeg-6b compilation Error

Source: Internet
Author: User

Make:./libtool: Command not found
Make: *** [jcapimin. Lo] Error 127


Error Analysis: If the version of libtool is too low, download the new version of libtool to install it by default. Run the following command:

./Configure
Make
Make install

Then enter the source code directory of the jpeg-6b, and then perform the following steps, remember!



CP/usr/share/libtool/config. sub.
CP/usr/share/libtool/config. Guess.
./Configure -- enable-shared -- enable-static
Make

Note: If you still cannot make a soft connection directly under the jpeg-6b Directory: ln-S/usr/local/bin/libtool./libtool
Mkdir-P/usr/local/man/Man1
Make install

 

Certificate ------------------------------------------------------------------------------------------------------------------------------------------

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
Following commands:

./configure --prefix=/usr --enable-static --enable-shared && make

To test the results, issue:Make
Test


.

Now, asroot
User:

Make install

Command explanations

--enable-static
--enable-shared


: These switches tell libjpeg
To build both shared and static
Libraries.

Processing ing 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
Shoshould appear in/etc/ld.so.conf
So thatLDD

Can find the shared
Libraries. After checking that this is the case,/Sbin/ldconfig

Shocould be run
While logged inroot
.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.