SLES-12-64bit LINUX で php-5.2.8 をコンパイルしています。configure スクリプトを実行した後、以下のエラーが発生します。
構成: エラー: png.h が見つかりません。
libpng16-devel もインストールしました。以下のコマンド出力を参照してください。
# rpm -qa | grep -i libpng
libpng16-16-32bit-1.6.8-2.24.x86_64
libpng16-16-1.6.8-2.24.x86_64
libpng16-devel-32bit-1.6.8-2.2.x86_64
libpng16-devel-1.6.8-2.2.x86_64
# ls -l /usr/include/libpng16/png.h
-rw-r--r-- 1 ルート ルート 149224 9 月 11 日 13:40 /usr/include/libpng16/png.h
以下は、スクリプトを構成するために私が提供するオプションです./configure
--prefix=/opt/MicroWorld/usr \
--exec-prefix=/opt/MicroWorld/usr \
--sysconfdir=/opt/MicroWorld/etc/httpd/php5 \
--sharedstatedir=/opt/MicroWorld/usr/php5 \
--libdir=/opt/MicroWorld/usr/lib/mwhttpd/php5 \
--includedir=/opt/MicroWorld/usr/include/php5 \
--with-apache=../apache_1.3.41 \
--with-config-file-path=/opt/MicroWorld/etc/httpd/php5 \
--enable-magic-quotes \
--without-pear \
--enable-memory-limit \
--disable-rpath \
--enable-sockets \
--with-ldap \
--enable-mbstring \
--enable-fpm \
--enable-shared \
--disable-debug \
--with-gd \
--disable-static \
--disable-dmalloc \
--with-tsrm-pthreads \
--enable-cli \
--disable-cgi \
--enable-inline-optimization \
--enable-ftp \
--enable-magic-quotes \
--enable-calendar \
--enable-bcmath \
--enable-exif \
--with-mod_charset \
--enable-safe-mode \
--enable-sigchild \
--enable-dbx \
--enable-dbase \
--enable-gd-native-ttf \
--disable-libxml \
--disable-simplexml \
--disable-xml \
--disable-xmlreader \
--disable-xmlwriter \
--disable-dom \
--enable-pthreads=static \
--enable-pcntl \
--enable-maintainer-zts \
--with-gettext=/usr/local \
--with-zlib \
--with-libdir=lib64 \
--with-png-dir=/usr/include/libpng16 \
--with-jpeg-dir
この問題を解決するための助けをいただければ幸いです。
ありがとう。