qpopperのconfigureでエラーが発生する理由と解決方法

このQ&Aのポイント
  • RHEL4でサーバの設定を行っている際に、qpopper4.0.8を導入するためにconfigureを行った際にエラーが発生します。
  • エラー内容は、「Can't use PAM: can't find libpam」というもので、libディレクトリにはlibpamが導入されているにも関わらず、configureが読み込まないようです。
  • 上記のエラーを解決するためには、libpamのパスをconfigureに指定するか、libpamのシンボリックリンクを作成する必要があります。
回答を見る
  • ベストアンサー

qpopperのconfigureに関する質問

いつもこちらでお世話になっております。 RHEL4でサーバの設定を行っているのですが、qpopper4.0.8を導入するにあたり、下記のオプションでconfigureを行うとエラーが発生してしまいます。 ./configure \ --prefix=/usr \ --enable-bulletins=/var/spool/mail/bulletins \ --enable-specialauth \ --with-pam=pop3 \ --with-popuid=pop \ --enable-apop=/etc/pop.auth \ --enable-drac \ --enable-shy エラー内容は以下のとおりです。 Can't use PAM: can't find libpam libディレクトリにlibpam導入済みなのですが、qpopperのconfigureがどうやら読み込んでくれないみたいです。 どのようにしたら上記エラーが解決するでしょうか? ご回答の程、宜しくお願い致します。

質問者が選んだベストアンサー

  • ベストアンサー
  • t-okura
  • ベストアンサー率75% (253/335)
回答No.2

> pam-develは導入済みです ということでしたら、drac のライブラリが入っていないのでは ないでしょうか。 --enable-drac を --disable-drac に変えると configure が 通りませんか。 --enable-drac が指定されていると pam ライブラリの有無の チェックのさいに -ldrac が指定されてしまって、pam と drac の どちらのライブラリがなくても、 Can't use PAM: can't find libpam となってしまうようです。

yuukitnk
質問者

お礼

大変参考になりました。 ありがとうございます。

その他の回答 (1)

  • t-okura
  • ベストアンサー率75% (253/335)
回答No.1

pam-devel の /usr/lib/libpam.so が必要なので、pam-devel を インストールしてください。

yuukitnk
質問者

お礼

pam-develは導入済みです

関連するQ&A

  • qpopperインストール方法

    mailサーバを作りたいのですがqpopper4.0.8のインストールでconfigureをすると sendmailが見つからないと下記のエラーがでてしまいます。 checking for sendmail program... ERROR: The sendmail program cannot be located configureは ./configure --enable-apop=/etc/pop.auth --with-popuid=pop --enable-drac でしようとしています。 configureスクリプトを見るとif test -f ${sbindir}/sendmailでsendmailをチェックしているのでこれかとおもうのですが これをコメントにして他に影響がでないか少し心配です。 どうしたら回避できるのでしょうか? OSはLinux RedHut9 SMTPサーバーはqmail qmailの設定でsendmailの設定は退避させています。 POP Before SMTPはDRACを導入しています。 DRACまでは動作確認済みです。 よろしくお願いします。

  • php-5.3.3のconfigureでエラー

    RHEL6にPHP5.3.3をソースインストール(訳あってrpmを使えない)しようとすると 下記のエラーが出て困ってます。 configure: error: DBA: Could not find necessary header file(s). configureは下記を指定してます。RHEL5.5ではOKだったのに6では通らない。 インストールされているパッケージが原因かと思っているのですが、情報が 見当たらず前に進めません。 同じ状況になった方助言をお願いします。 OS:Red Hat Enterprise Linux Server release 6.0 (Santiago) PHP:php-5.3.3.tar.gz configure:./configure \ --enable-track-vars \ --enable-trans-sid \ --with-mysql=/usr/local/mysql \ --with-gdbm \ --disable-debug --with-apxs2=/usr/local/apache/bin/apxs \ --enable-mbstring \ --enable-mbstr-enc-trans \ --with-mcrypt=/usr/local/lib \ --with-ldap=/usr ※Apache2、mysql、mcryptは正常にインストールされてます。 宜しくお願いします。

  • Qpopperをインストールできません

    CentOS6.0にqpopper4.0.13をインストールしようとしたのですが、 makeにて下記のようなエラーが出力されます。 どなたかご存知でしたら、ご教授頂けないでしょうか? ---------------- popper.c: In function ‘qpopper’: popper.c:153: error: conflicting types for ‘getline’ /usr/include/stdio.h:673: note: previous declaration of ‘getline’ was here popper.c: In function ‘tgetline’: popper.c:617: 警告: passing argument 1 of ‘getline’ from incompatible pointer type /usr/include/stdio.h:673: note: expected ‘char ** __restrict__’ but argument is of type ‘char *’ popper.c:617: 警告: passing argument 2 of ‘getline’ makes pointer from integer without a cast /usr/include/stdio.h:673: note: expected ‘size_t * __restrict__’ but argument is of type ‘int’ popper.c:617: 警告: passing argument 3 of ‘getline’ from incompatible pointer type /usr/include/stdio.h:673: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘struct POP *’ popper.c:617: 警告: assignment makes pointer from integer without a cast make[1]: *** [popper.o] エラー 1 make[1]: ディレクトリ `/usr/local/src/qpopper4.0.13/popper' から出ます make: *** [popper_server] エラー 2 ------------------- ここにいたるまでの手順です↓ /usr/sbin/useradd -s /dev/null -d /dev/null pop cd /usr/local/src/ tar -xzf qpopper4.0.13.tar.gz cd qpopper4.0.13 ./configure --enable-apop=/etc/pop.auth =--with-popuid=pop make

  • PHPのconfigureについて

    PHP5.2.6をインストールしようとしているのですが、configureコマンドの所で躓いています 実行しているconfigureオプションは以下の通りです。 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-zlib --enable-bcmath --enable-mbregex --enable-mbstring とすると configure: error: libpng.(a|so) not found. となります。 yum install libpngとすると Package 2:libpng-1.2.10-7.1.el5_3.2.i386 already installed and latest version となるので最新版のようです。 このconfigure: error: libpng.(a|so) not found.を克服する術を教えて頂けると助かります。 何卒よろしくお願いします。

    • ベストアンサー
    • PHP
  • PHPのconfigureのオプションにつきまして

    日頃WindowsメインでLinuxをあまり使わない者です。 今回、とある理由でCentOS5.5にPHP5.2とMySQL4.0の環境を作る必要が出てきました。それで、それらをソースからコンパイルしてインストールしてみたのですが、PHPのmysql_connect()で以下のようなエラーが出て、原因がわからず困っています。 Can't connect to local MySQL server through socket '/tmp/mysql.sock' (13) PHPもMySQLも単体では正常に動いているようです。データベースも作れました。 それで色々調べていたのですが、/tmp/mysql.sockのアクセス権限を777にしたり、 PHPとMySQLが/tmp/mysql.sockを介する設定になっているかを確認しましたが、いずれも問題無さそうです。 それで、phpinfo()の結果をさくらサーバーのそれと比べてみたところ、 Configure Commandのところが全然違うことがわかりました。 今回構築した環境では、 './configure' '--with-apxs2=/usr/sbin/apxs' '--with-mysql=/usr/local/mysql' ですが、 さくらサーバーは、 './configure' '--prefix=/usr/local/php/5.2' '--with-config-file-path=${prefix}/etc' '--with-config-file-scan-dir=${prefix}/etc/conf.d' '--enable-force-cgi-redirect' '--with-openssl=/usr/local/ssl' '--with-zlib=/usr' '--with-curl' '--enable-exif' '--with-pcre-dir=/usr/local' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-ttf' '--with-freetype-dir=/usr/local' '--with-gettext=/usr/local' '--with-gmp=/usr/local' '--with-iconv=/usr/local' '--enable-mbstring' '--with-mcrypt' '--with-mysql=/usr/local' '--with-mysqli=/usr/local/bin/mysql_config' '--with-pdo-mysql=/usr/local' '--with-snmp=/usr/local' '--enable-soap' '--with-xsl=/usr/local' '--enable-zip' と非常に多いです。 これらは関係あるでしょうか。初歩的な質問で恐縮ですが、ご存知の方がいらっしゃいましたら、ご教示いただけましたら助かります。 よろしくお願いします。

    • ベストアンサー
    • PHP
  • SPECからRPMをつくる際に、Buildroot以外にインストールされるのは正しい動作?

    Vine LinuxでQpopperのSPECからMaildirをサポートするパッチをあてたrpmパッケージを作りたいのですが、完成したrpmパッケージを"rpm -qlp"コマンドでみると、docファイルしか入ってないようです。パッケージを作る際のログを見ると、Buildroot以下ではなく、/usr/sbin/とか、/usr/share/man 以下に直接書き込んでいました。 私は、Buildroot以下に仮想インストールしたものをrpmパッケージに取り込むようなイメージをもっているのがこれは間違っているのでしょうか? SPECファイルは以下のとおりです。文字数制限の関係で省略あり。 ------------------------------------ Summary: POP3 Server.(APOP, SSL, Maildir Support version) Name: qpopper Version: 4.0.9 Release: asm1 Source: %{name}-%{version}.tar.gz Patch: %{name}-mysql-0.15-test.patch License: BSD Group: Applications/Services Packager: test Buildroot: %{_tmppath}/%{name}-root %description (省略) %prep %{__rm} -rf $RPM_BUILD_ROOT %setup -n %{name}%{version} %patch -p1 %build %configure \ --prefix=/usr/local \ --without-pam \ --enable-standalone \ --enable-maildrop-type=maildir \ --enable-home-dir-mail=Maildir \ --enable-apop=/etc/pop.auth \ --with-popuid=pop \ --enable-specialauth \ --with-openssl=/usr/share/ssl \ --enable-timing %{__make} %install %{__make} prefix=${RPM_BUILD_ROOT}/usr/local install %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README %doc README.MAILDIR %doc doc/ %{_sbindir}/popper %{_sbindir}/popauth %{_mandir}/man8/popper.8 %{_mandir}/man8/popauth.8 %changelog * Fri Dec 22 2006 test <home@home> 4.0.9-1 - first release

  • qpopper(POP-3サービス)について

    pop3サービスを立ち上げようと思って、 qpopperを入れたのですが、 自分自身(localhost)は接続できるのですが、 その他のクライアントから一切接続できない状況で困っています。 やったことを書くと tar zxvf qpopper4.0.4.tar.gz で解凍 ./configure --enable-specialauth  を実行 その後にmake そして、出来上がったpopperディレクトリを /usr/local/sbin の中に丸ごとcpでコピーしました。 その後に、/etc/xinetd.d/popperを新規作成し、 service pop3 { socket_type = stream protocol = tcp wait = no user = root server = /usr/local/sbin/popper/popper server_args = -s disable = no log_on_success += USERID log_on_failure += USERID } と加え、xinedを再起動しました。 この時点で、telnetでlinuxマシンに繋ぎ、 localhost 110を叩いてやると、 ちゃんとqpopperが起動しているのが分かるんですが、 他のマシンから(LAN内の)  telnet (linuxマシンの内部IP) 110 としても、サーバーに接続できませんでした。 とエラーが帰ってきます。アウトルックやポストペットでも 接続できません。 自分自身からのみしか接続できないようです。 どうしたら、他のクライアントからも ちゃんと接続できるようになるでしょうか? 困っています。教えて下さい。 (Red Hat 8.0 , qpopper4.0.4)

  • PHPのconfigureでmysqlエラーが

    CentOS 5 x86_64上でapache+php+mysqlのサーバ構築中ですが、どうもうまくいきません。 apacheとphpでconfigureのオプションを付けてインストールしたいので、rpm -eでhttpdとphpをアンインストールしたうえで、apacheとphpをmake installしようとしました。 apacheはうまくinstallできたのですが、phpはconfigureでエラーが出てしまいます。 以前Cent OS 5.2(32bit)でやった時は問題なかったのですが・・・ ↓configure時のエラーメッセージ -------------------- checking for mSQL support... no checking for MSSQL support via FreeTDS... no checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no configure: error: mysql configure failed. Please check config.log for more information. -------------------- ↓config.logのエラーメッセージ -------------------- configure:60440: checking for mysql_error in -lmysqlclient configure:60459: gcc -o conftest -I/usr/include -g -O2 -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql -L/usr/lib -Wl,-rpath,/usr/kerberos/lib64 -L/usr/kerberos/lib64 -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient -lz -lfreetype -lpng -lz -ljpeg -lcurl -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lssl -lcrypto -ldl -lz -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz -lxml2 -lz -lm 1>&5 /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when searching for -lmysqlclient /usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.a when searching for -lmysqlclient /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status configure: failed program was: #line 60448 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mysql_error(); -------------------- ↓apacheのconfigure ------------------------- ./configure --enable-layout=Apache --disable-autoindex --disable-status --disable-userdir --enable-modules=so --enable-mods-shared=max --enable-ssl --with-ssl=/usr/share/ssl --enable-rewrite=shared --enable-ext-filter ------------------------- ↓phpのconfigure ------------------------- ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-mbstring --enable-mbregex --enable-gd-native-ttf --with-gd --with-ttf --with-jpeg-dir --with-freetype-dir --with-png-dir --with-zlib --with-curl --with-openssl --with-mysql ------------------------- バージョンは apache:2.2.11 php:5.2.10, 5.3.0の両方で試しましたが結果は同じ mysql-5.0.45-7.el5.x86_64 mysql-devel-5.0.45-7.el5.x86_64 です。 どなたかご教授いただけますと助かります・・・

  • wgetインストールconfigure:error

    ○質問の主旨 Linux(CentOS6.5)のサーバーにおいて、 ファイルをダウンロードするするための、 wgetのバージョンを、 下記のコマンドで1.12から 1.16にアップデートさせたいと考えています。 $sudo wget http://ftp.gnu.org/gnu/wget/wget-1.16.tar.gz $sudo tar zxfv wget-1.16.tar.gz $cd wget-1.16 $sudo chmod +x ./configure $sudo ./configure $sudo make $sudo make install ところが、 $sudo ./configureのところで、 configure: error: --with-ssl=gnutls was given, but GNUTLS is not available. というエラーが出ます。 このエラーを出さずに、後に続く make,make installコマンドを実行するためには どうすれば良いでしょうか? ○質問の補足 $sudo ./configure以外にも、次の2つのコマンドを実行しましたが、 やはりエラーが出ます。 1. $ sudo ./configure --with-ssl=openssl configure: error: --with-ssl=gnutls was given, but GNUTLS is not available. 2. $ sudo ./configure --with-ssl=openssl --with-libssl-prefix=/usr/local/ssl configure: error: --with-ssl=openssl was given, but SSL is not available. ちなみに、 opensslとgnultsのインストール状況は以下の通りです。 $ rpm -qa | grep openssl openssl-1.0.1e-16.el6_5.15.x86_64 $ rpm -qa | grep gnutls gnutls-2.8.5-14.el6_5.x86_64 以上、よろしくお願いします。

  • pop3サーバーについて教えてください。

    sendmailのインストールされているLINUX9(REDHAT) で、popサーバーを使いたくってqpopperをインストールしたのですが、telnetでテストするとuserはOKになるのですが、passが通りません。 -ERR BAD login となります。 どこがいけないのでしょうか? どなたか教えていただけませんか? ./configure --enable-specialauth でコンパイルしてます。