Install gtk +-2.12.9 in debian4 Environment

Source: Internet
Author: User
Install gtk +-2.12.9 in the debian4 environment -- Debian for the Linux release. For details, refer to the following section. 1. Set Environment Variables
Set it twice here. Set it once when installing glib, and set it again before installing atk.

[Root @ localhost root] # export LD_LIBRARY_PATH =/usr/lib
[Root @ localhost root] # export PKG_CONFIG_PATH =/usr/lib/pkgconfig

2. Install glib
Install pkg-conf and gettext

First, run the configure command: [root @ localhost root] #./configure. After the configuration is complete, you can compile it. Note that you must first perform a reverse installation before the installation to delete the previous version. Otherwise, errors may occur when installing other libraries. All execution commands are as follows:

[Root @ localhost root] # cd glib-2.12.0
[Root @ localhost root] #./configure
[Root @ localhost root] # make

(If you use a non-root user for installation, you must switch to the root user during make install. Otherwise, the system prompts that the permission is insufficient, as shown in the following figure)
[Root @ localhost root] # make uninstall
[Root @ localhost root] # make install

3. Install atk

Set environment variables:
[Root @ localhost root] # export LD_LIBRARY_PATH =/usr/local/lib
[Root @ localhost root] # export PKG_CONFIG_PATH =/usr/local/lib/pkgconfig

Installation:
[Root @ localhost root] #./configure
[Root @ localhost root] # make
[Root @ localhost root] # make install

4. Compile GTK directly. If there is any missing-dev library, you can directly install it with the new version. It seems that some of the installations I downloaded are still like this.

Prompt libpng, new libpng-dev

To install libpng, you are prompted to install zlib. Prompt to install freetype and fontconfg, and install libpango-dev

Summary: It seems a bit messy. Regardless, the helloworld test is successful.
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.