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.

[Marco. chan @ fedora8 log] # yum install libgtksourceviewmm-devel.i386

# I tried this command just now and there are 46 packages dependent on it.

# That is to say, after gtk +-devel. i386 is installed, a lot of dependency problems can be solved theoretically.

I use fedora myself. It is a little different from the following, but it is similar. It is basically the same. Just change it!

The following system is about package dependency in debian/ubuntu.

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

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.

Error: gnome. h: No such file or directory

Error: No package 'libpanelapplet-2.0 'found
Cause:
Solution: sudo apt-get install gnome-panel

Problem: eva does not display the Input Method
Solution: sudo apt-get install scim-qtimm

Problem: No package 'gtk +-2.0 'found
No package 'gtksourceview-1.0 'found
No package 'libgnomeui-2.0 'found
No package 'libglade-2.0 'found
No package 'libgnomeprintui-2.2 'found
Solution: sudo apt-get install libgtk2.0-dev libgtksourceview-dev libgnomeui-dev libglade2-dev libgnomeprint2.2-dev

Problem: No package 'libpanelapplet-2.0 'found
Solution: sudo apt-get install libpanelappletmm-2.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.