PHP compilation problems

Source: Internet
Author: User
This chapter collects many compilation errors. 1. I used anonymous CVS to get the latest source code package, but no script file is configured! You must install the GNUautoconf package.

This chapter collects many compilation errors.

1. I use anonymous CVS to get the latest source code package, but no script file is configured!

You must install the GNU autoconf package so that the configuration script file can be generated from configure. in, as long as the./buildconf file runs in the top-level Directory of the source code obtained by the CVS server.

(Note: Unless you run the configure -- enable-maintainer-mode option, the configuration script will not be regenerated, even if configure. the in file has been updated, so when you find configure. in has changed, and you have to do it manually. in config or config. after status is run, you should see a number like @ VARIABLE @ in your Makefile .)

2. I encountered a problem when configuring PHP to work in Apache.

It says it cannot find httpd. h, but I think it's there! You need to tell configure/setup script the location of Apache's top-level Directory, that is, you need to mark -- with-apache =/path/to/apache, instead of -- with-apache =/path/to/apache/src.

3. when I run conifgure, it says it cannot find the include file or some libraries: GD, gdbm, or some other packages!

You can check the configure script, the header file or non-standard library location, to send some special signs to the C preprocessor. Example: CPPFLAGS =-I/path/to/include LDFLAGS =-L/path/to/library./configure

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.