Installation jpeg-6b PNG Error resolution method

Source: Internet
Author: User
Tags config ftp mkdir

Default installation jpeg-6b

shell> wget ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz

Tar zxvf jpegsrc.v6b.tar.gz

CD jpeg-6b

./configure–-prefix=/usr/local/jpeg6–enable-shared–enable-static

Make

Make install

Specify the installation directory method install jpeg-6b

If you choose to install it by default, it may be fine, but to specify the path, create the following folder, or you will get an error:

Error tip: .../usr/bin/install-c-M 644 jconfig.h/usr/local/jpeg6/include/jconfig.h

/usr/bin/install: Unable to create general file '/usr/local/jpeg6/include/jconfig.h ': no file or directory

Make: * * * [install-headers] Error 1

Create the desired folder below

# Mkdir/usr/local/jpeg6

# Mkdir/usr/local/jpeg6/include

# Mkdir/usr/local/jpeg6/lib

# Mkdir/usr/local/jpeg6/bin

# Mkdir/usr/local/jpeg6/man

# Mkdir/usr/local/jpeg6/man/man1

# Make Install-lib

# make Install

Then compile the settings:

./configure--enable-shared--enable-static

Then make and start an error:

./libtool--mode=compile gcc-o2-i.-C./jcapimin.c

Make:./libtool: Command not found

Make: * * * * [Jcapimin.lo] Error 127

First, see if you have Libtool and Libtool-ltdl-devel installed.

Rpm-qa | grep Libtool

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

Cp/usr/share/libtool/config.sub.

Cp/usr/share/libtool/config.guess.

That is, take the two profiles inside the Libtool and overwrite the corresponding files in the jpeg-6b directory.

Make clean and configure again.

When you do not have permissions, set up the corresponding folder, make install again on the line

Install GD

An error occurred

MAKE[2]: * * * [Gd_png.lo] Error 1

MAKE[2]: Leaving directory '/usr/local/file/gd-2.0.26gif '

MAKE[1]: * * * [all-recursive] Error 1

MAKE[1]: Leaving directory '/usr/local/file/gd-2.0.26gif '

Make: * * * [ALL] Error 2

(If there is a mistake here, please VI gd_png.c, find "png.h" changed to "/usr/local/libpng2/include/png.h")

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.