- 主题:php装好了编译kbs时却找不到
php装在$(WWWHOME)/php目录下了,
但是在kbs代码目录下./configure --with-php的时候,路径指向了php的位置,
仍然报告说在指定位置找不到php,不指定路径自动搜索也找不到
这是怎么回事?
--
FROM 211.99.222.*
php装哪儿了。自己编译的话贴configure参数,系统自带的话不要加路径。
【 在 kennykenny (胶条怪人) 的大作中提到: 】
: php装在$(WWWHOME)/php目录下了,
: 但是在kbs代码目录下./configure --with-php的时候,路径指向了php的位置,
: 仍然报告说在指定位置找不到php,不指定路径自动搜索也找不到
: ...................
--
FROM 221.219.4.*
php -i|grep prefix
【 在 fancyrabbit (兔兔猫★Initial F★Changing ...) 的大作中提到: 】
: php装哪儿了。自己编译的话贴configure参数,系统自带的话不要加路径。
--
FROM 221.219.101.*
装php时是这样的:
./configure --prefix=/usr/local/www/php \
--with-apxs2=/usr/local/www/bin/apxs --disable-debug \
--enable-pic --disable-rpath --enable-inline-optimization \
--with-dom --with-gd --with-freetype-dir \
--with-png-dir --with-iconv --with-jpeg-dir --with-zlib \
--enable-track-vars --with-mysql
【 在 fancyrabbit (兔兔猫★Initial F★Changing ...) 的大作中提到: 】
: php装哪儿了。自己编译的话贴configure参数,系统自带的话不要加路径。
--
FROM 211.99.222.*
--with-php=/usr/local/www/php 找不到?贴 kbsbbs 的 configure 错误信息
【 在 kennykenny (胶条怪人) 的大作中提到: 】
: 装php时是这样的:
: ./configure --prefix=/usr/local/www/php \
: --with-apxs2=/usr/local/www/bin/apxs --disable-debug \
: ...................
--
FROM 221.219.4.*
对,我用的就是这个参数,然后到这里出错
checking dependecy style of gcc... gcc3
configure: error:" cant't find php source in /usr/local/www/php"
【 在 fancyrabbit (兔兔猫★Initial F★Changing ...) 的大作中提到: 】
: --with-php=/usr/local/www/php 找不到?贴 kbsbbs 的 configure 错误信息
--
FROM 211.99.222.*
config.log文件
【 在 kennykenny (胶条怪人) 的大作中提到: 】
: 对,我用的就是这个参数,然后到这里出错
: checking dependecy style of gcc... gcc3
: configure: error:" cant't find php source in /usr/local/www/php"
: ...................
--
FROM 221.219.101.*
完整的?很长...
This file contains any messages produced by compilers whilerunning configure, to aid debugging if configure makes a mistake.configure:2153: checking for Cygwin environmentconfigure:2186: checking for mingw32 environmentconfigure:2217: checking for egrepconfigure:2232: checking for a sed that does not truncate outputconfigure:2382: checking host system typeconfigure:2403: checking target system typeconfigure:2515: checking for gccconfigure:2628: checking whether the C compiler (gcc ) worksconfigure:2644: gcc -o conftest conftest.c 1>&5configure:2670: checking whether the C compiler (gcc ) is a cross-compilerconfigure:2675: checking whether we are using GNU Cconfigure:2703: checking whether gcc accepts -gconfigure:2735: checking how to run the C preprocessorconfigure:2817: checking for iccconfigure:2839: checking whether gcc and cc understand -c and -o togetherconfigure:2890: checking how to run the C preprocessorconfigure:2970: checking for AIXconfigure:2994: checking whether ln -s worksconfigure:3019: checking for system library directoryconfigure:3045: checking whether to enable runpathsconfigure:3069: checking if compiler supports -Rconfigure:3102: checking if compiler supports -Wl,-rpath,configure:3146: checking for re2cconfigure:3206: checking for gawkconfigure:3247: checking if nawk is brokenconfigure:3266: checking for bisonconfigure:3306: checking for bison versionconfigure:3346: checking for flexconfigure:3380: checking for yywrap in -lflconfigure:3423: checking lex output file rootconfigure:3444: checking whether yytext is a pointerconfigure:3487: checking for working constconfigure:3567: checking for flex versionconfigure:3831: checking whether to force non-PIC code in shared modulesconfigure:3859: checking whether /dev/urandom existsconfigure:3938: gcc -o conftest -g -O2 -pthread conftest.c 1>&5configure:3958: checking for pthreads_cflagsconfigure:4028: checking for pthreads_libconfigure:4202: checking for AOLserver supportconfigure:4459: checking for Apache 1.x module support via DSO through APXSconfigure:4782: checking for Apache 1.x module supportconfigure:5615: checking whether to enable Apache charset compatibility optionconfigure:5788: checking for Apache 2.0 filter-module support via DSO through APXSconfigure:6636: checking for Apache 2.0 handler-module support via DSO through APXSconfigure:7485: checking for Apache 1.x (hooks) module support via DSO through APXSconfigure:7808: checking for Apache 1.x (hooks) module supportconfigure:8641: checking whether to enable Apache charset compatibility optionconfigure:8815: checking for Caudium supportconfigure:9166: checking for CLI buildconfigure:9212: checking for Continuity supportconfigure:9489: checking for embedded SAPI library supportconfigure:9706: checking for Zeus ISAPI supportconfigure:9955: checking for Milter supportconfigure:10239: checking for NSAPI supportconfigure:10591: checking for PHTTPD supportconfigure:10837: checking for Pi3Web supportconfigure:11204: checking whether Roxen module is build using ZTSconfigure:11228: checking for Roxen/Pike supportconfigure:11506: checking for thttpdconfigure:11767: checking for TUXconfigure:12013: checking for webjamesconfigure:12641: checking for chosen SAPI moduleconfigure:12699: checking for sendmailconfigure:12738: checking whether system uses EBCDICconfigure:12785: checking whether byte ordering is bigendianconfigure:12837: checking whether writing to stdout worksconfigure:12941: checking for socketconfigure:12969: gcc -o conftest -g -O2 conftest.c 1>&5configure:13198: checking for socketpairconfigure:13226: gcc -o conftest -g -O2 conftest.c 1>&5configure:13455: checking for htonlconfigure:13483: gcc -o conftest -g -O2 conftest.c 1>&5configure:13712: checking for gethostnameconfigure:13740: gcc -o conftest -g -O2 conftest.c 1>&5configure:13969: checking for gethostbyaddrconfigure:13997: gcc -o conftest -g -O2 conftest.c 1>&5configure:14226: checking for yp_get_default_domainconfigure:14254: gcc -o conftest -g -O2 conftest.c 1>&5/tmp/ccOQL9bU.o: In function `main':/root/Desktop/下载/php-5.2.4/configure:14248: undefined reference to `yp_get_default_domain'collect2: ld returned 1 exit statusconfigure: failed program was:#line 14231 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char yp_get_default_domain(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char yp_get_default_domain();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_yp_get_default_domain) || defined (__stub___yp_get_default_domain)choke me#elseyp_get_default_domain();#endif; return 0; }configure:14272: checking for __yp_get_default_domainconfigure:14300: gcc -o conftest -g -O2 conftest.c 1>&5/tmp/ccUmszMg.o: In function `main':/root/Desktop/下载/php-5.2.4/configure:14294: undefined reference to `__yp_get_default_domain'collect2: ld returned 1 exit statusconfigure: failed program was:#line 14277 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char __yp_get_default_domain(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char __yp_get_default_domain();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub___yp_get_default_domain) || defined (__stub_____yp_get_default_domain)choke me#else__yp_get_default_domain();#endif; return 0; }configure:14338: checking for yp_get_default_domain in -lnslconfigure:14357: gcc -o conftest -g -O2 conftest.c -lnsl 1>&5configure:14432: gcc -o conftest -g -O2 conftest.c -lnsl 1>&5configure:14484: checking for dlopenconfigure:14512: gcc -o conftest -g -O2 conftest.c -lnsl 1>&5/tmp/ccyaJEZf.o: In function `main':/root/Desktop/下载/php-5.2.4/configure:14506: undefined reference to `dlopen'collect2: ld returned 1 exit statusconfigure: failed program was:#line 14489 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char dlopen(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char dlopen();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_dlopen) || defined (__stub___dlopen)choke me#elsedlopen();#endif; return 0; }configure:14530: checking for __dlopenconfigure:14558: gcc -o conftest -g -O2 conftest.c -lnsl 1>&5/tmp/ccYDHDKk.o: In function `main':/root/Desktop/下载/php-5.2.4/configure:14552: undefined reference to `__dlopen'collect2: ld returned 1 exit statusconfigure: failed program was:#line 14535 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char __dlopen(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char __dlopen();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub___dlopen) || defined (__stub_____dlopen)choke me#else__dlopen();#endif; return 0; }configure:14596: checking for dlopen in -ldlconfigure:14615: gcc -o conftest -g -O2 conftest.c -ldl -lnsl 1>&5configure:14690: gcc -o conftest -g -O2 conftest.c -lnsl -ldl 1>&5configure:14742: checking for sin in -lmconfigure:14795: checking for res_searchconfigure:14823: gcc -o conftest -g -O2 conftest.c -lm -ldl -lnsl 1>&5/tmp/ccyhodEg.o: In function `main':/root/Desktop/下载/php-5.2.4/configure:14817: undefined reference to `res_search'collect2: ld returned 1 exit statusconfigure: failed program was:#line 14800 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char res_search(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char res_search();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_res_search) || defined (__stub___res_search)choke me#elseres_search();#endif; return 0; }configure:14841: checking for __res_searchconfigure:14869: gcc -o conftest -g -O2 conftest.c -lm -ldl -lnsl 1>&5/tmp/cc80kJTD.o: In function `main':/root/Desktop/下载/php-5.2.4/configure:14863: undefined reference to `__res_search'collect2: ld returned 1 exit statusconfigure: failed program was:#line 14846 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char __res_search(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char __res_search();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub___res_search) || defined (__stub_____res_search)choke me#else__res_search();#endif; return 0; }configure:14907: checking for res_search in -lresolvconfigure:14926: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5configure:15001: gcc -o conftest -g -O2 conftest.c -lm -ldl -lnsl -lresolv 1>&5configure:15331: checking for inet_atonconfigure:15359: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5configure:15727: checking for dn_skipnameconfigure:15755: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5/tmp/cck6J2VH.o: In function `main':/root/Desktop/下载/php-5.2.4/configure:15749: undefined reference to `dn_skipname'collect2: ld returned 1 exit statusconfigure: failed program was:#line 15732 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char dn_skipname(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char dn_skipname();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_dn_skipname) || defined (__stub___dn_skipname)choke me#elsedn_skipname();#endif; return 0; }configure:15773: checking for __dn_skipnameconfigure:15801: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5configure:16121: checking for ANSI C header filesconfigure:16229: checking for dirent.h that defines DIRconfigure:16267: checking for opendir in -ldirconfigure:16409: checking for inttypes.hconfigure:16409: checking for stdint.hconfigure:16409: checking for dirent.hconfigure:16409: checking for ApplicationServices/ApplicationServices.hconfigure:16409: checking for sys/param.hconfigure:16409: checking for sys/types.hconfigure:16409: checking for sys/time.hconfigure:16409: checking for netinet/in.hconfigure:16409: checking for alloca.hconfigure:16409: checking for arpa/inet.hconfigure:16409: checking for arpa/nameser.hconfigure:16409: checking for assert.hconfigure:16409: checking for crypt.hconfigure:16409: checking for fcntl.hconfigure:16409: checking for grp.hconfigure:16409: checking for ieeefp.hconfigure:16409: checking for langinfo.hconfigure:16409: checking for limits.hconfigure:16409: checking for locale.hconfigure:16409: checking for monetary.hconfigure:16409: checking for mach-o/dyld.hconfigure:16409: checking for netdb.hconfigure:16409: checking for pwd.hconfigure:16409: checking for resolv.hconfigure:16409: checking for signal.hconfigure:16409: checking for stdarg.hconfigure:16409: checking for stdlib.hconfigure:16409: checking for string.hconfigure:16409: checking for syslog.hconfigure:16409: checking for sysexits.hconfigure:16409: checking for sys/ioctl.hconfigure:16409: checking for sys/file.hconfigure:16409: checking for sys/mman.hconfigure:16409: checking for sys/mount.hconfigure:16409: checking for sys/poll.hconfigure:16409: checking for sys/resource.hconfigure:16409: checking for sys/select.hconfigure:16409: checking for sys/socket.hconfigure:16409: checking for sys/stat.hconfigure:16409: checking for sys/statfs.hconfigure:16409: checking for sys/statvfs.hconfigure:16409: checking for sys/vfs.hconfigure:16409: checking for sys/sysexits.hconfigure:16409: checking for sys/varargs.hconfigure:16409: checking for sys/wait.hconfigure:16409: checking for sys/loadavg.hconfigure:16409: checking for termios.hconfigure:16409: checking for unistd.hconfigure:16409: checking for unix.hconfigure:16409: checking for utime.hconfigure:16409: checking for sys/utsname.hconfigure:16409: checking for sys/ipc.hconfigure:16409: checking for dlfcn.hconfigure:16409: checking for assert.hconfigure:16448: checking for fopencookieconfigure:16508: gcc -c -g -O2 conftest.c 1>&5configure:16559: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5configure: In function 'main':configure:16552: warning: incompatible implicit declaration of built-in function 'exit'configure:16623: checking for broken getcwdconfigure:16638: checking for broken libc stdioconfigure:16699: gcc -o conftest -g -O2 conftest.c -lresolv -lm -ldl -lnsl 1>&5configure: In function 'main':configure:16683: warning: incompatible implicit declaration of built-in function 'exit'configure: failed program was:#line 16671 "configure"#include "confdefs.h"#include <stdio.h>int main(int argc, char *argv[]){ FILE *fp; long position; char *filename = "/tmp/phpglibccheck"; fp = fopen(filename, "w"); if (fp == NULL) { perror("fopen"); exit(2); } fputs("foobar", fp); fclose(fp); fp = fopen(filename, "a+"); position = ftell(fp); fclose(fp); unlink(filename); if (position == 0) return 1; return 0;}configure:16727: checking whether struct tm is in sys/time.h or time.hconfigure:16761: checking for tm_zone in struct tmconfigure:16833: checking for missing declarations of reentrant functionsconfigure:16842: gcc -c -g -O2 conftest.c 1>&5configure:16867: gcc -c -g -O2 conftest.c 1>&5configure:16892: gcc -c -g -O2 conftest.c 1>&5configure:16917: gcc -c -g -O2 conftest.c 1>&5configure:16942: gcc -c -g -O2 conftest.c 1>&5configure:16963: checking for fclose declarationconfigure:16972: gcc -c -g -O2 conftest.c 1>&5configure:16998: checking for tm_gmtoff in struct tmconfigure:17034: checking for struct flockconfigure:17076: checking for socklen_tconfigure:17119: checking size of size_tconfigure:17158: checking size of long longconfigure:17197: checking size of long long intconfigure:17236: checking size of longconfigure:17275: checking size of intconfigure:17316: checking size of intmax_tconfigure:17396: checking size of ssize_tconfigure:17476: checking size of ptrdiff_tconfigure:17556: checking for st_blksize in struct statconfigure:17591: checking for st_blocks in struct statconfigure:17631: checking for st_rdev in struct statconfigure:17666: checking for size_tconfigure:17699: checking for uid_t in sys/types.hconfigure:17735: checking for struct sockaddr_storageconfigure:17769: checking for field sa_len in struct sockaddrconfigure:17806: checking for IPv6 supportconfigure:17836: checking for vprintfconfigure:18023: checking for alphasortconfigure:18023: checking for asctime_rconfigure:18023: checking for chrootconfigure:18023: checking for ctime_rconfigure:18023: checking for cuseridconfigure:18023: checking for cryptconfigure:18023: checking for flockconfigure:18023: checking for ftokconfigure:18023: checking for funopenconfigure:18023: checking for gai_strerrorconfigure:18023: checking for gcvtconfigure:18023: checking for getloadavgconfigure:18023: checking for getloginconfigure:18023: checking for getprotobynameconfigure:18023: checking for getprotobynumberconfigure:18023: checking for getservbynameconfigure:18023: checking for getservbyportconfigure:18023: checking for getrusageconfigure:18023: checking for gettimeofdayconfigure:18023: checking for gmtime_rconfigure:18023: checking for getpwnam_rconfigure:18023: checking for getgrnam_rconfigure:18023: checking for getpwuid_rconfigure:18023: checking for grantptconfigure:18023: checking for inet_ntoaconfigure:18023: checking for inet_ntopconfigure:18023: checking for inet_ptonconfigure:18023: checking for isasciiconfigure:18023: checking for linkconfigure:18023: checking for localtime_rconfigure:18023: checking for lockfconfigure:18023: checking for lchownconfigure:18023: checking for lrand48configure:18023: checking for memcpyconfigure:18023: checking for memmoveconfigure:18023: checking for mkstempconfigure:18023: checking for mmapconfigure:18023: checking for nl_langinfoconfigure:18023: checking for perrorconfigure:18023: checking for pollconfigure:18023: checking for ptsnameconfigure:18023: checking for putenvconfigure:18023: checking for realpathconfigure:18023: checking for randomconfigure:18023: checking for rand_rconfigure:18023: checking for regcompconfigure:18023: checking for res_searchconfigure:18023: checking for scandirconfigure:18023: checking for setitimerconfigure:18023: checking for setlocaleconfigure:18023: checking for localeconvconfigure:18023: checking for setenvconfigure:18023: checking for setpgidconfigure:18023: checking for setsockoptconfigure:18023: checking for setvbufconfigure:18023: checking for shutdownconfigure:18023: checking for sinconfigure:18023: checking for snprintfconfigure:18023: checking for srand48configure:18023: checking for srandomconfigure:18023: checking for statfsconfigure:18023: checking for statvfsconfigure:18023: checking for std_syslogconfigure:18023: checking for strcasecmpconfigure:18023: checking for strcollconfigure:18023: checking for strdupconfigure:18023: checking for strerrorconfigure:18023: checking for strftimeconfigure:18023: checking for strptimeconfigure:18023: checking for strstrconfigure:18023: checking for strtok_rconfigure:18023: checking for symlinkconfigure:18023: checking for tempnamconfigure:18023: checking for tzsetconfigure:18023: checking for unlockptconfigure:18023: checking for unsetenvconfigure:18023: checking for usleepconfigure:18023: checking for nanosleepconfigure:18023: checking for utimeconfigure:18023: checking for vsnprintfconfigure:18077: checking for getaddrinfoconfigure:18167: checking for strlcatconfigure:18167: checking for strlcpyconfigure:18167: checking for getoptconfigure:18222: checking whethe
【 在 JulyClyde (七月) 的大作中提到: 】
: config.log文件
--
FROM 211.99.222.*
怎么不换行啊?
从后往前看,找到出错那一段
【 在 kennykenny (胶条怪人) 的大作中提到: 】
: 完整的?很长...
: This file contains any messages produced by compilers whilerunning configure, to aid debugging if configure makes a mistake.configure:2153: checking for Cygwin environmentconfigure:2186: checking for mingw32 environmentconfigure:2217: checking for eg
--
FROM 221.219.101.*
你这个是老版本的 kbs 吧。
【 在 kennykenny (胶条怪人) 的大作中提到: 】
: 对,我用的就是这个参数,然后到这里出错
: checking dependecy style of gcc... gcc3
: configure: error:" cant't find php source in /usr/local/www/php"
: ...................
--
FROM 221.223.57.*