- 論壇徽章:
- 0
|
參考文檔:
主要根據(jù)
[
http://www.72891.cn/viewthread.php?tid=982988&pid=9431701&page=1&extra=#pid9431701
]網(wǎng)站, 由于cyrus-sasl與courier-auth需要重裝,也參考到
http://www.netec.com/forum/redirect.php?tid=155&goto=lastpost
的幾項(xiàng)源包安裝編譯.
注意事項(xiàng):
1/在安裝postfix時,cyrus-sasl-lib可以不用,但不能不裝,否則安裝postfix時遇到"bin/postconf: error while loading shared libraries: libsasl2.so.2" 之類的錯誤。
2/pam-devel需要安裝,否則會提示"auth(default): Unknown passdb driver 'pam' (typo, or Dovecot was built without support for it? Check with dovecot child "這類錯誤
幾個安裝包的參數(shù)
1、cyrus-sasl
[root@hostname path]# ./configure --enable-plain --enable-cram --enable-digest --enable-login --enable-sql --disable-anon --disable-ntlm --disable-gssapi --disable-krb4 --disable-otp --disable-srp --disable-srp-setpass --with-mysql=/usr/local/mysql \
--with-authdaemond=/usr/local/courier-authlib/var/spool/authdaemon/socke
[root@hostname path]# make&&make install
2、postfix
[root@hostname postfix-2.5.5]# make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include -DUSE_TLS -DUSE_CYRUS_SASL -DUSE_SASL_AUTH -I/usr/local/include/sasl' 'AUXLIBS=-L/usr/local/mysql/lib -lmysqlclient -lz -lm -L/usr/lib -lssl -lcrypto -lsasl2'
[root@hostname postfix-2.5.5]#make
[root@hostname postfix-2.5.5]# make install
3、courier-auth
[root@hostname courier-auth-0.5.8]#./configure --prefix=/usr/local/courier-authlib --without-authpam --without-authldap --without-authpwd --without-authshadow --without-authvchkpw --without-authpgsql --with-authmysql --with-mysql-libs=/usr/local/mysql/lib \
--with-mysql-includes=/usr/local/mysql/include --with-redhat \
--with-authmysqlrc=/usr/local/courier-authlib/etc/authmysqlrc \
--with-authdaemonrc=/usr/local/courier-authlib/etc/authdaemonrc [root@hostname courier-auth-0.5.8]# make&&make install
TIPS:
由于使用64bit的系統(tǒng),因此有些包是i386與x86_64的都安裝了,在卸載包的時候出現(xiàn)
error: "pkg-name" specifies multiple packages的錯誤,
如果想強(qiáng)行卸載多個安裝包
rpm -e --allmatches pkg_name --nodeps
本文來自ChinaUnix博客,如果查看原文請點(diǎn):http://blog.chinaunix.net/u/1808/showart_1287088.html |
|