Solution to common package dependency problems during Linux Compilation
Source: Internet
Author: User
Solution to common package dependency problems during Linux compilation-general Linux technology-Linux technology and application information. For more information, see the following. In Linux, the biggest headache for self-Compiling and installation of software is that the package dependency problem occurs during compilation. Today, it takes a lot of weeks to install a gsnapshot software, the reason is that there are too few library files or many dependent packages missing from the new system. I just googled it online and some people have already summarized the problem of common package dependency.
Error: checking for C compiler default output... Configure: error: C compiler cannot create executables
Cause:
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: 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: 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: 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.
Solution: which basically means its going to want to install a lot of KDE specific packages to work. This 'configure: error'
Is due to it expecting you to be running KDE and again refers to some 'headers '.
Sudo apt-get update
Sudo apt-get install kdelibs4-dev kdelibs4c2a
Error:./admin/cvs. sh: 585: autoconf: not found
Cause:
Solution: apt-get install autoconf
Error: *** GTK> = 2.4.0 not installed! ***
Cause: GTK is not installed.
Solution: 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
* ** Full path to gtk-config.
Configure: error: Cannot find GTK: Is gtk-config in path?
Cause:
Solution: sudo apt-get install libgtk1.2-dev
Problem: encoding in eclipse does not support Chinese Characters
Solution: Edit/var/lib/locales/supported. d/local, add a line of zh_CN.GBK GBK, and run sudo locale-gen.
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.