Makefile cannot be found when php is installed on ubuntu

Source: Internet
Author: User
Tags gtk

Ubuntu9.04 system

If you use apache2, the apache configure command is composed:

./Configure-prefix = $ (WWWHOME)-enable-module = so

Changed:

./Configure-prefix = $ (WWWHOME)-enable-so

Php configure command:

./Configure-prefix = $ (PHPHOME)
-With-apxs = $ (WWWHOME)/bin/apxs-disable-debug
-Enable-pic-disable-rpath-enable-inline-optimization
-With-dom-with-gd-with-freetype-dir
-With-png-dir-with-iconv-with-jpeg-dir-with-zlib
-Enable-track-vars

Change-with-apxs =$ (WWWHOME)/bin/apxs:

-With-apxs2 = $ (WWWHOME)/bin/apxs

 

# If you need to compile the environment, we recommend that you install the "build essential" package.

# Sudo apt-get install "build-essential"

When using./configure, make, makeinstall, the method for installing the software is yes, and various errors often occur,

The makefile cannot be claimed.

Now I want to write down the problems and solutions I encountered during the installation process.

Take pidgin-2.0.0 installation as an example


./Configure error:


Configure: error: C compiler cannot create executables

Follow the error message to install the missing package

Sudo apt-get install libc6-dev

Again

./Configure

Error

Checking for GLIB... no

No

Configure: error:


You must have the GLib 2.0 development headers installed to build.

Search for GLib 2.0 with the new certificate or use the apt-cache search GLib 2.0 command according to the error message.

There is a package libglib2.0-dev-Development files for the GLib library

Install

Sudo apt-get install libglib2.0-dev # The original version is libglib2.0-0-dev, which seems to be incorrect -- azalea note


./Configure

An error occurs again.

Checking for X... no

Checking for GTK... no

No

Configure: error:


You must have the GTK + 2.0 development headers installed to compile Pidgin.

If you only want to build Finch then specify -- disable-gtkui when running configure.


Use the same method as above to find the missing package and install

Sudo apt-get install libgtkmm2.0-dev


./Configure error


Checking for LIBXML... no

No

Configure: error:


You must have libxml2> = 2.6.0 development headers installed to build.


So install

Sudo apt-get install libxml2-dev


After being installed on the bread, no error occurs at the time./configure. This time, makefile is successfully claimed.

Then

Make

Make install

The software is successfully installed.

If problems still occur in./configure, find the problem and install the missing package.

In the configuration process, the config. log file is very helpful. We can find the root cause of the error here to find the countermeasures.

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.