- 论坛徽章:
- 0
|
安装Courier authentication library的问题
安装Courier authentication library
# tar jxvf courier-authlib-0.59.3.tar.bz2
# cd courier-authlib-0.59.3
#./configure
--prefix=/usr/local/courier-authlib
--sysconfdir=/etc
--without-authpam
--without-authldap
--without-authpwd
--without-authshadow
--without-authvchkpw
--without-authpgsql
--with-authmysql
--with-mysql-libs=/usr/local/mysql/lib/mysql
--with-mysql-includes=/usr/local/mysql/inculde/mysql
--with-redhat
--with-authmysqlrc=/etc/authmysqlrc
--with-authdaemonrc=/etc/authdaemonrc
CFLAGS="-march=i686 -O2 -fexpensive-optimizations"
CXXFLAGS="-march=i686 -O2 -fexpensive-optimizations"
# make;make install
make all-recursive
make[1]: Entering directory `/usr/local/src/courier-authlib-0.59.3'
Making all in gdbmobj
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/gdbmobj'
make all-am
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/gdbmobj'
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/gdbmobj'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/gdbmobj'
Making all in md5
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/md5'
make all-am
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/md5'
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/md5'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/md5'
Making all in sha1
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/sha1'
make all-am
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/sha1'
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/sha1'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/sha1'
Making all in libhmac
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/libhmac'
make all-am
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/libhmac'
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/libhmac'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/libhmac'
Making all in numlib
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/numlib'
make all-am
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/numlib'
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/numlib'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/numlib'
Making all in makedat
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/makedat'
make all-am
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/makedat'
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/makedat'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/makedat'
Making all in userdb
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/userdb'
make all-am
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/userdb'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/userdb'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/userdb'
Making all in rfc822
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/rfc822'
make all-am
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/rfc822'
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/rfc822'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/rfc822'
Making all in random128
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/random128'
make all-am
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/random128'
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/random128'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/random128'
Making all in liblock
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/liblock'
make all-am
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/liblock'
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/liblock'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/liblock'
Making all in liblog
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/liblog'
make all-am
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/liblog'
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/liblog'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/liblog'
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3'
Compiling authmysql.c
In file included from authmysql.c:18:
authmysql.h:8:19: mysql.h: No such file or directory
authmysql.h:9:20: errmsg.h: No such file or directory
make[2]: *** [authmysql.lo] Error 1
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/courier-authlib-0.59.3'
make: *** [all] Error 2
make install-recursive
make[1]: Entering directory `/usr/local/src/courier-authlib-0.59.3'
Making install in gdbmobj
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/gdbmobj'
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/gdbmobj'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/gdbmobj'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/gdbmobj'
Making install in md5
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/md5'
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/md5'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/md5'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/md5'
Making install in sha1
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/sha1'
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/sha1'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/sha1'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/sha1'
Making install in libhmac
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/libhmac'
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/libhmac'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/libhmac'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/libhmac'
Making install in numlib
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/numlib'
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/numlib'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/numlib'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/numlib'
Making install in makedat
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/makedat'
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/makedat'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/makedat'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/makedat'
Making install in userdb
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/userdb'
make install-am
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/userdb'
make[4]: Entering directory `/usr/local/src/courier-authlib-0.59.3/userdb'
make[4]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/courier-authlib/man/man8" || mkdir -p -- "/usr/local/courier-authlib/man/man8"
/usr/bin/install -c -m 644 './makeuserdb.8' '/usr/local/courier-authlib/man/man8/makeuserdb.8'
/usr/bin/install -c -m 644 './userdb.8' '/usr/local/courier-authlib/man/man8/userdb.8'
/usr/bin/install -c -m 644 './userdbpw.8' '/usr/local/courier-authlib/man/man8/userdbpw.8'
make[4]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/userdb'
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/userdb'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/userdb'
Making install in rfc822
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/rfc822'
make install-am
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/rfc822'
make[4]: Entering directory `/usr/local/src/courier-authlib-0.59.3/rfc822'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/rfc822'
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/rfc822'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/rfc822'
Making install in random128
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/random128'
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/random128'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/random128'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/random128'
Making install in liblock
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/liblock'
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/liblock'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/liblock'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/liblock'
Making install in liblog
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3/liblog'
make install-am
make[3]: Entering directory `/usr/local/src/courier-authlib-0.59.3/liblog'
make[4]: Entering directory `/usr/local/src/courier-authlib-0.59.3/liblog'
test -z "/usr/local/courier-authlib/sbin" || mkdir -p -- "/usr/local/courier-authlib/sbin"
/bin/sh ./libtool --mode=install /usr/bin/install -c 'courierlogger' '/usr/local/courier-authlib/sbin/courierlogger'
/usr/bin/install -c courierlogger /usr/local/courier-authlib/sbin/courierlogger
test -z "/usr/local/courier-authlib/man/man1" || mkdir -p -- "/usr/local/courier-authlib/man/man1"
/usr/bin/install -c -m 644 './courierlogger.1' '/usr/local/courier-authlib/man/man1/courierlogger.1'
make[4]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/liblog'
make[3]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/liblog'
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3/liblog'
make[2]: Entering directory `/usr/local/src/courier-authlib-0.59.3'
Compiling authmysql.c
In file included from authmysql.c:18:
authmysql.h:8:19: mysql.h: No such file or directory
authmysql.h:9:20: errmsg.h: No such file or directory
make[2]: *** [authmysql.lo] Error 1
make[2]: Leaving directory `/usr/local/src/courier-authlib-0.59.3'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/courier-authlib-0.59.3'
make: *** [install] Error 2
# chmod 755 /usr/local/courier-authlib/var/spool/authdaemon
chmod: cannot access `/usr/local/courier-authlib/var/spool/authdaemon': No such file or directory
# tail /var/log/maillog
Oct 18 20:20:52 zone postfix/cleanup[19887]: 02DCC8C13B: message-id=<20071019002033.02DCC8C13B@mail.zhang.org>
Oct 18 20:20:52 zone postfix/qmgr[19882]: 02DCC8C13B: from=<root@zhang.org>, size=353, nrcpt=1 (queue active)
Oct 18 20:20:52 zone postfix/smtp[19888]: 02DCC8C13B: to=<redhat@zhang.org>, relay=none, delay=31, delays=30/0.07/0.01/0, dsn=5.4.6, status=bounced (mail for zhang.org loops back to myself)
Oct 18 20:20:52 zone postfix/cleanup[19887]: 60D858C13F: message-id=<20071019002052.60D858C13F@mail.zhang.org>
Oct 18 20:20:52 zone postfix/qmgr[19882]: 60D858C13F: from=<>, size=2079, nrcpt=1 (queue active)
Oct 18 20:20:52 zone postfix/bounce[19890]: 02DCC8C13B: sender non-delivery notification: 60D858C13F
Oct 18 20:20:52 zone postfix/qmgr[19882]: 02DCC8C13B: removed
Oct 18 20:20:52 zone postfix/smtp[19888]: 60D858C13F: to=<root@zhang.org>, relay=none, delay=0.04, delays=0.03/0/0/0, dsn=5.4.6, status=bounced (mail for zhang.org loops back to myself)
Oct 18 20:20:52 zone postfix/qmgr[19882]: 60D858C13F: removed
Oct 18 20:20:53 zone postfix/smtpd[19884]: disconnect from zone[127.0.0.1]
# tail /var/log/messages
Oct 18 20:26:03 zone sshd(pam_unix)[19958]: session opened for user root by (uid=0)
Oct 18 21:04:23 zone su(pam_unix)[15139]: session closed for user root
Oct 18 21:04:23 zone su(pam_unix)[15110]: session closed for user redhat
Oct 18 21:04:23 zone su(pam_unix)[14841]: session closed for user root
Oct 18 21:04:23 zone su(pam_unix)[14822]: session closed for user root
Oct 18 21:04:23 zone su(pam_unix)[14794]: session closed for user redhat
Oct 18 21:04:23 zone su(pam_unix)[14748]: session closed for user root
Oct 18 21:04:24 zone su(pam_unix)[14731]: session closed for user root
Oct 18 21:04:24 zone su(pam_unix)[14711]: session closed for user root
Oct 18 21:04:24 zone su(pam_unix)[14682]: session closed for user redhat
是不是./configure时参数错了,还是……?可我都是按照LZ的文章做的啊,不应该啊!  |
|