Installing GTK+3.22

To install GTK on debian you can follow these steps:

  • You download the source package here, it's distributed as a tar.bz2 or tar.xz file.
  • You unpack the source files using these commands:

    tar xvfj gtk+-3.2.0.tar.bz2 or tar xvfJ gtk+-3.2.0.tar.xz

  • Change directory to the directory created, then Install the package in /opt/gtk using:

    ./configure --prefix=/opt/gtk

  • Run make command to build the package and install it make &&make install

  • Set the LD_LIBRARY_PATH environment variable so the systems dynamic linker can find the newly installed libraries, and the PATH environment program so that utility binaries installed by the various libraries will be found.

  LD_LIBRARY_PATH="/opt/gtk/lib"
  PATH="/opt/gtk/bin:$PATH"
  export LD_LIBRARY_PATH PATH

Tags:

Debian

Gtk3