webForumDet fria alternativet

Kan inte installera och kompilera PHP & PHP-FPM på Ubuntu

Webbservrar

1 svar · 528 visningar · startad av erciz

Medlem sedan maj 20011 826 inlägg
Frågan#1

Jag har försökt att få igång PHP och PHP-FPM på min Ubuntu VPS, men har inte lyckats särskilt bra.

Jag får fel när jag ska kompilera PHP. Är det någon annan som har lyckats med det?

Jag försökte följa dessa instruktioner: http://github.com/dreamcat4/php-fpm/blob/master/readme.markdown

Men när jag ska kompilera PHP med:

../configure && make

så får jag följande felutskrifter:

../configure: 11986: ac_fn_c_check_func: not found
../configure: 11997: ac_fn_c_check_func: not found
../configure: 12147: 5: Bad file descriptor
../configure: 12147: :: checking for socket in -lsocket: not found
../configure: 12147: 6: Bad file descriptor
../configure: 12147: checking for socket in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12147: ac_fn_c_try_link: not found
../configure: 12147: 5: Bad file descriptor
../configure: 12147: :: result: no: not found
../configure: 12147: 6: Bad file descriptor
../configure: 12147: no: not found
../configure: 12147: 5: Bad file descriptor
../configure: 12147: :: checking for __socket in -lsocket: not found
../configure: 12147: 6: Bad file descriptor
../configure: 12147: checking for __socket in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12147: ac_fn_c_try_link: not found
../configure: 12147: 5: Bad file descriptor
../configure: 12147: :: result: no: not found
../configure: 12147: 6: Bad file descriptor
../configure: 12147: no: not found
../configure: 12154: ac_fn_c_check_func: not found
../configure: 12165: ac_fn_c_check_func: not found
../configure: 12315: 5: Bad file descriptor
../configure: 12315: :: checking for socketpair in -lsocket: not found
../configure: 12315: 6: Bad file descriptor
../configure: 12315: checking for socketpair in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12315: ac_fn_c_try_link: not found
../configure: 12315: 5: Bad file descriptor
../configure: 12315: :: result: no: not found
../configure: 12315: 6: Bad file descriptor
../configure: 12315: no: not found
../configure: 12315: 5: Bad file descriptor
../configure: 12315: :: checking for __socketpair in -lsocket: not found
../configure: 12315: 6: Bad file descriptor
../configure: 12315: checking for __socketpair in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12315: ac_fn_c_try_link: not found
../configure: 12315: 5: Bad file descriptor
../configure: 12315: :: result: no: not found
../configure: 12315: 6: Bad file descriptor
../configure: 12315: no: not found
../configure: 12322: ac_fn_c_check_func: not found
../configure: 12333: ac_fn_c_check_func: not found
../configure: 12483: 5: Bad file descriptor
../configure: 12483: :: checking for htonl in -lsocket: not found
../configure: 12483: 6: Bad file descriptor
../configure: 12483: checking for htonl in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12483: ac_fn_c_try_link: not found
../configure: 12483: 5: Bad file descriptor
../configure: 12483: :: result: no: not found
../configure: 12483: 6: Bad file descriptor
../configure: 12483: no: not found
../configure: 12483: 5: Bad file descriptor
../configure: 12483: :: checking for __htonl in -lsocket: not found
../configure: 12483: 6: Bad file descriptor
../configure: 12483: checking for __htonl in -lsocket... : not found
cat: confdefs.h: No such file or directory
../configure: 12483: ac_fn_c_try_link: not found
../configure: 12483: 5: Bad file descriptor
../configure: 12483: :: result: no: not found
../configure: 12483: 6: Bad file descriptor
../configure: 12483: no: not found
../configure: 12490: ac_fn_c_check_func: not found
../configure: 12501: ac_fn_c_check_func: not found
../configure: 12651: 5: Bad file descriptor
../configure: 12651: :: checking for gethostname in -lnsl: not found
../configure: 12651: 6: Bad file descriptor
../configure: 12651: checking for gethostname in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12651: ac_fn_c_try_link: not found
../configure: 12651: 5: Bad file descriptor
../configure: 12651: :: result: no: not found
../configure: 12651: 6: Bad file descriptor
../configure: 12651: no: not found
../configure: 12651: 5: Bad file descriptor
../configure: 12651: :: checking for __gethostname in -lnsl: not found
../configure: 12651: 6: Bad file descriptor
../configure: 12651: checking for __gethostname in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12651: ac_fn_c_try_link: not found
../configure: 12651: 5: Bad file descriptor
../configure: 12651: :: result: no: not found
../configure: 12651: 6: Bad file descriptor
../configure: 12651: no: not found
../configure: 12658: ac_fn_c_check_func: not found
../configure: 12669: ac_fn_c_check_func: not found
../configure: 12819: 5: Bad file descriptor
../configure: 12819: :: checking for gethostbyaddr in -lnsl: not found
../configure: 12819: 6: Bad file descriptor
../configure: 12819: checking for gethostbyaddr in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12819: ac_fn_c_try_link: not found
../configure: 12819: 5: Bad file descriptor
../configure: 12819: :: result: no: not found
../configure: 12819: 6: Bad file descriptor
../configure: 12819: no: not found
../configure: 12819: 5: Bad file descriptor
../configure: 12819: :: checking for __gethostbyaddr in -lnsl: not found
../configure: 12819: 6: Bad file descriptor
../configure: 12819: checking for __gethostbyaddr in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12819: ac_fn_c_try_link: not found
../configure: 12819: 5: Bad file descriptor
../configure: 12819: :: result: no: not found
../configure: 12819: 6: Bad file descriptor
../configure: 12819: no: not found
../configure: 12826: ac_fn_c_check_func: not found
../configure: 12837: ac_fn_c_check_func: not found
../configure: 12987: 5: Bad file descriptor
../configure: 12987: :: checking for yp_get_default_domain in -lnsl: not found
../configure: 12987: 6: Bad file descriptor
../configure: 12987: checking for yp_get_default_domain in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12987: ac_fn_c_try_link: not found
../configure: 12987: 5: Bad file descriptor
../configure: 12987: :: result: no: not found
../configure: 12987: 6: Bad file descriptor
../configure: 12987: no: not found
../configure: 12987: 5: Bad file descriptor
../configure: 12987: :: checking for __yp_get_default_domain in -lnsl: not found
../configure: 12987: 6: Bad file descriptor
../configure: 12987: checking for __yp_get_default_domain in -lnsl... : not found
cat: confdefs.h: No such file or directory
../configure: 12987: ac_fn_c_try_link: not found
../configure: 12987: 5: Bad file descriptor
../configure: 12987: :: result: no: not found
../configure: 12987: 6: Bad file descriptor
../configure: 12987: no: not found
../configure: 12995: ac_fn_c_check_func: not found
../configure: 13006: ac_fn_c_check_func: not found
../configure: 13156: 5: Bad file descriptor
../configure: 13156: :: checking for dlopen in -ldl: not found
../configure: 13156: 6: Bad file descriptor
../configure: 13156: checking for dlopen in -ldl... : not found
cat: confdefs.h: No such file or directory
../configure: 13156: ac_fn_c_try_link: not found
../configure: 13156: 5: Bad file descriptor
../configure: 13156: :: result: no: not found
../configure: 13156: 6: Bad file descriptor
../configure: 13156: no: not found
../configure: 13156: 5: Bad file descriptor
../configure: 13156: :: checking for __dlopen in -ldl: not found
../configure: 13156: 6: Bad file descriptor
../configure: 13156: checking for __dlopen in -ldl... : not found
cat: confdefs.h: No such file or directory
../configure: 13156: ac_fn_c_try_link: not found
../configure: 13156: 5: Bad file descriptor
../configure: 13156: :: result: no: not found
../configure: 13156: 6: Bad file descriptor
../configure: 13156: no: not found
../configure: 13164: 5: Bad file descriptor
../configure: 13164: :: checking for sin in -lm: not found
../configure: 13164: 6: Bad file descriptor
../configure: 13164: checking for sin in -lm... : not found
cat: confdefs.h: No such file or directory
../configure: 13196: ac_fn_c_try_link: not found
../configure: 13198: 5: Bad file descriptor
../configure: 13198: :: result: no: not found
../configure: 13198: 6: Bad file descriptor
../configure: 13198: no: not found
../configure: 13214: ac_fn_c_check_func: not found
../configure: 13225: ac_fn_c_check_func: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: checking for inet_aton in -lresolv: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: checking for inet_aton in -lresolv... : not found
cat: confdefs.h: No such file or directory
../configure: 13510: ac_fn_c_try_link: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: result: no: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: no: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: checking for __inet_aton in -lresolv: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: checking for __inet_aton in -lresolv... : not found
cat: confdefs.h: No such file or directory
../configure: 13510: ac_fn_c_try_link: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: result: no: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: no: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: checking for inet_aton in -lbind: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: checking for inet_aton in -lbind... : not found
cat: confdefs.h: No such file or directory
../configure: 13510: ac_fn_c_try_link: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: result: no: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: no: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: checking for __inet_aton in -lbind: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: checking for __inet_aton in -lbind... : not found
cat: confdefs.h: No such file or directory
../configure: 13510: ac_fn_c_try_link: not found
../configure: 13510: 5: Bad file descriptor
../configure: 13510: :: result: no: not found
../configure: 13510: 6: Bad file descriptor
../configure: 13510: no: not found
../configure: 13516: 5: Bad file descriptor
../configure: 13516: :: checking for ANSI C header files: not found
../configure: 13516: 6: Bad file descriptor
../configure: 13516: checking for ANSI C header files... : not found
cat: confdefs.h: No such file or directory
../configure: 13615: ac_fn_c_try_compile: not found
../configure: 13617: 5: Bad file descriptor
../configure: 13617: :: result: no: not found
../configure: 13617: 6: Bad file descriptor
../configure: 13617: no: not found
../configure: 13665: ac_cv_header_dirent_dirent.h: not found
../configure: 13665: 5: Bad file descriptor
../configure: 13665: :: checking for dirent.h that defines DIR: not found
../configure: 13665: 6: Bad file descriptor
../configure: 13665: checking for dirent.h that defines DIR... : not found
eval: 1: Bad substitution

Någon som har nåt tips på hur jag kan lösa det?

Medlem sedan maj 20011 826 inlägg
#2

Jag valde att testa en lite äldre version av PHP, 5.2.10, och följde stegen på http://adityo.blog.binusian.org/?p=428

Då gick det lite bättre med att kompilera PHP iaf. Nu ska jag bara få det att fungera med Nginx.

253 ms totalt · 4 externa anrop · v20260731065814-full.6fe65c25
122 ms — deklarationer (db)
0 ms — hämta statistik (cache)
129 ms — hämta tråd, inlägg och bilagor (db)
119 ms — ändringar (db)