Compilation error Index

Source: Internet
Author: User
Tags gtk
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.

Sudo apt-get install xlibs-dev
Sudo apt-get install xorg-dev

Error message: Qt (> = Qt 3.0) (headers and libraries) not found. Please check your installation!

Sudo apt-get install libqt3-headers libqt3-mt-dev

Error message: in the prefix, you 've chosen, are no KDE headers installed. This will fail. So, check this please and use another prefix!

Sudo apt-get install kdelibs4-dev kdelibs4c2a

Error message: autoconf: not found

Sudo apt-get install autoconf

Error message: *** GTK> = 2.4.0 not installed! ***

Sudo apt-get build-dep gedit

Error message: Cannot find GTK: Is gtk-config in path?

Sudo apt-get install libgtk1.2-dev

Error message: No package 'gtk +-2.0 'found
Error message: No package 'gtksourceview-1.0 'found
Error message: No package 'libgnomeui-2.0 'found
Error message: No package 'libglade-2.0 'found
Error message: No package 'libgnomeprintui-2.2 'found

Sudo apt-get install libgtk2.0-dev libgtksourceview-dev libgnomeui-dev libglade2-dev libgnomeprint2.2-dev

Error message: No package 'libpanelapplet-2.0 'found

Sudo apt-get install libpanelappletmm-2.6-dev

Error message: You must have the GTK + 2.0 development headers installed to compile ***.

Sudo apt-get install libgtk2.0-dev

Error message: You must have libxml2> = 2.6.0 development headers installed to build.

Sudo apt-get install libxml2-dev

Error message: wxWidgets must be installed on your system but wx-config script. couldn't be found ....

Sudo apt-get install libwxbase2.6-dev libwxgtk2.6-dev
Related Article

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.