zEitEr
Super Moderator
That's a good reason. Note, CentOS is more suitable for using with Directadmin. Not going to make a holly-war, just keep it in mind, and try changing OS, if nothing else would help to solve the issue.
apt-get install libxml2
try:
Code:apt-get install libxml2
And then retry build php so.
Regards
apt-get install gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libaio1 libaio-dev
yes sir and i get thisconfigure: error: cannot run C compiled programs.
did you installed the pre-requisite???
try run this:
Code:apt-get install gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libaio1 libaio-dev
then try build libxml2 and then try build php
# script
# apt-get install strace
# cd /usr/local/directadmin/custombuild
# strace ./build libxml2
press CTRL+D
libxml'
make[3]: Entering directory `/usr/local/directadmin/custombuild/libxml2-2.7.6/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/local/directadmin/custombuild/libxml2-2.7.6/include'
make[2]: Leaving directory `/usr/local/directadmin/custombuild/libxml2-2.7.6/include'
Making all in .
make[2]: Entering directory `/usr/local/directadmin/custombuild/libxml2-2.7.6'
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -I./include -D_REENTRANT -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT SAX.lo -MD -MP -MF .deps/SAX.Tpo -c -o SAX.lo SAX.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./include -I./include -D_REENTRANT -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -MT SAX.lo -MD -MP -MF .deps/SAX.Tpo -c SAX.c -fPIC -DPIC -o .libs/SAX.o
In file included from /usr/include/libio.h:32,
from /usr/include/stdio.h:75,
from libxml.h:44,
from SAX.c:12:
/usr/include/_G_config.h:24: error: expected specifier-qualifier-list before '__off_t'
/usr/include/_G_config.h:29: error: expected specifier-qualifier-list before '__off64_t'
In file included from /usr/include/stdio.h:75,
from libxml.h:44,
from SAX.c:12:
/usr/include/libio.h:300: error: expected specifier-qualifier-list before '__off_t'
/usr/include/libio.h:364: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__io_read_fn'
/usr/include/libio.h:372: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__io_write_fn'
/usr/include/libio.h:381: error: expected declaration specifiers or '...' before '__off64_t'
/usr/include/libio.h:494: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_padn'
/usr/include/libio.h:497: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_seekoff'
/usr/include/libio.h:498: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_seekpos'
In file included from libxml.h:44,
from SAX.c:12:
/usr/include/stdio.h:638: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__getdelim'
/usr/include/stdio.h:641: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getdelim'
/usr/include/stdio.h:651: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getline'
/usr/include/stdio.h:754: error: expected declaration specifiers or '...' before '__off64_t'
/usr/include/stdio.h:757: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ftello'
In file included from /usr/include/stdlib.h:320,
from ./include/libxml/SAX.h:16,
from ./include/libxml/globals.h:20,
from ./include/libxml/threads.h:35,
from ./include/libxml/xmlmemory.h:218,
from ./include/libxml/tree.h:1248,
from ./include/libxml/c14n.h:27,
from elfgcchack.h:17,
from libxml.h:87,
from SAX.c:12:
/usr/include/sys/types.h:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'u_char'
/usr/include/sys/types.h:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'u_short'
/usr/include/sys/types.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'u_int'
/usr/include/sys/types.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'u_long'
/usr/include/sys/types.h:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'quad_t'
/usr/include/sys/types.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'u_quad_t'
/usr/include/sys/types.h:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fsid_t'
/usr/include/sys/types.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'loff_t'
/usr/include/sys/types.h:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ino_t'
/usr/include/sys/types.h:62: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dev_t'
/usr/include/sys/types.h:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'gid_t'
/usr/include/sys/types.h:72: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mode_t'
/usr/include/sys/types.h:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nlink_t'
/usr/include/sys/types.h:82: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'uid_t'
/usr/include/sys/types.h:90: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'off_t'
/usr/include/sys/types.h:100: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pid_t'
/usr/include/sys/types.h:105: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'id_t'
/usr/include/sys/types.h:110: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ssize_t'
/usr/include/sys/types.h:116: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'daddr_t'
/usr/include/sys/types.h:117: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'caddr_t'
/usr/include/sys/types.h:123: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'key_t'
In file included from /usr/include/sys/types.h:133,
from /usr/include/stdlib.h:320,
from ./include/libxml/SAX.h:16,
from ./include/libxml/globals.h:20,
from ./include/libxml/threads.h:35,
from ./include/libxml/xmlmemory.h:218,
from ./include/libxml/tree.h:1248,
from ./include/libxml/c14n.h:27,
from elfgcchack.h:17,
from libxml.h:87,
from SAX.c:12:
/usr/include/time.h:76: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'time_t'
In file included from /usr/include/sys/types.h:133,
from /usr/include/stdlib.h:320,
from ./include/libxml/SAX.h:16,
from ./include/libxml/globals.h:20,
from ./include/libxml/threads.h:35,
from ./include/libxml/xmlmemory.h:218,
from ./include/libxml/tree.h:1248,
from ./include/libxml/c14n.h:27,
from elfgcchack.h:17,
from libxml.h:87,
from SAX.c:12:
/usr/include/time.h:92: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'clockid_t'
In file included from /usr/include/sys/types.h:133,
from /usr/include/stdlib.h:320,
from ./include/libxml/SAX.h:16,
from ./include/libxml/globals.h:20,
from ./include/libxml/threads.h:35,
from ./include/libxml/xmlmemory.h:218,
from ./include/libxml/tree.h:1248,
from ./include/libxml/c14n.h:27,
from elfgcchack.h:17,
from libxml.h:87,
from SAX.c:12:
/usr/include/time.h:104: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'timer_t'
In file included from /usr/include/sys/select.h:44,
from /usr/include/sys/types.h:220,
from /usr/include/stdlib.h:320,
from ./include/libxml/SAX.h:16,
from ./include/libxml/globals.h:20,
from ./include/libxml/threads.h:35,
from ./include/libxml/xmlmemory.h:218,
from ./include/libxml/tree.h:1248,
from ./include/libxml/c14n.h:27,
from elfgcchack.h:17,
from libxml.h:87,
from SAX.c:12:
/usr/include/time.h:122: error: expected specifier-qualifier-list before '__time_t'
In file included from /usr/include/sys/select.h:46,
from /usr/include/sys/types.h:220,
from /usr/include/stdlib.h:320,
from ./include/libxml/SAX.h:16,
from ./include/libxml/globals.h:20,
from ./include/libxml/threads.h:35,
from ./include/libxml/xmlmemory.h:218,
from ./include/libxml/tree.h:1248,
from ./include/libxml/c14n.h:27,
from elfgcchack.h:17,
from libxml.h:87,
from SAX.c:12:
/usr/include/bits/time.h:71: error: expected specifier-qualifier-list before '__time_t'
In file included from /usr/include/sys/types.h:220,
from /usr/include/stdlib.h:320,
from ./include/libxml/SAX.h:16,
from ./include/libxml/globals.h:20,
from ./include/libxml/threads.h:35,
from ./include/libxml/xmlmemory.h:218,
from ./include/libxml/tree.h:1248,
from ./include/libxml/c14n.h:27,
from elfgcchack.h:17,
from libxml.h:87,
from SAX.c:12:
/usr/include/sys/select.h:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'suseconds_t'
/usr/include/sys/select.h:75: error: '__FD_SETSIZE' undeclared here (not in a function)
In file included from /usr/include/sys/types.h:220,
from /usr/include/stdlib.h:320,
from ./include/libxml/SAX.h:16,
from ./include/libxml/globals.h:20,
from ./include/libxml/threads.h:35,
from ./include/libxml/xmlmemory.h:218,
from ./include/libxml/tree.h:1248,
from ./include/libxml/c14n.h:27,
from elfgcchack.h:17,
from libxml.h:87,
from SAX.c:12:
/usr/include/sys/select.h:114:1: error: unterminated #ifdef
/usr/include/sys/select.h:22:1: error: unterminated #ifndef
In file included from /usr/include/sys/types.h:223,
from /usr/include/stdlib.h:320,
from ./include/libxml/SAX.h:16,
from ./include/libxml/globals.h:20,
from ./include/libxml/threads.h:35,
from ./include/libxml/xmlmemory.h:218,
from ./include/libxml/tree.h:1248,
from ./include/libxml/c14n.h:27,
from elfgcchack.h:17,
from libxml.h:87,
from SAX.c:12:
/usr/include/sys/sysmacros.h:30: error: expected ';', ',' or ')' before '__extension__'
make[2]: *** [SAX.lo] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/libxml2-2.7.6'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/libxml2-2.7.6'
make: *** [all] Error 2
[{WIFEXITED(s) && WEXITSTATUS(s) == 2}], 0, NULL) = 8821
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, 0x7fffd0d768dc, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn(0xffffffffffffffff) = 0
rt_sigaction(SIGINT, {0x4560c0, [], SA_RESTORER, 0x7f5f49b381e0}, {0x441ea0, [], SA_RESTORER, 0x7f5f49b381e0}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f5f4a4c19d0) = 8850
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x441ea0, [], SA_RESTORER, 0x7f5f49b381e0}, {0x4560c0, [], SA_RESTORER, 0x7f5f49b381e0}, 8) = 0
wait4(-1,
*** The make has failed, would you like to try to make again? (y,n):
[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 8850
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, 0x7fffd0d7659c, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn(0xffffffffffffffff) = 0
rt_sigaction(SIGINT, {0x4560c0, [], SA_RESTORER, 0x7f5f49b381e0}, {0x441ea0, [], SA_RESTORER, 0x7f5f49b381e0}, 8) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
read(0,
# mount
# df -h
# env
/dev/sda1 on / type ext4 (rw,minixdf,usrquota)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda2 on /home type ext4 (rw,usrquota,grpquota)
overflow on /tmp type tmpfs (rw,size=1048576,mode=1777)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 10G 9.8G 0 100% /
tmpfs 12G 0 12G 0% /lib/init/rw
udev 10M 236K 9.8M 3% /dev
tmpfs 12G 0 12G 0% /dev/shm
/dev/sda2 1.8T 371M 1.8T 1% /home
overflow 1.0M 208K 816K 21% /tmp
/dev/sda1 10G 9.8G 0 100% /
/dev/sda1 10G 9.8G 0 100% /