前提・実現したいこと
CentOS7にPHP7.2.7をソースからインストールしようとしています。
configureの際に--with-ldapを指定するとmake時にエラーが発生してしまいます。
※configureは正常に終了します。
何が原因かわかりますでしょうか。
発生している問題・エラーメッセージ
[configureのオプション]
./configure --prefix=/usr/local/php-7.2.7 --with-apxs2=/usr/local/httpd/bin/apxs --enable-mbstring=all --enable-sockets --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-gd --with-iconv --with-curl --with-openssl --enable-gd-jis-conv --with-jpeg-dir --with-png-dir --with-zlib=yes --with-zlib-dir --enable-sysvshm --enable-wddx --enable-bcmath --enable-calendar --enable-ctype --enable-ftp --enable-shmop --enable-mbregex --enable-exif --enable-soap --enable-pcntl --enable-fileinfo --enable-phar --enable-zip --enable-sysvsem --with-xsl --disable-debug --disable-sigchild --with-ldap
[make時のエラー]
/usr/bin/ld: ext/ldap/.libs/ldap.o: undefined reference to symbol 'ber_scanf' /usr/lib64/liblber-2.4.so.2: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [sapi/cli/php] エラー 1
試したこと
--with-ldapを除外して実行したら正常にインストールできました。
余計なオプションを除外し、--with-ldapのみにした場合も同じエラーとなりました。
./configure --prefix=/usr/local/php-7.2.7 --with-ldap
補足情報(FW/ツールのバージョンなど)
【OS】
CentOS Linux release 7.5.1804 (Core)
【PHP】
http://jp2.php.net/get/php-7.2.7.tar.gz/from/this/mirrorから取得


回答2件
あなたの回答
tips
プレビュー