CentOS Install Pcre report C + + compiler Error

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.