Php-configure Error Resolution

Source: Internet
Author: User
Tags gmp mcrypt mysql client snmp openldap

Configure:error:libjpeg. (A|SO) not found
Configure:error:libjpeg. (A|SO) not found
LN-SF libjpeg.so.62.0.0 libjpeg.so


Configure:error:libpng. (A|SO) not found.
Yum Install Libpng-devel

Both 32-and 64-bit are loaded. You can force the removal of two packages and reload the 64-bit package.
RPM--allmatches--nodeps

You may be prompted at the end of the config:

Configure:error:libjpeg. (A|SO) not found
Configure:error:libjpng. (A|SO) not found

Error, please execute the following command before configure:

cp-frp/usr/lib64/libjpeg.*/usr/lib/
cp-frp/usr/lib64/libpng*/usr/lib/
Because PHP defaults to find the relevant library file under/usr/lib/, and the x64 machine is on:/usr/lib64

To solve this problem, first determine the installation location of the JPEG x86_64 you installed
Shell> UpdateDB
Shell> Locate libjpeg.so
See where it's installed


Then understand the meaning of the PHP parameters
According to the configuration parameters of PHP
--WITH-JPEG-DIR=/USR--with-libdir=lib64
--WITH-JPEG-DIR=/USR: is to determine where the JPEG is installed
--WITH-LIBDIR=LIB64: This is a global parameter that represents the configurator looking for the lib64 directory under all installation paths, not the Lib directory under the default installation path

CentOS 5 Common Configure error resolution 2009-10-20 10:23 only CentOS 5
Configure:error:No Curses/termcap Library found
Some of the online statements are:
--with-named-curses-libs=/usr/lib/libncursesw.so.5
Actually is wrong, although can solve the configure error, but make the time will prompt the error, the correct practice 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 have been requested but can is 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

You need to be careful when compiling PHP+GD on a x64 machine.
Written by Bixuan on April 12, 2007 –11:04


PHP compilation common error Daquan posted in Linux | July 22nd, 2009
1) configure:error:xml2-config not found. Please check your LIBXML2 installation.

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

# Aptitude Install Libxml2-dev (for Ubuntu)

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

Solutions:

Yum Install OpenSSL 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 should be in/include/curl/

Solutions:
Yum Install Curl 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 Libjpeg-devel

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

Solutions:
Yum Install libpng 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 isn't bundled anymore!

Solutions:
Yum install Mysql-devel (for Redhat & Fedora)

# Apt-get Install Libmysql++-dev (for Ubuntu)

Ten) Configure:error:Please Reinstall the ncurses distribution

Solutions:
Yum Install ncurses Ncurses-devel

One) Checking for UnixODBC support ... configure:error:ODBC header file '/usr/include/sqlext.h ' not found!

Solutions:
Yum Install Unixodbc-devel

Configure:error:Cannot Find Pspell

Solutions:
Yum Install Pspell-devel

Configure:error:mcrypt.h not found. Please reinstall Libmcrypt.

Solutions:
Yum Install Libmcrypt libmcrypt-devel (for Redhat & Fedora)

# Apt-get Install Libmcrypt-dev

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

Solutions:

Yum Install Net-snmp Net-snmp-devel

15) Opening the LDAP Service also requires
Yum-y Install Openldap-devel openldap-servers openldap-clients

Configure:error:No Curses/termcap Library found
Some of the online statements are:
–with-named-curses-libs=/usr/lib/libncursesw.so.5
Actually is wrong, although can solve the configure error, but make the time will prompt the error, the correct practice should be
Yum-y Install Ncurses-devel (for Redhat)
Apt-get install Libncurses5-dev (for Debian)

Configure:error:cannot find output from Lex; Giving up
Yum-y Install Flex

Configure:error:mod_deflate have been requested but can is not being 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

Add: The above command to configure PHP, encountered an error, always said to find Libmcrypt. Because this server is a bare metal, many of the necessary libraries are not installed, must be a manual installation, you can libmcrypt this library I did. Retry N-Times, no solution, solution

Then I visited
Http://mcrypt.hellug.gr/mcrypt/index.html
An learned that I has to install not only Libmcrypt
But also MCrypt and Libmhash.
Here's the To do:
LIBMCRYTP:
———–
Download libmcrypt-xxx.tar.gz
Create the following directory:/Usr/local/libmcrypt
Copy the libmcrypt-xxx.tar.gz into this directory and move to it
Run the following shell (>) Commands: (' xxx ' is the version number)
> Gunzip-c libmcrypt-xxx.tar.gz | Tar XF-
> CD libmcrypt-xxx
>./configure--disable-posix-threads
> Make
> Make check (note: "Make check" is optional)
> Make Install
Then (update your environment) add in/etc/profile the following path:
/usr/local/libmcrypt/libmcrypt-xxxx
(Note:as I run Red Hat 7.3 I set the line a F t e R the If-part
(id-u = 0 ...) WITH:PATHMUNGE/USR/LOCAL/LIBM ....)
and add in/etc/ld.so.conf the following path:/usr/local/lib
Then run Ldconfig:
> Ldconfig
Now comes the important part:
> Cd/usr/local/libmcrypt/libmcrypt-xxx/libltdl
>./configure--enable-ltdl-install
> Make
> Make Install
(Maybe not needed:i also added a link in/usr/bin:)
(> Cd/usr/bin)
(> Ln-s/usr/lib/libltdl.so.3.1.0 Ltdl)
Mhash:
———–
Download mhash-xxx.tar.gz
Create the following directory:/Usr/local/mhash
Copy the mhash-xxx.tar.gz into this directory and move to it
Run the following shell (>) Commands: (' xxx ' is the version number)
> Gunzip-c mhash-xxx.tar.gz | Tar XF-
> CD mhash-xxx
>./configure
> Make
> Make check (note: "Make check" is optional)
> Make Install
MCrypt
———–
Download mcrypt-xxx.tar.gz
Create the following directory:/Usr/local/mcrypt
Copy the mcrypt-xxx.tar.gz into this directory and move to it
Run the following shell (>) Commands: (' xxx ' is the version number)
> Gunzip-c mcrypt-xxx.tar.gz | Tar XF-
> CD mhash-xxx
>./configure
> Make
> Make check (note: "Make check" is optional)
> Make Install
Back to PHP:
————–
Move into your PHP installation directory
Then the following command worked on my computer:
>
./configure–with-apache=/usr/local/apache/apache_1.3.29–with-mysql–wit
h-mcrypt=/usr/local/mcrypt/mcrypt-2.6.4
> Make
> Make Install

Php-configure Error Resolution

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.