QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1136|回复: 10

安装PHP4。3。4出错,求助!!

[复制链接]
发表于 2004-9-14 14:38:56 | 显示全部楼层 |阅读模式
配置如下:
[root@localhost php-4.3.4]# ./configure --with-apxs=/Apache1.3.27/bin/apxs --with-gd --with-zlib --with-xml --with-jpeg --with-jpeg-dir=/usr/local --with-oci8=/oraclelinux/product/8.1.7 --prefix=/PHP4.3.4 --with-freetype-dir=/usr/local --with-png --with-png-dir=/usr/local --with-imap=/install/imap-2002e --with-iconv=/usr/local/libiconv
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for gawk... gawk
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 flex version... 2.5.4 (ok)
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... yes
checking for member fd in BUFF *... yes
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS... no
checking for Caudium support... no
checking for CLI build... yes
checking for embedded SAPI library 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... apache

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... yes
checking for htonl... yes
checking for gethostname... yes
checking for gethostbyaddr... yes
checking for yp_get_default_domain... no
checking for __yp_get_default_domain... no
checking for yp_get_default_domain in -lnsl... yes
checking for dlopen... no
checking for __dlopen... no
checking for dlopen in -ldl... yes
checking for sin in -lm... yes
checking for res_search... no
checking for __res_search... no
checking for res_search in -lresolv... yes
checking for inet_aton... yes
checking for dn_skipname... no
checking for __dn_skipname... yes
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 dirent.h... yes
checking for ApplicationServices/ApplicationServices.h... no
checking for sys/param.h... yes
checking for sys/types.h... yes
checking for sys/time.h... yes
checking for netinet/in.h... yes
checking for alloca.h... yes
checking for arpa/inet.h... yes
checking for arpa/nameser.h... yes
checking for assert.h... yes
checking for crypt.h... yes
checking for fcntl.h... yes
checking for grp.h... yes
checking for ieeefp.h... no
checking for langinfo.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for monetary.h... yes
checking for mach-o/dyld.h... no
checking for netdb.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/poll.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... yes
checking for sys/statvfs.h... yes
checking for sys/vfs.h... yes
checking for sys/sysexits.h... no
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 for sys/utsname.h... yes
checking for sys/ipc.h... yes
checking for dlfcn.h... yes
checking for fopencookie... yes
checking for broken getcwd... no
checking for broken libc stdio... 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 user_id_t in sys/types.h... yes
checking for struct sockaddr_storage... yes
checking for IPv6 support... yes
checking for vprintf... yes
checking for alphasort... yes
checking for asctime_r... yes
checking for chroot... yes
checking for ctime_r... yes
checking for cuserid... yes
checking for crypt... no
checking for flock... yes
checking for ftok... yes
checking for funopen... no
checking for gai_strerror... yes
checking for gcvt... yes
checking for getlogin... 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 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... yes
checking for perror... yes
checking for poll... yes
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... (cached) yes
checking for scandir... 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... yes
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... no
checking for strlcpy... no
checking for getopt... yes
checking whether utime accepts a null argument... yes
checking for working alloca.h... (cached) yes
checking for alloca... yes
checking whether sprintf is broken... no
checking whether snprintf 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

General settings
checking whether to include debugging symbols... no
checking layout of installed files... PHP
checking path to configuration file... DEFAULT
checking directory to be scanned for configuration files... DEFAULT
checking whether to enable safe mode by default... no
checking for safe mode exec dir... /usr/local/php/bin
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 whether to enable IPv6 support... yes
checking whether to enable versioning... no

Configuring extensions
checking for OpenSSL support... no
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
checking for gzgets in -lz... yes
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 cpdflib support... no
checking for CRACKlib support... no
checking whether to enable ctype functions... yes
checking for CURL 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 DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable dbase 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 (metadata from images) 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... no
checking for GD support... yes
checking for the location of libjpeg... /usr/local
checking for the location of libpng... /usr/local
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... /usr/local
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=<DIR>
checking for GNU gettext support... no
checking for GNU MP support... no
checking for hwapi support... no
checking for Hyperwave support... no
checking for iconv support... yes
checking for libiconv in -liconv... yes
checking if iconv is Konstantin Chugeuv's... no
checking if iconv supports errno... yes
checking if your cpp allows macro usage in include lines... yes
checking for IMAP support... yes
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... yes
configure: error: Cannot find rfc822.h. Please check your IMAP installation.
[root@localhost php-4.3.4]# make
make: *** No targets specified and no makefile found.  Stop.

为什么make不了??
发表于 2004-9-14 15:17:58 | 显示全部楼层
>>configure: error: Cannot find rfc822.h. Please check your IMAP installation
应该是你缺少IMAP模块,因为你的configure后面跟的参数很多,不知哪个和IMAP发生了关系。那么多参数你都搞清楚用处了吗?有必要吗?
回复

使用道具 举报

发表于 2004-9-14 17:33:22 | 显示全部楼层
--with-imap=/install/imap-2002e
你的机器里有/install/imap-2002e这个目录么?另外俺也不知道这个玩意干什么的。
我一般就
./configure --with-apxs=/Apache1.3.27/bin/apxs --prefix=/usr/local/php --with-mysql=/usr/local/mysql
对于我来说gd什么的当时编译时候不加上去,过后想补上怎么办?只能再重新编译么?
回复

使用道具 举报

发表于 2004-9-14 17:56:01 | 显示全部楼层
[quote:31bf163e1f="犯得上"]--with-imap=/install/imap-2002e
你的机器里有/install/imap-2002e这个目录么?另外俺也不知道这个玩意干什么的。
我一般就
./configure --with-apxs=/Apache1.3.27/bin/apxs --prefix=/usr/local/php --with-mysql=/usr/local/mysql
对于我来说gd什么的当时编译时候不加上去,过后想补上怎么办?只能再重新编译么?[/quote]
1.IMAP是一个邮件认证模块,如果Apache不做与邮件服务器的连接可以不用。
2.gd库是比较有用的咚咚,尤其是当你需要以图表的方式看东西时就少不了它,所以当没有编辑进你的php时应该不惜重新configure编上它。
回复

使用道具 举报

 楼主| 发表于 2004-9-14 22:30:11 | 显示全部楼层
我对于linux还是初学者,也不太懂里面的设置,
这个是准备做一个办公自动化的服务器,red hat linux 9.0+oracle8+PHP
关于提到的IMAP我已经安装过了
一个干净的RH9,美化过字体后,我安装如下程序:
1.oracle
 步骤太多(略)
2.Apache
  tar xvfz apache_1.3.27.tar.gz
  cd apache_1.3.27
  ./configure --prefix=/Apache1.3.27 --enable-module=so
  make
  make install
3.imap-2002e
  tar xvfz imap-2002e.tar.gz
  cd imap-2002e
  make lrh SSLTYPE=none
  cd c-clinet
  cp c-clinet.a libc-client.a
4.iconv
  tar xvfz libiconv-1.9.1.tar.gz
  cd  libiconv-1.9.1
  ./configure --prefix=/usr/local/libiconv
  make
  make install
5.PHP4.3.4
  tar xvfz php-4.3.4.tar.gz
  cd php-4.3.4
  ./configure --with-apxs=/Apache1.3.27/bin/apxs --with-gd --with-zlib --with-xml --with-jpeg --with-jpeg-dir=/usr/local --with-oci8=/oraclelinux/product/8.1.7 --prefix=/PHP4.3.4 --with-freetype-dir=/usr/local --with-png --with-png-dir=/usr/local --with-imap=/install/imap-2002e --with-iconv=/usr/local/libiconv
 make
就出错了,做不下去了.
关于参数是不是太多,我也不懂,是以前一个安装人员打印出来留下的.
我的/目录下的确没有/install/imap-2002e 这个目录,我手工建立了后还是出错(出错息一样)
 我现在应该怎么做?
回复

使用道具 举报

发表于 2004-9-15 09:47:08 | 显示全部楼层
你的IMAP安装在那个目录了?是/install/imap-2002e吗?
回复

使用道具 举报

 楼主| 发表于 2004-9-15 11:47:55 | 显示全部楼层
3.imap-2002e
tar xvfz imap-2002e.tar.gz
cd imap-2002e
make lrh SSLTYPE=none
cd c-clinet
cp c-clinet.a libc-client.a
应该不是/install/imap-2002e这个目录,因为我装好后在根本就找不到这个目录,
我也不知道啊,就上面这个看不出来安装到哪了吗?
/下有个Install目录,里面放的是我从光盘上拷下的软件
/Install/PHP下有imap-2002e.tat.gz文件,
我就是这个目录下操作如上命令的,我也莫明其妙呢,怎么和window安装软件差别这么大啊,安装软件也不要你先安装到哪
回复

使用道具 举报

发表于 2004-9-15 12:49:13 | 显示全部楼层
呵呵,问题就出在这。PHP安装的参数必须对准该目录。
回复

使用道具 举报

 楼主| 发表于 2004-9-15 15:16:00 | 显示全部楼层
那现在应该怎么做?
是不是要重新安装imap?
怎么装imap才能装到指定的目录下?
回复

使用道具 举报

发表于 2004-9-15 15:22:49 | 显示全部楼层
你的IMAP是源码包吗?在/usr/local下展开自然就有安装目录吧。
回复

使用道具 举报

 楼主| 发表于 2004-9-16 08:41:39 | 显示全部楼层
老大果然厉害,PHP安装成功了!
顺便问一句,在Linux下安装软件,看哪才知道到底装到哪个目录下了?
还有怎么运行安装过的软件?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-7 16:37 , Processed in 0.061017 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表