安裝Courier authentication library的問題
參考文章: http://bbs.chinaunix.net/viewthread.php?tid=987344
marion的 RHEL4上安裝基於postfix的全功能郵件伺服器(全部使用目前最新源碼包構建)
# 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/include/mysql
--with-redhat
--with-authmysqlrc=/etc/authmysqlrc
--with-authdaemonrc=/etc/authdaemonrc
CFLAGS="-march=i686 -O2 -fexpensive-optimizations"
CXXFLAGS="-march=i686 -O2 -fexpensive-optimizations"
我試過32位的機子可以,但是我現在做的是一台64位的伺服器,centos5.3,這裡這一步怎麼寫呢,去掉行不行呢
《解決方案》
回復 #1 gilet 的帖子
可以不用寫
《解決方案》
回復 #2 scyzxp 的帖子
這個是編譯支持那個功能呢,去掉會不會對一些功能有影響???
《解決方案》
回復 #3 gilet 的帖子
不會。
《解決方案》
原帖由 gilet 於 2009-9-18 10:22 發表 http://bbs2.chinaunix.net/images/common/back.gif
參考文章: http://bbs.chinaunix.net/viewthread.php?tid=987344
marion的 RHEL4上安裝基於postfix的全功能郵件伺服器(全部使用目前最新源碼包構建)
# tar jxvf courier-authlib-0.59.3.tar.bz2
# cd c ...
注意一些libin的目錄用lib64替換
《解決方案》
出錯:
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
解決:
答案1:configure 過程中遇到C compiler cannot create executables的原因:
gcc編譯環境沒用配好, 直接apt-get install gcc libc6-dev就可以解決
試了一下,不行
答案2:
在64位的機器上編譯軟體時,常常出現如下這個錯
checking for C compiler default output file name… configure: error: C compiler cannot create executables
其實不是C編譯器有問題,是因為env中一個變數設置過了,所以認為不對,報上面的錯.解決的方法很簡單
CFLAGS=""
這樣給CFLAGS變數 給個空值就行了.
可以
[ 本帖最後由 gilet 於 2009-9-18 14:34 編輯 ]
《解決方案》
錯誤:
configure: error: Cannot find either the gdbm or the db library.
答案:
yum install gdbm gdbm-devel
解決
《解決方案》
回復 #7 gilet 的帖子
支持。多多的貼一些解決辦法。到時給你加精
《解決方案》
原帖由 scyzxp 於 2009-9-18 15:22 發表 http://bbs2.chinaunix.net/images/common/back.gif
支持。多多的貼一些解決辦法。到時給你加精
我上個貼看錯了
沒注意看你highlight的部分
《解決方案》
#rpm -ivh rrdtool-1.3.8-1.fc11.x86_64.rpm
warning: rrdtool-1.3.8-1.fc11.x86_64.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID d22e77f2
error: Failed dependencies:
dejavu-fonts-lgc-compat is needed by rrdtool-1.3.8-1.fc11.x86_64
rpmlib(FileDigests) <= 4.6.0-1 is needed by rrdtool-1.3.8-1.fc11.x86_64
# rpm -ivh rrdtool-1.3.4-2.fc10.x86_64.rpm
warning: rrdtool-1.3.4-2.fc10.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 4ebfc273
Preparing... ###########################################
1:rrdtool ###########################################
但是下面藍色的字又安裝不上去了
# rpm -ivh rrdtool-perl-1.3.4-2.fc10.x86_64.rpm
warning: rrdtool-perl-1.3.4-2.fc10.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 4ebfc273
error: Failed dependencies:
perl(:MODULE_COMPAT_5.10.0) is needed by rrdtool-perl-1.3.4-2.fc10.x86_64
# rpm -ivh rrdtool-perl-1.2.27-3.el4.x86_64.rpm
warning: rrdtool-perl-1.2.27-3.el4.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
error: Failed dependencies:
librrd.so.2()(64bit) is needed by rrdtool-perl-1.2.27-3.el4.x86_64
rrdtool = 1.2.27-3.el4 is needed by rrdtool-perl-1.2.27-3.el4.x86_64
後來:
# rpm -ivh rrdtool-1.2.27-3.el4.x86_64.rpm
warning: rrdtool-1.2.27-3.el4.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing... ###########################################
1:rrdtool ###########################################
# rpm -ivh rrdtool-perl-1.2.27-3.el4.x86_64.rpm
warning: rrdtool-perl-1.2.27-3.el4.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing... ###########################################
1:rrdtool-perl ###########################################
http://bbs.chinaunix.net/attachments/month_0709/20070918_4d6802d6c224576b8206axTV5t0oELcI.jpg
日誌分析的圖片終於出來了:em03: :em03: 好像這個也是要配對的
[ 本帖最後由 gilet 於 2009-9-19 15:01 編輯 ]