Compilation error index-general Linux technology-Linux technology and application information. The following is a detailed description. Compiling software plays an important role in installing Linux software. The most common practice is to use the "Compiling trilogy ":
./Configure (configure the environment and generate Makefile)
Make (compile the link to generate an executable file or library)
Make install (copy the generated file to the corresponding path)
In the configure stage, various errors are generated, mostly because there is no corresponding class library. This document uses Ubuntu as an example to list the following indexes:
Error message: C compiler cannot create executables
Error message: C ++ preprocessor "/lib/cpp" fails sanity check
Error analysis: the above two messages are all caused by the Incomplete installation of the C/C ++ compilation component. There is a build-essential Package in Ubuntu, which can be installed completely in the C/C ++ compilation package at one time.
Sudo apt-get install build-essential
Error message: Can't find X primary des. Please check your installation and add the correct paths!
Error Analysis: no x (graphic interface) files are included. You can install xlibs-dev to solve this problem, or install xorg-dev to install all Xorg-related packages at one time.
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.