In linux, the c ++ compiler cannot be compiled into an execution file.
Source: Internet
Author: User
In linux, the c ++ compiler cannot be compiled into an execution file. Solution: general Linux technology-Linux programming and kernel information. For details, refer to the following. Onfigure: error: installation or configuration problem: C ++ compiler cannot create executables.
You need to install something like GLIBC. If you use a Debian system, you can use
Apt-get install build-essential to install
Check and upgrade gcc $ cat/proc/version
You also need to check the C language library. First, search for the library file. In Ubuntu and Debian Linux systems, I can use this command:
Apt-cache search GNU c library
The output part of this command is as follows:
Glibc-doc-reference-gnu c Library: Documentation
Libc6-gnu c Library: Shared libraries
Libc6-amd64-gnu c Library: 64bit Shared libraries for AMD64
Libc6-dbg-gnu c Library: Libraries with debugging symbols
Libc6-dev-gnu c Library: Development Libraries and Header Files
Libc6-dev-amd64-gnu c Library: 64bit Development Libraries for AMD64
Libc6-i686-gnu c Library: Shared libraries [i686 optimized]
Libc6-pic-gnu c Library: PIC archive library
Libc6-prof-gnu c Library: Profiling Libraries
Libc6-xen-gnu c Library: Shared libraries [Xen version]
Or you can search for libc or glibc. Because we want to compile the program, that is, to develop, so we have to install the libc6-dev package. Run this command to view the details of the software package:
Apt-cache show libc6-dev
The output part of this command is as follows: Description: gnu c Library: Development Libraries and Header Files
Contains the symlinks, headers, and object files needed to compile
And link programs which use the standard C library.
Then you can run the following command to install the software package:
Apt-get install libc6-dev
After the installation is complete, you can check what the software package provides. Run the following command:
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.