apache2.0.40の./configer …でエラー

このQ&Aのポイント
  • redhat9にhttpd-2.0.40を./configure --enable-sslしたところ、途中で「requires OpenSSL 0.9.6e or higher」とエラーメッセージが表示されて先に進めなくなりました。
  • OpenSSLは、上位の「openssl-0.9.7a-2」がインストールされておりました。
  • 解決策やアドバイスをお願いします。
回答を見る
  • ベストアンサー

apache2.0.40の./configer …でエラー

こんばんは。 現在、redhat9にhttpd-2.0.40を./configure --enable-sslしたと ころ、途中で「requires OpenSSL 0.9.6e or higher」とエラー メッセージが表示されて先に進めなくなってしまいました。 しかし、OpenSSLは、上位の「openssl-0.9.7a-2」がインストールさ れておりました。 httpをあとからインストールするのは、ディレクトリ構成をOSイン ストール時と異なる環境が作業する上での要件にあるためです。 解決策やアドバイスをお願いします。 ~環境~ redhat9 カーネル:2.4.20-8 (雑誌付録版) インストールでは、WWW(httpd_2.0.40)は、除外しました。 ~処理経過~ ○./configure --enable-sslを実行にあたり #tar zxvf httpd-2.0.40.tar.gz #cd httpd-2.0.40 #./configure --enable-ssl :(処理中) checking whether to enable mod_proxy_http... no checking whether to enable mod_ssl... checking dependencies checking for SSL/TLS toolkit base... configure: error: requires OpenSSL 0.9.6e or higher ←エラーメッセージ # ○opensslのインストール確認 #rpm -qa | grep openssl openssl-0.9.7a-2 openssl-devel-0.9.7a-2 #

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

  • ベストアンサー
回答No.1

一般的な対応としては ./configure --help | grep -i ssl でssl関連オプション指定を確認 ※ 見つからない場合にはgrepで絞るのを止めて全て確認しましょう。 ※ 『ディレクトリ構成をOSインストール時と異なる環境』としている場合には(configureが)OS導入時のopenssl導入場所をチェックし見つけられなかったため現在入っている0.9.7a-2を認識できずにopensslが導入されてない状態と評価した可能性が高いです。 opensslの導入場所を指示するconfigure optionが見つかると思いますので適切な位置をオプション指定してやればその部分は認識できるはずです。 ※ 他の構成要素に付いても同様の手段が必要となるかも知れません。

petit-pixy
質問者

お礼

ご回答ありがとうございます。 >./configure --help | grep -i ssl でssl関連オプション指定を確認 無事、確認できました。 >※『ディレクトリ構成をOSインストール時と異なる環境』としている場合… さらに的確なアドバイスまでして頂きまして、勉強にもなりました。 >※他の構成要素に付いても同様の手段が必要となるかも知れません。 その後のmakeでは、エラー(インクルードファイルがない為)が発生しました。 アドバイスを元に調べてみると、「OSインストール時と異なる」と同様な事が記載され ており無事解決に至りました。 色々ありがとうございました。

関連するQ&A

  • Apache2.0がX509_freeというエラーでSSLの起動ができない。

    環境は RedHat7.3 httpd-2.0.54.tar.gz openssl-0.9.7g.tar.tar sslはsharedで入れたい 主にhttp://solaris.ddo.jp/apache-ssl.htmlを参照 このサイトでmv cacert.pem cacert.pem.orgはcp cacert.pem.org cacert.pemにした configureは変更(文字数オーバで省略) そしてstartsslで下記エラーです ./apachectl startssl Syntax error on line 251 of /usr/local/apachetest/conf/httpd.conf: Cannot load /usr/local/apachetest/modules/mod_ssl.so into server: /usr/local/apachetest/modules/mod_ssl.so: undefined symbol: X509_free ./apachectl -tはSyntax OK httpd.confの251行目は LoadModule ssl_module modules/mod_ssl.so mod_ssl.soのlddはOKと思います configureから4回やり直したがだめ 最後のインストール時の: ./configure \ --enable-mods-shared=all \ --enable-so \ --prefix=/usr/local/apachetest \ --with-ssl=/usr/local/ssl 1回目からprefixは変更してません。変更ファイルは残るので鍵の再作成はしていません。 sslでない起動はできてます。 どなたか現象の原因や解決策に心当たりがありましたら投稿願います

  • Apache1.3にmod_sslを追加インストール

    こんにちは。 まず、Apacheをインストールします。 tar zxvf apache1.3.33.tar.gz cd apache1.3.33 ./configure --enable-shared=max make make install このあとに、mod_sslを追加しようと思いインストールします。 tar zxvf mod_ssl-2.8.24-1.3.33.tar.gz cd mod_ssl-2.8.24-1.3.33 ./configure --with-apache=../apache1.3.33 --enable-ssl=/usr/local --enable-shared=max cd ../apache1.3.33 make make certificate make install そうすると下記のエラーになってしまいます。 [root@localhost apache_1.3.33]# /usr/local/apache/bin/apachectl startssl [Sat Sep 10 23:28:58 2005] [warn] Loaded DSO libexec/mod_mmap_static.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI) ※途中削除 Syntax error on line 226 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/mod_rewrite.so into server: /usr/local/apache/libexec/mod_rewrite.so: undefined symbol: dbm_fetch /usr/local/apache/bin/apachectl startssl: httpd could not be started Apacheが入ってない状態で、mod_sslをインストールすれば上手くいくのですが。 どうしてこういうエラーが出てしまうのでしょうか? よろしくお願いします。

  • Fedora Core6にApacheをインストールしたい

    Fedora Core6を導入しています。 これにApacheをインストールしたいのですが、以下のように実行するとエラーが出てインストールできません。 # ./configure \ > --enable-mods-shared=all \ > --enable-proxy=shared \ > --disable-ipv6 \ > --prefix=/usr/local/src/origdev/opt/apache2 エラーメッセージとして checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failures このように出ます。 この状態で#makeをして#make installをしても失敗します。 解決策はありませんか?

  • Apache OpenSSL PHP でエラー

    CentOS 5.1にOpenSSL-0.9.8g、httpd-2.0.61、Postgres8.1.10、php-5.2.5でWEBサーバを作っているのですが、不思議なエラーが出てうまくいきません。 現象としては以下の通りです。 htdocs_http = httpコンテンツ htdocs = httpsコンテンツ apacheをstartsslで起動して、htdocsにphpinfoを 出力するプログラムを作成した後アクセスすると コンテンツのTOPに Keep-Alive: timeout=15, max=98 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html ae03 などのメッセージが出力されます。 Apacheとphpを何度も再インストールしたのですが解決できません。 誰か似たような現象を起こった方や、 解決策を知っている方教えていただけませんか。 インストールした順は以下の通りです。 1. OpenSSL 2. httpd 3. Postgres 4. php インストールしたオプション 1. OpenSSL # ./config -fPIC shared 参考にしたサイト http://uguisu.skr.jp/Windows/apache2.html 2. Apache # ./configure \ # --enable-so --enable-ssl --with-ssl=/usr/local/ssl 3. Postgres # ./configure のみのオプションなし。 4. php # ./configure \ # --enable-mbstring=all --enable-mbregex \ # --enable-sockets --enable-ftp \ # --with-apxs2=/usr/local/apache2/bin/apxs \ # --with-pgsql=/usr/local/pgsql --without-mysql \ # --with-gd --enable-gd-native-ttf \ # --with-freetype-dir=/usr --with-jpeg-dir=/usr \ # --with-zlib=/usr --with-png-dir=/usr \ # --with-imap=/usr --with-kerberos=/usr \ # --with-imap-ssl --with-pdo-pgsql=/usr/local/pgsql \ # --with-mcrypt=/usr/local

    • 締切済み
    • PHP
  • mod_sslをインストールしたら、他のmodとのエラーが出てしまいました。

    お世話になります。 mod_sslをインストールしたら、Apache起動の際に、下記のエラーが発生しました。 [warn] Loaded DSO libexec/libphp4.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI) (他のmod_* についても出ました。) mod_ssl自体のインストールが間違っているのでしょうか? 再コンパイルが必要とならない、インストール方法があるのでしょうか? また、再コンパイルが必要な場合は、どのように再コンパイルをやるのでしょうか? ご教授のほどよろしくお願いいたします。 OS:RedHat7.2 Apacheのソース:apache_1.3.24.tar.gz mod_sslのソース:mod_ssl-2.8.8-1.3.24.tar.gz open_sslのソース:openssl-0.9.6c.tar.gz インストールの際に参照させていただいたURL:http://www15.tok2.com/home/masato/ phpについて env CFLAGS="-O3 -DEAPI" \ をconfigureに追加して、再コンパイルを行いましたが、 状況は変わりませんでした。

  • 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 以上、よろしくお願いします。

  • Apacheのバージョンアップでエラー

    既存Apache2.2.15から2.2.22へマイナーバージョンアップをやってみたのですが、 途中でエラーが表示されてしまいました。 すみません。エラーの理由が分かれば教えていただけないでしょうか。 OSはCentOS6です。 #cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bk(バックアップ) #/usr/bin/apachectl stop #tar zxvf ./httpd-2.2.22.tar.gz (ダウンロードしたものを展開) #cd httpd-2.2.22 #./configure --prefix=/etc/httpd #./configureまで来て、以下のエラーが表示されました。 又、makeをしようとしても当然configureの設定が終了していないので エラーになっていると思われます。 checking for chosen layout... Apache checking for working mkdir -p... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring Apache Portable Runtime library ... checking for APR... reconfig configuring package in srclib/apr now checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Configuring APR library Platform: i686-pc-linux-gnu checking for working mkdir -p... yes APR Version: 1.4.5 checking for chosen layout... apr checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/httpd-2.2.22/srclib/apr': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. configure failed for srclib/apr [root@web01 httpd-2.2.22]# make make: *** ターゲットが指定されておらず, makefile も見つかりません. 中止. あともう1点教えていただきたいです。 アップグレードが途中で失敗している状態なのですが、configureまでであれば、既存のApacheには 影響していないでしょうか?

  • DSOのmod_sslとは?

    RedHat7.2 に、apache 1.3.27でパーチャルホストを運用しています。 SSLを組み込むのに、DSOの形でmod_sslを組み込むとラクですよと言われたのですが、Webで検索すると、最初にmod_sslのconfigurをして、apacheのソースに組み込んでから、apacheを再構築するような事ばかりです。 試しに [root@www mod_ssl-2.8.12-1.3.27]# ./configure --with-apache=../apache_1.3.27 [root@www apache_1.3.27]# ./configure --enable-module=most --enable-module=so --enable-module=ssl のオプションでインストールしてみたら、startsslする時に、mod_ssl.so がないと怒られました。ちょっと混乱しているのですが、mod_sslをDSOで組み込む方法って、あるのでしょうか?

  • Apacheのmake時にエラーが出ます。

    Apacheのmake時にエラーが出ます。 OS:CentOS 5.4上でSSL対応Apcaheをソースからインストールしてるのですが、Apacheのmakeを実行すると、下記のエラーが出ます。 ◎ぐぐったのですけど、解決策を見つけることはできませんでした。 ssl_util_ssl.c: In function ‘SSL_X509_isSGC’: ssl_util_ssl.c:297: error: ‘EXTENDED_KEY_USAGE’ undeclared (first use in this function) ssl_util_ssl.c:297: error: (Each undeclared identifier is reported only once ssl_util_ssl.c:297: error: for each function it appears in.) ssl_util_ssl.c:297: error: ‘sk’ undeclared (first use in this function) ssl_util_ssl.c:306: error: expected expression before ‘)’ token make[3]: *** [ssl_util_ssl.lo] エラー 1 make[3]: ディレクトリ `/usr/local/src/httpd-2.2.15/modules/ssl' から出ます make[2]: *** [all-recursive] エラー 1 make[2]: ディレクトリ `/usr/local/src/httpd-2.2.15/modules/ssl' から出ます make[1]: *** [all-recursive] エラー 1 make[1]: ディレクトリ `/usr/local/src/httpd-2.2.15/modules' から出ます make: *** [all-recursive] エラー 1 ○ここで停止 対応策をご存知の方、教えてください。 ◎コンフィグは、./configure --enable-ssl --with-ssl=/usr/local/ssl で実施してます。 なお、Open_sslは、configure ->make->make installまで完了しています。 Versionは、apache:2.2-15 openssl:0.9.6c です。 宜しくお願いします。

  • apacheのインストールがうまく行きません

    環境はUbuntu64bitです。 このサイトを参考にしました。http://www.whitemark.co.jp/tec/apache/InstallLinApache22.html ファイルをダウンロードして # tar zxvf httpd-2.4.6.tar.gz # cd httpd-2.4.6 # ./configure --enable-mods-shared=all ここまでは上手く行きます。 しかしmakeを実行すると make: *** ターゲットが指定されておらず, makefile も見つかりません. 中止. と出てインストールすることができません。助けてください

    • ベストアンサー
    • PHP