GCC has installed but also reported the C + + compiler does not support errors.
The installation of the following components is then found:
Yum Install gcc-c++
Install Pcre successfully again.
Attached: CentOS on source installation gcc
http://my.oschina.net/vaero/blog/210485
# issue:configure:error:c++ compiler missing or inoperational
# no C + + compiler
Yum Install gcc-c++
# Issue:conftest.cpp:11:2: Error: #error-static-libstdc++ not implemented
# no c,c++ Static library
Yum Install glibc-static libstdc++-static-y
# But the report "No package libstdc++-static available", that is, there is no-static-libstdc++ source, the problem still exists.
# "Checking whether g++ accepts-static-libstdc++-static-libgcc" times out, can be ignored.
# issue:conftest.c:10:25:error:isl/version.h:no such file or directory
# no ISL
wget ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.12.2.tar.bz2
Tar jxvf isl-0.12.2.tar.bz2
CD isl-0.12.2;./configure
Make Make install
Cd..
# issue:./conftest:error while loading shared libraries:libisl.so.10:cannot open Shared object file:no such file or D Irectory
# in the "/usr/local/lib" directory, how can it not be found. Add to "/etc/ld.so.conf" or "Ld_library_path".
vi/etc/ld.so.conf # Add "/usr/local/lib"
Ldconfig # Rebuilding/etc/ld.so.cache
Ask yourself: In **issue 1**, has been alone in the "/ETC/LD.SO.CONF.D" under the "*.conf" added "/usr/local/lib", how did not effect it?
# self-answer: After the installation of ISL, did not re-ldconfig, so can not find it? It was not checked and could not be confirmed. Use the following command:
Strings/etc/ld.so.cache | grep LIBISL # View
# After that, the addition in "/etc/ld.so.conf" is removed and the problem is no longer available.
CentOS Install Pcre report C + + compiler Error