[pcre-dev] Installing PCRE in Linux

Page principale
Supprimer ce message
Auteur: ccchung
Date:  
À: pcre-dev
Sujet: [pcre-dev] Installing PCRE in Linux
Hello there,



I got an error line : "make: *** [pcrecpp.lo] Error 1" when I try to install
libpcre. Here is the result after running configure :



pcre-7.6 configuration summary:



Install prefix .................. : /usr/local

    C preprocessor .................. : gcc -E


    C compiler ...................... : gcc


    C++ preprocessor ................ : 


    C++ compiler .................... : g++


    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




And here is the result after running "make check" :



source='pcrecpp.cc' object='pcrecpp.lo' libtool=yes \

DEPDIR=.deps depmode=none /bin/sh ./depcomp \

/bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
-c -o pcrecpp.lo pcrecpp.cc

libtool: ignoring unknown tag CXX

g++ -DHAVE_CONFIG_H -I. -c pcrecpp.cc -fPIC -DPIC -o .libs/pcrecpp.o

./libtool: line 1325: g++: command not found

make: *** [pcrecpp.lo] Error 1





My machine is running Cent OS 5 with yum updated. Could you please advise
how to slove it ?

Thanks.



Regards,

Chung