Common Errors During Compilation

Source: Internet
Author: User
Common Errors in compilation-Linux general technology-Linux technology and application information. For details, refer to the following section. Shared by Google

Here is the appendix./configure common error solution:

Error: C compiler cannot create executables
Solution: sudo apt-get gcc libc6-dev

Error: checking for C compiler default output... configure: error: C compiler cannot create executables
Solution: sudo apt-get install libc6-dev

Error: configure: error: C ++ preprocessor "/lib/cpp" fails sanity check
Cause: the gcc component is not fully installed.
Solution: sudo apt-get install build-essential

Error: Can't find X except des. Please check your installation and add the correct paths!
Cause: no x contained files
Solution: sudo apt-get install xlibs-dev

Error: Qt (> = Qt 3.0) (headers and libraries) not found. Please check your installation!
Cause: Find and install the lib & headers software package that provides qt.
Solution: sudo apt-get install libqt3-headers libqt3-mt-dev

Error: in the prefix, you 've chosen, are no KDE headers installed. This will fail. So, check this please and use another prefix!
Cause: install a KDE application in a Gnome environment.
Work: sudo apt-get update sudo apt-get install kdelibs4-dev kdelibs4c2a

Error:./admin/cvs. sh: 585: autoconf: not found
Solution: sudo apt-get install autoconf

Error: *** GTK> = 2.4.0 not installed! ***
Cause: GTK is not installed.
Solution: sudo apt-get build-dep gedit

Error: heching for gtk-config... no checking for GTK-version = 1.2.0... no *** The gtk-config script installed by GTK cocould not be found *** If GTK was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the GTK_CONFIG enviroment variable to the *** full path to gtk-config. configure: error: Cannot find GTK: Is gtk-config in path?
Solution: sudo apt-get install libgtk1.2-dev

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.