Common PHP installation error: libjpeg. (

Source: Internet
Author: User
Tags gmp install openssl mysql client openldap
Although PHP installation is sometimes very simple, if there are more than one application, it will be a headache for us to install it! The most common problem is the installation of PHP plug-ins! In fact, whether you are an Apache application or Nginx. PHP installation is not very simple. Although there are a lot of configure on the Internet, it is not necessarily suitable for you, because many of them are directly related.

Although PHP installation is sometimes very simple, if there are more than one application, it will be a headache for us to install it! The most common problem is the installation of PHP plug-ins! In fact, whether you are an Apache application or Nginx. PHP installation is not very simple. Although there are a lot of configure on the Internet, it is not necessarily suitable for you, because many of them are directly related.

PHPInstallAlthough it is sometimes very simple, if there are more applications, weInstallIt's a headache!CommonIs the PHP plug-inInstallMost problems!

In fact, whether you are an Apache application or Nginx. PHP applicationInstallIt is not very simple. Although there are a lot of configure on the Internet, it is not necessarily suitable for you, because many of them are directly related to your system, system version, and kernel.

FirstCommonIsConfigure: error: libjpeg. (a | so) not found

A lot of people are bored.InstallWhy can't I find it? If you cannot find it, you should think that it does not exist in the search location. Otherwise, you will not say not found.

The reason is that most of our software only requires rpm-qa | grep ***

Now there are two duplicate software

[Root @ GFS_Server php-5.2.13] # rpm-qa | grep jpeg
Libjpeg-6b-33
Libjpeg-6b-33
Libjpeg-devel-6b-33

Both 32-bit and 64-bit are installed. You can force Delete two packages and reinstall the 64-bit package. Rpm -- allmatches -- nodeps this method really damages the system and damages you. sometimes, some packages in lib will be forcibly deleted for forcible execution .. so I don't think it is recommended to do this. Repeat it and let it repeat it. It doesn't matter!

YesSolutionThe problem is that it cannot be found, IInstallNow, I have to find out where it is.

[Root @ GFS_Server php-5.2.13] # updatedb
[Root @ GFS_Server php-5.2.13] # locate libjpeg. so
/Usr/lib64/libjpeg. so.62
/Usr/lib64/libjpeg. so.62.0.0
/Usr/lib64/libjpeg. so
/Usr/lib/libjpeg. so
[Root @ GFS_Server php-5.2.13] # locate libjpeg.
/Usr/lib64/libjpeg.
// Data0/software/jpeg-6b/libjpeg.
[Root @ GFS_Server php-5.2.13] #

During compilation, we often see a library file, which is generally named *. a, *. so. If you try to search, you can perform fuzzy search!

The above search actually shows some reasons. The configure general search compilation path is/usr/lib, because php searches for the relevant library files under/usr/lib/by default, and the x64 machine is on: /usr/lib64. then you can directly copy the required library files from/usr/lib64 to/usr/lib.

Remember to execute the following command before configure:

Cp-frp/usr/lib64/libjpeg. */usr/lib/

Usr/bin/install: cannot create regular file '/usr/local/man/man1/c0000.1': No such file or directory
Make: *** [install] Error 1
The system prompts that the directory cannot be found. Since the computer cannot be found, we can find the human brain. We should first create the first
Mkdir/usr/local/man
Mkdir/usr/local/man1 is created.
Make install (success if no error is reported)

Configure: error: libjpng. (a | so) not found

In fact, it is the same as the previous one.

Cp-frp/usr/lib64/libpng */usr/lib/

Configure: error: Cannot find ldap libraries in/usr/lib.

Cp-frp/usr/lib64/libldap */usr/lib/

SimilarErrorThere are a lot of methods, and we have to respond flexibly and analyze specific problems!

AdditionalCommonConfigureErrorList for reference:

Configure: error: No curses/termcap library found
Some online saying is:
-- With-named-curses-libs =/usr/lib/libncursesw. so.5
Actually, this is not true.SolutionConfigureErrorBut make will promptError, The correct method should be
Yum-y install ncurses-devel
Debian: apt-get install libncurses5-dev

Configure: error: xml2-config not found
Yum-y install libxml2-devel
Debian: apt-get install libxml2-dev

Configure: error: Cannot find OpenSSL's
Yum-y install openssl-devel

Configure: error: libjpeg. (a | so) not found
Yum-y install gd
Yum-y install gd-devel
Debian: apt-get install libjpeg-dev

Configure: error: libpng. (a | so) not found.
Apt-get install libpng12-dev

Configure: error: cannot find output from lex; giving up
Yum-y install flex

Configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
Yum-y install zlib-devel openssl-devel
Debian: apt-get install zlib1g-dev

Configure: error: libXpm. (a | so) not found.
Apt-get install libxpm-dev

Onfigure: error: freetype. h not found.
Apt-get install libfreetype6-dev

Configure: error:... No recognized SSL/TLS toolkit detected
Apt-get install libssl-dev

1) Configure: error: xml2-config not found. Please check your libxml2 installation.

Solutions:
Yum install libxml2 libxml2-devel (For Redhat & Fedora)

# Apache install libxml2-dev (For ubuntu)

2) Checking for pkg-config... /Usr/bin/pkg-config
Configure: error: Cannot find OpenSSL's

Solutions:

Yum install openssl-devel

3) Configure: error: Please reinstall the BZip2 distribution

Solutions:
Yum install bzip2 bzip2-devel

4) Configure: error: Please reinstall the libcurl distribution-
Easy. h shoshould be in/include/curl/

Solutions:
Yum install curl-devel (For Redhat & Fedora)

# Install libcurl4-gnutls-dev (For Ubuntu)

5) Configure: error: libjpeg. (also) not found.

Solutions:
Yum-y install gd
Yum-y install gd-devel
Yum install libjpeg-devel

6) Configure: error: libpng. (also) not found.

Solutions:
Yum install libpng-devel
Apt-get install libpng12-dev

7) Configure: error: freetype. h not found.
Solutions:
Yum install freetype-devel

Configure: error: Unable to locate gmp. h

Solutions:
Yum install gmp-devel

9) Configure: error: Cannot find MySQL header files under/usr.
Note that the MySQL client library is not bundled anymore!

Solutions:
Yum install mysql-devel (For Redhat & Fedora)

# Apt-get install libmysql ++-dev (For Ubuntu)

10) Configure: error: Please reinstall the ncurses distribution

Solutions:
Yum install ncurses-devel

11) Checking for unixODBC support... Configure: error: ODBC header file '/usr/include/sqlext. H' not found!

Solutions:
Yum install unixODBC-devel

12) Configure: error: Cannot find pspell

Solutions:
Yum install pspell-devel

13) configure: error: mcrypt. h not found. Please reinstall libmcrypt.

Solutions:
Yum install libmcrypt-devel (For Redhat & Fedora)

# Apt-get install libmcrypt-dev

14) Configure: error: snmp. h not found. Check your SNMP installation.

Solutions:

Yum install net-snmp-devel

15) You need to enable the LDAP service.
Yum-y install openldap-devel openldap-servers openldap-clients

16) configure: error: No curses/termcap library found
Some online saying is:
-With-named-curses-libs =/usr/lib/libncursesw. so.5
Actually, this is not true.SolutionConfigureErrorBut make will promptError, The correct method should be
Yum-y install ncurses-devel (for redhat)
Apt-get install libncurses5-dev (for debian)

17) configure: error: cannot find output from lex; giving up
Yum-y install flex

18) configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
Yum-y install zlib-devel openssl-devel
Debian: apt-get install zlib1g-dev

19) configure: error: libXpm. (a | so) not found.
Apt-get install libxpm-dev

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.