めもめも のーと

ハマったこととか、覚えたこととか

Apacheでエラー configure: error: ...No recognized SSL/TLS toolkit detectedが出た件

環境

  • CentOS 6.4(64bit)
  • Apache2.2.24

Apache2.2.24をソースからコンパイルしたら、次のようなエラーが出ました。

# tar xzvf httpd-2.2.24.tar.gz
# cd ../httpd-2.2.24
# ./configure \
 --prefix=/usr/local/apache2.2.24 \
 --enable-modules=ssl \
 --with-ssl=/usr/local/ssl \
 --with-apr=/usr/local/apr-1.4.6 \
 --with-apr-util=/usr/local/apr-util-1.5.1 \
 --enable-mods-shared=all \
 --enable-so \
 --enable-cache \
 --enable-disk-cache \
 --enable-mem-cache \
 --enable-proxy \
 --enable-proxy-blancer \
 --enable-proxy-ajp \
 --enable-ssl=static
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu

・・・

checking for OpenSSL version... checking openssl/opensslv.h usability... no
checking openssl/opensslv.h presence... no
checking for openssl/opensslv.h... no
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... no
checking for openssl/ssl.h... no
no OpenSSL headers found
checking for SSL-C version... checking sslc.h usability... no
checking sslc.h presence... no
checking for sslc.h... no
no SSL-C headers found
configure: error: ...No recognized SSL/TLS toolkit detected

どうやら、openssl-develが入っていなかったためなので、入れたらMakefileができ、無事にインストールできました。

openssl-develのインストール。

# yum -y install openssl-devel

# yum list installed | grep openssl*
openssh.x86_64          5.3p1-84.1.el6  @anaconda-CentOS-201303020151.x86_64/6.4
openssh-clients.x86_64  5.3p1-84.1.el6  @anaconda-CentOS-201303020151.x86_64/6.4
openssh-server.x86_64   5.3p1-84.1.el6  @anaconda-CentOS-201303020151.x86_64/6.4
openssl.x86_64          1.0.0-27.el6_4.2
openssl-devel.x86_64    1.0.0-27.el6_4.2

再コンパイル。

# tar xzvf httpd-2.2.24.tar.gz
# cd ../httpd-2.2.24
# ./configure \

・・・

checking for OpenSSL version... checking openssl/opensslv.h usability... yes
checking openssl/opensslv.h presence... yes
checking for openssl/opensslv.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
OK

サーバ構築の実際がわかる Apache[実践]運用/管理 (Software Design plus)

サーバ構築の実際がわかる Apache[実践]運用/管理 (Software Design plus)