歡迎您光臨本站 註冊首頁

急!postfix安裝問題:/usr/bin/ld: cannot find -lsasl2

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

急!postfix安裝問題:/usr/bin/ld: cannot find -lsasl2

在RH linux5 編譯安裝postfix(要支持cyrus-sasl,mysql)時:
# find / -name  libsasl2.so.2
/usr/lib/libsasl2.so.2


# make makefiles CCARGS='-DUSE_SASL_AUTH -DHAS_MYSQL -I/usr/inclued/sasl -I/usr/include/mysql' AUXLIBS='-L/usr/lib -lsasl2   -L/usr/lib/mysql -l/mysqlclient -lz -lm'
# make

報錯:
...
/usr/bin/ld: cannot find -lsasl2
collect2: ld 返回 1
make: *** 錯誤 1
make: *** 錯誤 1


請達者指教。謝謝。

[ 本帖最後由 hongutay 於 2007-12-18 14:51 編輯 ]
《解決方案》

cyrus-sasl裝了嗎?
《解決方案》

回復2樓:cyrus-sasl已經安裝了

# rpm -aq | grep sasl
cyrus-sasl-2.1.22-4
cyrus-sasl-plain-2.1.22-4
cyrus-sasl-lib-2.1.22-4

[火星人 ] 急!postfix安裝問題:/usr/bin/ld: cannot find -lsasl2已經有941次圍觀

http://coctec.com/docs/service/show-post-33548.html