[リストへもどる]
一括表示
タイトルSMTP-AUTHの導入について
記事No8271
投稿日: 2011/02/06(Sun) 02:26
投稿者もやもや
Postfixをソースからインストール後、SMTP-AUTHを導入しようと再コンパイルを行ったところ、makeで以下のようなエラーが出てきてしまいました。

#cd postfix-2.8.0
#make tidy
#make makefiles CCARGS="-DUSE_SASL_AUTH -I/usr/include" AUXLIBS="-L/usr/lib -lsasl"

#make ※ここで、以下のようなエラーです。

gcc -Wmissing-prototypes -Wformat -DUSE_SASL_AUTH -I/usr/include -g -O -I. -I../../include -DLINUX2 -o master master.o master_conf.o master_ent.o master_sig.o master_avail.o master_spawn.o master_service.o master_status.o master_listen.o master_vars.o master_wakeup.o master_watch.o master_flow.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib -lsasl -ldb -lnsl -lresolv
/usr/bin/ld: cannot find -lsasl
collect2: ld はステータス 1 で終了しました
make: *** [master] エラー 1
make: *** [update] エラー 1

どなたかアドバイス頂けないでしょうか?
よろしくお願い致します。

タイトルエラーをググレば・・・
記事No8272
投稿日: 2011/02/06(Sun) 06:26
投稿者おやじ
何でソースから? と思うのですが・・・

> Postfixをソースからインストール後、SMTP-AUTHを導入しようと再コンパイルを行ったところ、makeで以下のようなエラーが出てきてしまいました。
>
> #cd postfix-2.8.0
> #make tidy
> #make makefiles CCARGS="-DUSE_SASL_AUTH -I/usr/include" AUXLIBS="-L/usr/lib -lsasl"
>
> #make ※ここで、以下のようなエラーです。
>
> gcc -Wmissing-prototypes -Wformat -DUSE_SASL_AUTH -I/usr/include -g -O -I. -I../../include -DLINUX2 -o master master.o master_conf.o master_ent.o master_sig.o master_avail.o master_spawn.o master_service.o master_status.o master_listen.o master_vars.o master_wakeup.o master_watch.o master_flow.o ../../lib/libglobal.a ../../lib/libutil.a -L/usr/lib -lsasl -ldb -lnsl -lresolv
> /usr/bin/ld: cannot find -lsasl
> collect2: ld はステータス 1 で終了しました
> make: *** [master] エラー 1
> make: *** [update] エラー 1

/usr/bin/ld: cannot find -lsasl
なので、saslライブラリが入っていないからです。
こういうケースは、エラーをググレが大体答えが返ってきますよ。

タイトルRe: SMTP-AUTHの導入について
記事No8273
投稿日: 2011/02/06(Sun) 08:07
投稿者stranger
参照先http://ja.528p.com/
CentOS5.5 postfix-2.7.2の場合

CCARGS="-DHAS_PCRE -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl" \
AUXLIBS="-lpcre -lssl -lcrypto -ldl -lz -lsasl2"

PCRE (正規表現) pcure pcre-devel
TLS (ssl/tls) openssl openssl-devel
CYRUS_SASL (smtp-auth) cyrus-sasl cyrus-sasl-lib cyrus-sasl-plain cyrus-sasl-devel cyrus-sasl-md5