麻姑掻痒 〜まこそうよう〜

かゆいところに手が届く、もうちょっとその先が知りたいに応えたい

configure: error: … Error, SSL/TLS libraries were missing or unusable

time 2016/05/17

configure: error: … Error, SSL/TLS libraries were missing or unusable

あんまり、こういう技術的なネタを載せるつもりはないんですが、ちょっと「ええ!?」ってことがあったので、誰かの役に立つように。

仕事でopensslとapacheをソースでインストールすることがあったんですが、apacheを ./configure した際に以下のエラーが出たので…


checking for SSL_CTX_new… no
checking for ENGINE_init… no
checking for ENGINE_load_builtin_engines… no
checking for SSL_set_cert_store… no
configure: error: … Error, SSL/TLS libraries were missing or unusable

configure: error: … Error, SSL/TLS libraries were missing or unusable」でググってみたところ、「apache2.2系に openssl 1.0系は使えないので、0.9.8系を使いましょう」的な記事が一番に出てきてしまって、二番目以降も英語だったりでイマイチだし、「そんなことなくない?」と思ったのでやりました。

apacheをインストールする前のopensslインストールの際、./config に shared のオプションをつけたらうまくいきました。

つまり以下です。

エラーが出る手順

tar xvfz openssl-1.0.X.tar.gz
cd openssl-1.0.X
./config
make
make install

echo ‘/usr/local/ssl/lib’ >> /etc/ld.so.conf
/sbin/ldconfig

tar xvfz httpd-2.2.X.tar.gz
cd httpd-2.2.X
./configure –prefix=/usr/local/apache2 \
–with-mpm=prefork \
–enable-so \
–enable-ssl \
–with-ssl=/usr/local/ssl

→ 「configure: error: … Error, SSL/TLS libraries were missing or unusable」のエラーでます。

エラーが出ない手順

tar xvfz openssl-1.0.X.tar.gz
cd openssl-1.0.X
./config shared
make
make install

echo ‘/usr/local/ssl/lib’ >> /etc/ld.so.conf
/sbin/ldconfig

tar xvfz httpd-2.2.X.tar.gz
cd httpd-2.2.X
./configure –prefix=/usr/local/apache2 \
–with-mpm=prefork \
–enable-so \
–enable-ssl \
–with-ssl=/usr/local/ssl

ググった際に一番に表示された方も、apacheの./configureのオプションを見た感じだと、opensslをソースで入れているようなので、恐らく上記の事態だったんじゃないかなぁ、と思っています。

どのくらいの方がこんな目にあうのかわからないですが、少しでもお役に立てればと思います。
openssl-0.9.8はサポートも終わっているので、もう使いづらいでしょうし。



sponsored link

コメント

  • 助かりました。ビンゴでした。

    by foobarbaz €2017年1月5日 6:08 PM

down

コメントする






sponsored link