请教pam_mysql安装出错。
zhxd
|
1#
zhxd 发表于 2008-10-14 17:48
请教pam_mysql安装出错。
小生在RedHat Linux AS4上安装pam_mysql的过程中,执行./configure的时候,出现了如下错误:
[root@VMLinux pam_mysql-0.7RC1]# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets $(MAKE)... yes checking for working aclocal-1.4... found checking for working autoconf... found checking for working automake-1.4... found checking for working autoheader... found checking for working makeinfo... found checking whether to enable maintainer-specific portions of Makefiles... no checking for bison... bison -y checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for a BSD-compatible install... /usr/bin/install -c checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for a sed that does not truncate output... /bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking how to recognise dependent libraries... pass_all checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking how to run the C++ preprocessor... g++ -E checking for g77... g77 checking whether we are using the GNU Fortran 77 compiler... yes checking whether g77 accepts -g... yes checking the maximum length of command line arguments... 32768 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for g77 option to produce PIC... -fPIC checking if g77 PIC flag -fPIC works... yes checking if g77 supports -c -o file.o... yes checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking for ANSI C header files... (cached) yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for unistd.h... (cached) yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking crypt.h usability... yes checking crypt.h presence... yes checking for crypt.h... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for size_t... yes checking for working volatile... yes checking for preprocessor stringizing operator... yes checking for pid_t... yes checking for working alloca.h... yes checking for alloca... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for working memcmp... yes checking ELOOP availability... yes checking EOVERFLOW availability... yes checking for socket in -lsocket... no checking for gethostbyname... yes checking for gethostbyname in -lnsl... no checking for inet_ntop... yes checking for getaddrinfo... yes checking for freeaddrinfo... yes checking for strcasecmp... yes checking for strdup... yes checking PF_INET6 availability... yes checking for struct sockaddr_in6... yes checking for struct in6_addr... yes checking for gethostbyname_r... yes checking if gethostbyname_r() is part of glibc... yes checking for char... yes checking size of char... 1 checking for short... yes checking size of short... 2 checking for int... yes checking size of int... 4 checking for long... yes checking size of long... 4 checking if /usr /usr/local /usr/mysql /opt/mysql is a mysql_config script... no checking mysql_config availability in /usr/bin... no checking mysqlclient availability in /usr/lib... no checking mysqlclient availability in /usr/lib/mysql... no checking mysql headers availability in /usr/include... no checking mysql headers availability in /usr/include/mysql... no checking mysql_config availability in /usr/local/bin... no checking mysqlclient availability in /usr/local/lib... no checking mysqlclient availability in /usr/local/lib/mysql... no checking mysql headers availability in /usr/local/include... no checking mysql headers availability in /usr/local/include/mysql... no checking mysql_config availability in /usr/mysql/bin... no checking mysqlclient availability in /usr/mysql/lib... no checking mysqlclient availability in /usr/mysql/lib/mysql... no checking mysql headers availability in /usr/mysql/include... no checking mysql headers availability in /usr/mysql/include/mysql... no checking mysql_config availability in /opt/mysql/bin... no checking mysqlclient availability in /opt/mysql/lib... no checking mysqlclient availability in /opt/mysql/lib/mysql... no checking mysql headers availability in /opt/mysql/include... no checking mysql headers availability in /opt/mysql/include/mysql... no configure: error: Cannot locate mysql client library. Please check your mysql installation. [root@VMLinux pam_mysql-0.7RC1]# 根据最后一句的提示,我推测可能是mysql client出现了问题。 说明:我之前把系统自带的mysql4卸载了,装的mysql5。 pam_mysql是在http://sourceforge.net下载的,0.7rc1版本的。 解压以后,该目录里包括以下文件: [root@VMLinux pam_mysql-0.7RC1]# ls -al total 1930 drwxrwxrwx 2 1000 1000 1024 Oct 13 20:12 . drwxr-xr-x 5 root root 1024 Oct 13 20:09 .. -rw-r--r-- 1 1000 1000 15099 Jan 9 2006 acinclude.m4 -rw-r--r-- 1 1000 1000 278175 Jan 9 2006 aclocal.m4 -rw-r--r-- 1 1000 1000 8648 Jan 9 2006 ChangeLog -rwxr-xr-x 1 1000 1000 43499 Aug 13 2005 config.guess -rw-r--r-- 1 1000 1000 7522 Jan 9 2006 config.h.in -rw-r--r-- 1 root root 49591 Oct 13 20:12 config.log -rwxr-xr-x 1 1000 1000 31743 Aug 13 2005 config.sub -rwxr-xr-x 1 1000 1000 932597 Jan 9 2006 configure -rw-r--r-- 1 1000 1000 4446 Jan 9 2006 configure.in -rw-r--r-- 1 1000 1000 18011 Jun 14 2005 COPYING -rw-r--r-- 1 1000 1000 1370 Mar 23 2005 CREDITS -rw-r--r-- 1 1000 1000 2817 Jun 13 2005 INSTALL -rwxr-xr-x 1 1000 1000 6406 Jan 9 2006 install-sh -rwxr-xr-x 1 root root 216900 Oct 13 20:12 libtool -rw-r--r-- 1 1000 1000 187039 Sep 25 2005 ltmain.sh -rw-r--r-- 1 1000 1000 316 Sep 20 2005 Makefile.am -rw-r--r-- 1 1000 1000 11577 Jan 9 2006 Makefile.in -rwxr-xr-x 1 1000 1000 6480 Jan 9 2006 missing -rwxr-xr-x 1 1000 1000 722 Jan 9 2006 mkinstalldirs -rw-r--r-- 1 1000 1000 7167 Jan 9 2006 NEWS -rw-r--r-- 1 1000 1000 97769 Jan 9 2006 pam_mysql.c -rw-r--r-- 1 1000 1000 892 Jan 9 2006 pam_mysql.spec -rw-r--r-- 1 1000 1000 908 Mar 23 2005 pam_mysql.spec.in -rw-r--r-- 1 1000 1000 4186 Jun 7 2005 pkg.m4 -rw-r--r-- 1 1000 1000 12213 Jan 9 2006 README -rw-r--r-- 1 1000 1000 10 Jan 9 2006 stamp-h.in 请问这个问题该如何解决? 请大家赐教。谢谢! |