Hello,
I have AIX 5.2 system and trying to compile and install php 5 on it.
I installed all the required RPM packages and the configure script seems to run fine (I think :queasy: ).
After that, I run the make command that run fines as well. The problem starts when I try to install (using make install command). I get the folllowing error (this is the output I get from the command):
echo '\
\
echo '\
\
Installing PHP SAPI module: cgi
Installing PHP CGI into: /usr/local/bin/
cp: sapi/cgi/php: No such file or directory
make: The error code from the last command is 1.
Stop.
And this is the output from the configure script (only its last section):
Generating files
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating scripts/man1/phpize.1
creating scripts/php-config
creating scripts/man1/php-config.1
creating sapi/cli/php.1
creating main/php_config.h
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| WARNING |
| |
| You will be compiling the CGI version of PHP without any |
| redirection checking. By putting this cgi binary somewhere in |
| your web space, users may be able to circumvent existing .htaccess |
| security by loading files directly through the parser. See |
| http://www.php.net/manual/security.php for more details. |
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+
Thank you for using PHP
As you can see, it didn't generate the php file i need to make the "make install" command work.
Here are the last 50 lines of the config.log file
configure:105699: checking for executable suffix
configure:105900: checking for c++
configure:105932: checking whether the C++ compiler (g++ ) works
configure:105948: g++ -o conftest conftest.C 1>&5
configure:105974: checking whether the C++ compiler (g++ ) is a cross-compiler
configure:105979: checking whether we are using GNU C++
configure:106007: checking whether g++ accepts -g
configure:106056: g++ -c -g -O2 conftest.C 1>&5
configure:106073: g++ -c -g -O2 conftest.C 1>&5
configure: In function 'int main()':
configure:106069: error: 'exit' was not declared in this scope
configure: failed program was:
#line 106066 "configure"
#include "confdefs.h"
int main() {
exit (42);
; return 0; }
configure:106056: g++ -c -g -O2 conftest.C 1>&5
configure:106073: g++ -c -g -O2 conftest.C 1>&5
configure:106095: checking how to run the C++ preprocessor
configure:106144: checking the maximum length of command line arguments
configure:106245: checking command to parse /usr/bin/nm -B output from gcc object
configure:106434: checking for objdir
configure:106500: checking for ar
configure:106567: checking for ranlib
configure:106634: checking for strip
configure:106971: checking if gcc static flag works
configure:107021: checking if gcc supports -fno-rtti -fno-exceptions
configure:107071: checking for gcc option to produce PIC
configure:107341: checking if gcc supports -c -o file.o
configure:107412: checking whether the gcc linker (/usr/bin/ld) supports shared libraries
configure:107801: gcc -o conftest -I/usr/include -g -O2 conftest.c 1>&5
configure:108309: checking dynamic linker characteristics
configure:108883: checking how to hardcode library paths into programs
configure:108921: checking whether stripping libraries is possible
configure:109506: checking if libtool supports shared libraries
configure:109510: checking whether to build shared libraries
configure:109533: checking whether to build static libraries
configure:110202: checking for ld used by g++
configure:110274: checking if the linker (/usr/bin/ld) is GNU ld
configure:110340: checking whether the g++ linker (/usr/bin/ld) supports shared libraries
configure:110473: g++ -o conftest -g -O2 conftest.cpp 1>&5
configure:111180: g++ -c -g -O2 conftest.cpp 1>&5
configure:111290: checking for g++ option to produce PIC
configure:111624: checking if g++ supports -c -o file.o
configure:111695: checking whether the g++ linker (/usr/bin/ld) supports shared libraries
configure:111781: checking dynamic linker characteristics
configure:112355: checking how to hardcode library paths into programs
configure:112393: checking whether stripping libraries is possible
If you need more details about my system, let me know
any help will be appriciated! :quiet:
Thanks! 🙂