CentOS5.2な某環境で、PCRE(Perl Compatible Regular Expressions)のインストールで失敗。
ちなみにPCREのバージョンは7.8。
pcre-7.8 configuration summary: Install prefix .................. : /usr/local C preprocessor .................. : gcc -E C compiler ...................... : gcc C++ preprocessor ................ : C++ compiler .................... : Linker .......................... : /usr/bin/ld C preprocessor flags ............ : C compiler flags ................ : -O2 C++ compiler flags .............. : Linker flags .................... : Extra libraries ................. : Build C++ library ............... : yes Enable UTF-8 support ............ : no Unicode properties .............. : no Newline char/sequence ........... : lf \R matches only ANYCRLF ......... : no EBCDIC coding ................... : no Rebuild char tables ............. : no Use stack recursion ............. : yes POSIX mem threshold ............. : 10 Internal link size .............. : 2 Match limit ..................... : 10000000 Match limit recursion ........... : MATCH_LIMIT Build shared libs ............... : yes Build static libs ............... : yes Link pcregrep with libz ......... : no Link pcregrep with libbz2 ....... : no Link pcretest with libreadline .. : no
上記は、"./configure"実行後に表示されるサマリ。
ranlib .libs/libpcreposix.a creating libpcreposix.la (cd .libs && rm -f libpcreposix.la && ln -s ../libpcreposix.la libpcreposix.la) source='pcrecpp.cc' object='pcrecpp.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/sh ./depcomp \ /bin/sh ./libtool --tag=CXX --mode=compile -DHAVE_CONFIG_H -I. -c -o pcrecpp.lo pcre cpp.cc libtool: ignoring unknown tag CXX libtool: unrecognized option `-DHAVE_CONFIG_H' Try `libtool --help' for more information. make[1]: *** [pcrecpp.lo] Error 1 make[1]: Leaving directory `/home/sonic/install/pcre-7.8' make: *** [all] Error 2
で、"make"を実行した際に、上記のエラーが出る。
ということで、、、
$ sudo yum install gcc-c++
上記を実行後、再度"make"を実行することで、無事コンパイルは完了。