This chapter collects many compilation errors.
1. I use anonymous CVS to get the latest source code package, but no script file is configured! 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! 3. When I run conifgure, it says it cannot find the include file or some libraries: GD, gdbm, or some other packages! 4. an error occurred while compiling the file language-parser.tab.c with the prompt: yytname undeclared. 5. when I run make, it is normal at first, but eventually fails. When I connect to the final application, the error indicates that some files cannot be found.
6. When connecting to PHP, a bunch of errors are reported: undefined references.
7. I don't know how to compile PHP in Apache 1.3.
8. I installed the Apache module step by step (under Unix), but when I opened the PHP script in a browser, it asked me if I wanted to save it.
9. the system uses -- activate-module = src/modules/php4/libphp4.a, but the file does not exist. I have to change it to -- activate-module = src/modules/php4/libmodphp4.a, it does not work anymore! What should I do? 10. I want to compile PHP into a static module of Apache and use -- activate-module = src/modules/php4/libphp4.a. However, the system says that my compiler is not ANSI compatible.
11. When I use -- with-apxs to compile PHP, I always get some strange errors.
12. during make, I get a lot of errors about microtime and a lot of RUSAGE _ stuff. 13. I want to upgrade PHP. Where can I see the original configuration and installation of php I am running. /configure content of a row? 14. When compiling PHP with GD library, it does not give some strange errors, or it produces segfaults errors during execution.
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!
Tell configure/setup script the location of Apache's top-level Directory.
That is to say, 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
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.