CentOS 4.7 - Cannot find /usr/local/bin/php

BHD1

New member
Joined
Jan 15, 2009
Messages
1
Hello,

I have installed DA many times in the past but today I received an error after the installation was completed which is:

## REPORT_END
Permissions set
*******************************************
*******************************************

Code:
Cannot find /usr/local/bin/php
Please recompile php with custombuild, eg:
cd /usr/local/directadmin/custombuild
./build all d

I tried ./build all d

and got the following errors before it aborted:

Code:
gcc -I../zlib -W -Wall -O3 -funroll-loops -DPNG_NO_MMX_CODE     -c -o png.o png.c
In file included from png.c:13:
png.h:465:18: zlib.h: No such file or directory
In file included from png.h:469,
                 from png.c:13:
pngconf.h:1247: error: syntax error before '*' token
pngconf.h:1247: warning: type defaults to `int' in declaration of `png_zcharp'
pngconf.h:1247: warning: data definition has no type or storage class
pngconf.h:1248: error: syntax error before '*' token
pngconf.h:1248: warning: type defaults to `int' in declaration of `png_zcharpp'
pngconf.h:1248: warning: data definition has no type or storage class
pngconf.h:1249: error: syntax error before '*' token
pngconf.h:1249: warning: type defaults to `int' in declaration of `png_zstreamp'
pngconf.h:1249: warning: data definition has no type or storage class
In file included from png.c:13:
png.h:1216: error: syntax error before "z_stream"
png.h:1216: warning: no semicolon at end of struct or union
png.h:1290: error: 'gamma' redeclared as different kind of symbol
png.h:1290: error: 'gamma' redeclared as different kind of symbol
png.h:1479: error: syntax error before '}' token
png.h:3055: error: syntax error before "png_zalloc"
png.h:3055: error: syntax error before "png_ptr"
png.h:3055: warning: type defaults to `int' in declaration of `png_zalloc'
png.h:3055: warning: data definition has no type or storage class
png.h:3058: error: syntax error before "png_ptr"
png.c: In function `png_set_sig_bytes':
png.c:100: error: dereferencing pointer to incomplete type
png.c: At top level:
png.c:149: error: syntax error before "png_zalloc"
png.c:149: error: syntax error before "png_ptr"
png.c:150: warning: return type defaults to `int'
png.c: In function `png_zalloc':
png.c:152: error: `png_ptr' undeclared (first use in this function)
png.c:152: error: (Each undeclared identifier is reported only once
png.c:152: error: for each function it appears in.)
png.c:153: error: dereferencing pointer to incomplete type
png.c:156: warning: return makes integer from pointer without a cast
png.c:157: error: `items' undeclared (first use in this function)
png.c:157: error: `size' undeclared (first use in this function)
png.c:160: warning: return makes integer from pointer without a cast
png.c:164: error: dereferencing pointer to incomplete type
png.c:166: error: dereferencing pointer to incomplete type
png.c:183: error: `voidpf' undeclared (first use in this function)
png.c:183: error: syntax error before "ptr"
png.c: At top level:
png.c:192: error: syntax error before "png_ptr"
png.c: In function `png_zfree':
png.c:194: error: `png_ptr' undeclared (first use in this function)
png.c:194: error: `ptr' undeclared (first use in this function)
png.c: In function `png_reset_crc':
png.c:203: error: dereferencing pointer to incomplete type
png.c:203: warning: implicit declaration of function `crc32'
png.c:203: error: `Z_NULL' undeclared (first use in this function)
png.c: In function `png_calculate_crc':
png.c:216: error: dereferencing pointer to incomplete type
png.c:218: error: dereferencing pointer to incomplete type
png.c:224: error: dereferencing pointer to incomplete type
png.c:229: error: dereferencing pointer to incomplete type
png.c:229: error: dereferencing pointer to incomplete type
png.c:229: error: `uInt' undeclared (first use in this function)
png.c:229: error: syntax error before "length"
png.c:228: warning: empty body in an if-statement
png.c: In function `png_create_info_struct':
png.c:247: error: dereferencing pointer to incomplete type
png.c:247: error: dereferencing pointer to incomplete type
png.c: In function `png_destroy_info_struct':
png.c:277: error: dereferencing pointer to incomplete type
png.c:278: error: dereferencing pointer to incomplete type
png.c: In function `png_free_data':
png.c:488: error: dereferencing pointer to incomplete type
png.c:490: error: dereferencing pointer to incomplete type
png.c:491: error: dereferencing pointer to incomplete type
png.c: In function `png_info_destroy':
png.c:601: error: dereferencing pointer to incomplete type
png.c:603: error: dereferencing pointer to incomplete type
png.c:604: error: dereferencing pointer to incomplete type
png.c:605: error: dereferencing pointer to incomplete type
png.c: In function `png_get_io_ptr':
png.c:621: error: dereferencing pointer to incomplete type
png.c: In function `png_init_io':
png.c:637: error: dereferencing pointer to incomplete type
png.c: In function `png_convert_to_rfc1123':
png.c:653: error: dereferencing pointer to incomplete type
png.c:655: error: dereferencing pointer to incomplete type
png.c:681: error: dereferencing pointer to incomplete type
png.c:687: error: dereferencing pointer to incomplete type
png.c: In function `png_handle_as_unknown':
png.c:747: error: dereferencing pointer to incomplete type
png.c:749: error: dereferencing pointer to incomplete type
png.c:749: error: dereferencing pointer to incomplete type
png.c:750: error: dereferencing pointer to incomplete type
png.c: In function `png_reset_zstream':
png.c:761: error: `Z_STREAM_ERROR' undeclared (first use in this function)
png.c:762: warning: implicit declaration of function `inflateReset'
png.c:762: error: dereferencing pointer to incomplete type
make: *** [png.o] Error 1
[root@noc1 custombuild]#


Any ideas?

Thanks
 
Back
Top