URN Logo
UNIX Resources » BSD » FreeBSD » FreeBSD China » 技术交流 » 353 » 大家来试试这个!
announcement 声明: 本页内容为FreeBSD China的内容镜像,文章的版权以及其他所有的相关权利属于FreeBSD China和相应文章的作者,如果转载,请注明文章来源及相关版权信息。
freebsdchina.org
  中文文档计划
  Chinese Ports 讨论
  初学指南
  技术交流
  设备驱动
  WEB服务
  Proxy服务
  JAVA平台
  软件发布
  休闲话题
  静语轩
  系统编程
  脚本编程
  内核开发技术
  网络安全
  mail系统
  X-Win系统
  信息交流
  历史-文化-设计-实现
  安装-配置-优化-安全
  中文-桌面-开发-调试
   
大家来试试这个!
Subject: 大家来试试这个!
Author: webman    Posted: 2002-07-20 22:13:23    Length: 129 byte(s)
[Original] [Print] [Top]
我将PORTS升级到最新,APACHE2.0.39 and mod_php4.2.1 。
先装APACHE2 然后装PHP,结果不能装上PHP。

不知大家是否试过?
[Original] [Print] [Top]
Subject: (空)
Author: ldconfig    Posted: 2002-07-21 02:46:27    Length: 130 byte(s)
[Original] [Print] [Top]
# cd /usr/ports/www/apache2
# make install clean
# cd /usr/ports/www/mod_php4
# make install clean WITH_APACHE2=yes
----
多年前,美国也发生过类似的案例,一个母亲为了给自己的孩子准备食物,在超市里偷窃面包。法官判决如下:她有罪。同样,令一个母亲饥寒交迫,不得不靠偷窃来养活孩子的社会同样有罪,我们在座的诸位都有罪。判罚每人一美圆,给那个偷窃的母亲。
[Original] [Print] [Top]
Subject: 抱歉,我试过了,还是不行啊!
Author: webman    Posted: 2002-07-21 16:58:55    Length: 50 byte(s)
[Original] [Print] [Top]
抱歉,我试过了,还是不行啊!好象在ZEND这里卡住的!
[Original] [Print] [Top]
Subject: (空)
Author: ldconfig    Posted: 2002-07-21 17:40:02    Length: 22 byte(s)
[Original] [Print] [Top]
把出错信息贴出来看看。
----
多年前,美国也发生过类似的案例,一个母亲为了给自己的孩子准备食物,在超市里偷窃面包。法官判决如下:她有罪。同样,令一个母亲饥寒交迫,不得不靠偷窃来养活孩子的社会同样有罪,我们在座的诸位都有罪。判罚每人一美圆,给那个偷窃的母亲。
[Original] [Print] [Top]
Subject: (空)
Author: ihweb    Posted: 2002-07-22 14:45:59    Length: 12611 byte(s)
[Original] [Print] [Top]
到了cd /usr/ports/www/mod_php4
make install WITH_APACHE2 的时候,发现有如下的错误,如何改正啊??
HELP!!!!!!!!!!!!!!!!!!!

checking for mod_charset compatibility option... no
checking for Apache 2.0 module support via DSO through APXS... yes
checking for Caudium support... no
checking for fhttpd module support... no
checking for CLI build... no
checking for FastCGI support... no
checking for Zeus ISAPI support... no
checking for NSAPI support... no
checking for PHTTPD support... no
checking for Pi3Web Support... no
checking for Roxen/Pike support... no
checking for Servlet support... no
checking for thttpd... no
checking for TUX... no
checking for webjames... no
checking for chosen SAPI module... apache2filter

Running system checks
checking for missing declarations of reentrant functions... done
checking for sendmail... /usr/sbin/sendmail
checking whether system uses EBCDIC... no
checking for socket in -lsocket... no
checking for htonl in -lsocket... no
checking for yp_get_default_domain... yes
checking for dlopen in -ldl... no
checking for sin in -lm... yes
checking for inet_aton in -lresolv... no
checking for inet_aton in -lbind... no
checking for __inet_aton in -lbind... no
checking for res_search in -lsocket... no
checking for res_search in -lresolv... no
checking for dn_skipname in -lresolv... no
checking for __dn_skipname in -lresolv... no
checking for ANSI C header files... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for fclose declaration... ok
checking for ApplicationServices/ApplicationServices.h... no
checking for alloca.h... no
checking for arpa/inet.h... yes
checking for arpa/nameser.h... yes
checking for crypt.h... no
checking for fcntl.h... yes
checking for grp.h... yes
checking for ieeefp.h... yes
checking for langinfo.h... no
checking for limits.h... yes
checking for locale.h... yes
checking for netinet/in.h... yes
checking for pwd.h... yes
checking for resolv.h... yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for syslog.h... yes
checking for sysexits.h... yes
checking for sys/file.h... yes
checking for sys/mman.h... yes
checking for sys/mount.h... yes
checking for sys/resource.h... yes
checking for sys/select.h... yes
checking for sys/socket.h... yes
checking for sys/statfs.h... no
checking for sys/statvfs.h... no
checking for sys/vfs.h... no
checking for sys/sysexits.h... no
checking for sys/time.h... yes
checking for sys/types.h... yes
checking for sys/varargs.h... no
checking for sys/wait.h... yes
checking for unistd.h... yes
checking for unix.h... no
checking for utime.h... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for tm_zone in struct tm... yes
checking for tm_gmtoff in struct tm... yes
checking for struct flock... yes
checking for socklen_t... yes
checking size of long... 4
checking size of int... 4
checking for st_blksize in struct stat... yes
checking for st_blocks in struct stat... yes
checking for st_rdev in struct stat... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for struct sockaddr_storage... yes
checking for IPv6 support... yes
checking for vprintf... yes
checking for asctime_r... yes
checking for chroot... yes
checking for ctime_r... yes
checking for cuserid... no
checking for crypt... no
checking for flock... yes
checking for gai_strerror... yes
checking for gcvt... no
checking for getlogin... yes
checking for gethostbyaddr... yes
checking for getprotobyname... yes
checking for getprotobynumber... yes
checking for getservbyname... yes
checking for getservbyport... yes
checking for getrusage... yes
checking for gettimeofday... yes
checking for gmtime_r... yes
checking for inet_aton... yes
checking for isascii... yes
checking for link... yes
checking for localtime_r... yes
checking for lockf... yes
checking for lrand48... yes
checking for memcpy... yes
checking for memmove... yes
checking for mkstemp... yes
checking for mmap... yes
checking for nl_langinfo... no
checking for putenv... yes
checking for realpath... yes
checking for random... yes
checking for rand_r... yes
checking for regcomp... yes
checking for res_search... yes
checking for setitimer... yes
checking for setlocale... yes
checking for localeconv... yes
checking for setsockopt... yes
checking for setvbuf... yes
checking for shutdown... yes
checking for sin... yes
checking for snprintf... yes
checking for srand48... yes
checking for srandom... yes
checking for statfs... yes
checking for statvfs... no
checking for std_syslog... no
checking for strcasecmp... yes
checking for strcoll... yes
checking for strdup... yes
checking for strerror... yes
checking for strftime... yes
checking for strstr... yes
checking for strtok_r... yes
checking for symlink... yes
checking for tempnam... yes
checking for tzset... yes
checking for unsetenv... yes
checking for usleep... yes
checking for utime... yes
checking for vsnprintf... yes
checking for getaddrinfo... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for getopt... yes
checking whether utime accepts a null argument... yes
checking for working alloca.h... (cached) no
checking for alloca... yes
checking whether sprintf is broken... no
checking for declared timezone... yes
checking for type of reentrant time-related functions... POSIX
checking for readdir_r... yes
checking for type of readdir_r... POSIX
checking whether to include debugging symbols... no
checking layout of installed files... yes
checking path to configuration file... yes
checking whether to install PEAR, and where... yes
checking whether to enable safe mode by default... no
checking for safe mode exec dir... /usr/local/php/bin
checking for OpenSSL support... no
checking whether to enable PHP's own SIGCHLD handler... no
checking whether to enable magic quotes by default... no
checking whether to enable runpaths... yes
checking whether to explicitly link against libgcc... no
checking whether to enable short tags by default... yes
checking whether to enable dmalloc... no
checking for crypt in -lcrypt... yes

Configuring extensions
checking if the location of ZLIB install directory is defined... no
checking for ZLIB support... yes
checking for gzgets in -lz... yes
checking for fopencookie... no
checking for ASPELL support... no
checking whether to enable bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking for CCVS support... no
checking for cpdflib support... no
checking for CRACKlib support... no
checking whether to enable ctype functions... yes
checking for CURL support... no
checking for CyberCash support... no
checking for cybermut support... no
checking for cyrus imap support... no
checking for xDBM support... no
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB2 support... no
checking for Berkeley DB3 support... no
checking for DBM support... no
checking for CDB support... no
checking whether to enable DBA interface... no
checking whether to enable dbase support... no
checking for dbplus support... no
checking whether to enable dbx support... no
checking whether to enable direct I/O support... no
checking for DOM support... no
checking for DOM XSLT support... no
checking for DOM EXSLT support... no
checking whether to enable EXIF support... no
checking for FrontBase SQL92 (fbsql) support... no
checking for FDF support... no
checking whether to enable the bundled filePro support... no
checking for FriBidi support... no
checking whether to enable FTP support... yes
checking for GD support... yes
checking whether to enable truetype string function in GD... yes
checking for the location of libjpeg... yes
checking for jpeg_read_header in -ljpeg... yes
checking for the location of libpng... yes
checking for png_write_image in -lpng... yes
checking for the location of libXpm... no
If configure fails try --with-xpm-dir=
checking for freetype(2)... yes
checking for FreeType 1.x support... no
checking for T1lib support... no
checking for gdImageString16 in -lgd... yes
checking for gdImagePaletteCopy in -lgd... yes
checking for gdImageCreateFromPng in -lgd... yes
checking for gdImageCreateFromGif in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageCreateFromJpeg in -lgd... yes
checking for gdImageCreateFromXpm in -lgd... yes
checking for gdImageCreateFromGd2 in -lgd... yes
checking for gdImageCreateTrueColor in -lgd... yes
checking for gdImageSetTile in -lgd... yes
checking for gdImageSetBrush in -lgd... yes
checking for gdImageStringTTF in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageStringFTEx in -lgd... yes
checking for gdImageColorClosestHWB in -lgd... yes
checking for gdImageColorResolve in -lgd... yes
checking for gdImageGifCtx in -lgd... yes
checking for GNU gettext support... no
checking for GNU MP support... no
checking for Hyperwave support... no
checking for ICAP support... no
checking for iconv support... no
checking for IMAP support... yes
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... (cached) yes
checking for Informix support... no
checking for Ingres II support... no
checking for InterBase support... no
checking for IRCG support... no
checking for Java support... no
checking for LDAP support... no
checking whether to enable multibyte string support... no
checking whether to enable japanese encoding translation... no
checking whether to enable multibyte regex support... no
checking for MCAL support... no
checking for mcrypt support... no
checking for MCVE support... no
checking for mhash support... no
checking for MING support... no
checking for mnoGoSearch support... no
checking for msession support... no
checking for mSQL support... no
checking for Muscat support... no
checking for MySQL support... yes
checking size of char... 1
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... 8
checking for size_t... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for uid_t in sys/types.h... (cached) yes
checking for type ulong... no
checking for type uchar... no
checking for type uint... yes
checking for type ushort... yes
checking for int8... no
checking base type of last arg to accept... socklen_t
checking return type of qsort... void
configure: error: Cannot find header files under /usr/local
===> Script "configure" failed unexpectedly.
Please report the problem to dirk@FreeBSD.org [maintainer] and attach the
"/usr/ports/www/mod_php4/work/php-4.2.1/config.log" including the output
of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/www/mod_php4.
*** Error code 1

Stop in /usr/ports/www/mod_php4.
xbsd#
[Original] [Print] [Top]
Subject: (空)
Author: ldconfig    Posted: 2002-07-22 14:55:05    Length: 38 byte(s)
[Original] [Print] [Top]
你在make php的对话框里面都选择了什么?
----
多年前,美国也发生过类似的案例,一个母亲为了给自己的孩子准备食物,在超市里偷窃面包。法官判决如下:她有罪。同样,令一个母亲饥寒交迫,不得不靠偷窃来养活孩子的社会同样有罪,我们在座的诸位都有罪。判罚每人一美圆,给那个偷窃的母亲。
[Original] [Print] [Top]
Subject: (空)
Author: ihweb    Posted: 2002-07-22 16:04:24    Length: 69 byte(s)
[Original] [Print] [Top]
刚开始的时候我选了很多,后来选了很少,还是不行啊!!MYSQL总得保留吧。
[Original] [Print] [Top]
Subject: (空)
Author: ihweb    Posted: 2002-07-22 18:08:44    Length: 114 byte(s)
[Original] [Print] [Top]
问题是发现啦:原来真的是MYSQL这个选项的造成安装不成功的,后来全部不选,OK,编译通过,但是没有了MYSQL的支持,惨啊。
[Original] [Print] [Top]
Subject: (空)
Author: ldconfig    Posted: 2002-07-22 18:53:53    Length: 444 byte(s)
[Original] [Print] [Top]
ihweb 写到:
问题是发现啦:原来真的是MYSQL这个选项的造成安装不成功的,后来全部不选,OK,编译通过,但是没有了MYSQL的支持,惨啊。


do the below first

# cd /usr/ports/databases/mysql323-client
# make install clean
----
多年前,美国也发生过类似的案例,一个母亲为了给自己的孩子准备食物,在超市里偷窃面包。法官判决如下:她有罪。同样,令一个母亲饥寒交迫,不得不靠偷窃来养活孩子的社会同样有罪,我们在座的诸位都有罪。判罚每人一美圆,给那个偷窃的母亲。
[Original] [Print] [Top]
Subject: 还是错……
Author: webman    Posted: 2002-07-22 19:45:56    Length: 119 byte(s)
[Original] [Print] [Top]
其实我错的地方跟楼上的不同。
且我在FREEBSD里已装上MYSQL-SERVER在此同时也附带装上了MYSQL-client了!但还是不能通过!
[Original] [Print] [Top]
Subject: (空)
Author: webman    Posted: 2002-07-22 21:31:28    Length: 4174 byte(s)
[Original] [Print] [Top]
Define WITH_APACHE2 to build mod_php4 as an apache2 module.

===> Extracting for mod_php4-4.2.1_2
Define WITH_APACHE2 to build mod_php4 as an apache2 module.

>> Checksum OK for php-4.2.1.tar.bz2.
===> mod_php4-4.2.1_2 depends on file: /usr/local/sbin/apxs - found
===> mod_php4-4.2.1_2 depends on executable: autoconf213 - found
===> mod_php4-4.2.1_2 depends on shared library: gd.4 - found
===> mod_php4-4.2.1_2 depends on shared library: freetype.9 - found
===> mod_php4-4.2.1_2 depends on shared library: png.5 - found
===> mod_php4-4.2.1_2 depends on shared library: jpeg.9 - found
===> mod_php4-4.2.1_2 depends on shared library: mysqlclient.10 - found
===> Patching for mod_php4-4.2.1_2
===> Applying FreeBSD patches for mod_php4-4.2.1_2
===> Configuring for mod_php4-4.2.1_2
configure.in:139: AC_PROG_CPP was called before AC_PROG_CC
configure.in:531: warning: AC_TRY_RUN called without default to allow cross compiling
ext/imap/config.m4:168: warning: AC_TRY_RUN called without default to allow cross compiling
ext/qtdom/config.m4:34: AC_PROG_CXXCPP was called before AC_PROG_CXX
ext/session/config.m4:30: warning: AC_TRY_RUN called without default to allow cross compiling
ext/session/config.m4:31: warning: AC_TRY_RUN called without default to allow cross compiling
ext/xml/config.m4:8: warning: AC_TRY_RUN called without default to allow cross compiling
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking host system type... i386-portbld-freebsd4.6.1
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets ${MAKE}... yes
checking whether to enable maintainer-specific portions of Makefiles... no
Updated php_version.h
checking how to run the C preprocessor... cc -E
checking for AIX... no
checking for gcc... cc
checking whether the C compiler (cc -O -pipe -march=pentiumpro -I/usr/local/include ) works... yes
checking whether the C compiler (cc -O -pipe -march=pentiumpro -I/usr/local/include ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of cc... none
checking whether cc understands -c and -o together... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
checking whether compiler supports -R... yes
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for mawk... (cached) awk
checking for bison... bison -y
checking bison version... 1.35 (ok)
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking for pthreads_cflags... -pthread
checking for pthreads_lib...

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... configure: error: Use --with-apxs2 with Apache 2.x!
===> Script "configure" failed unexpectedly.
Please report the problem to dirk@FreeBSD.org [maintainer] and attach the
"/usr/ports/www/mod_php4/work/php-4.2.1/config.log" including the output
of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/www/mod_php4.
*** Error code 1

Stop in /usr/ports/www/mod_php4.

以上是我的出错文件。
我已Use --with-apxs2 with Apache 2.x!
[Original] [Print] [Top]
Subject: (空)
Author: ldconfig    Posted: 2002-07-22 23:03:01    Length: 52 byte(s)
[Original] [Print] [Top]
如果你用的是ports,

make WITH_APACHE2=yes
----
多年前,美国也发生过类似的案例,一个母亲为了给自己的孩子准备食物,在超市里偷窃面包。法官判决如下:她有罪。同样,令一个母亲饥寒交迫,不得不靠偷窃来养活孩子的社会同样有罪,我们在座的诸位都有罪。判罚每人一美圆,给那个偷窃的母亲。
[Original] [Print] [Top]
Subject: 成功!
Author: webman    Posted: 2002-07-23 08:57:18    Length: 347 byte(s)
[Original] [Print] [Top]
miles 写到:
如果你用的是ports,

make WITH_APACHE2=yes


有道理!但是否需要在编译apache2时加上 --with-apxs2这个参数呢?
[Original] [Print] [Top]
Subject: Re: 成功!
Author: ldconfig    Posted: 2002-07-23 16:58:42    Length: 384 byte(s)
[Original] [Print] [Top]
webman 写到:

有道理!但是否需要在编译apache2时加上 --with-apxs2这个参数呢?


不需要,这个是编译apache的module时候用的,是apache自己带的一个用perl写的实用程序。
----
多年前,美国也发生过类似的案例,一个母亲为了给自己的孩子准备食物,在超市里偷窃面包。法官判决如下:她有罪。同样,令一个母亲饥寒交迫,不得不靠偷窃来养活孩子的社会同样有罪,我们在座的诸位都有罪。判罚每人一美圆,给那个偷窃的母亲。
[Original] [Print] [Top]
« Previous thread
求救!SOS!
技术交流
353
Next thread »
多系统引导的工具!!!
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
备案序号: 京ICP备05006143    webmaster: webmaster@unixresources.net
This page created on 2007-07-26 13:37:11, cost 0.023076057434082 ms.