How to install gtk+-2.0 on Trisquel 8
- Login o registrati per inviare commenti
Hi
System:
$ cat /etc/*-release
DISTRIB_ID=Trisquel
DISTRIB_RELEASE=8.0
DISTRIB_CODENAME=flidas
DISTRIB_DESCRIPTION="Trisquel GNU/Linux 8.0, Flidas"
NAME="Trisquel GNU/Linux"
VERSION="8.0, Flidas"
ID=trisquel
ID_LIKE=debian
PRETTY_NAME="Trisquel GNU/Linux Flidas (8.0)"
VERSION_ID="8.0"
HOME_URL="https://trisquel.info/"
SUPPORT_URL="https://trisquel.info/wiki"
BUG_REPORT_URL="https://trisquel.info/project/issues"
$ uname -a
Linux technoethical-t400s-b9d0 4.19.139-gnu #1.0 SMP Tue Sep 27 12:35:59 EST 1983 x86_64 x86_64 x86_64 GNU/Linux
------------------------
I am attempting to install gtk+-2.0, but when I try to do so I get the following error:
$ apt install gtk2.0
...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
gtk2.0-examples : Depends: libgtk2.0-0 (= 2.24.30-1ubuntu1) but 2.24.30-1ubuntu1.16.04.2 is to be installed
libgtk2.0-0-dbg : Depends: libgtk2.0-0 (= 2.24.30-1ubuntu1) but 2.24.30-1ubuntu1.16.04.2 is to be installed
libgtk2.0-dev : Depends: libgtk2.0-0 (= 2.24.30-1ubuntu1) but 2.24.30-1ubuntu1.16.04.2 is to be installed
Depends: gir1.2-gtk-2.0 (= 2.24.30-1ubuntu1) but 2.24.30-1ubuntu1.16.04.2 is to be installed
Recommends: debhelper but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Does anyone know how I can install gtk+-2.0 on Trisquel 8 ?
As far as I understand, the package named libgtk2.0-0 in Trisquel's repository provides GTK+ 2. With the regular edition of Trisquel (using MATE), it is installed by default.
Thank you for your reply.
Yes it does seem I already have libgtk2.0-0 installed:
apt install libgtk2.0-0
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgtk2.0-0 is already the newest version (2.24.30-1ubuntu1.16.04.2).
0 to upgrade, 0 to newly install, 0 to remove and 2 not to upgrade.
So that would mean gtk+2.0 is in fact installed - correct ?
The reason I asked the question is that I am actually trying to build gtkam which when I try to configure gives me the following error:
checking libgphoto2 cpp flags... "-I/local/usr/local/gphoto2/include"
checking for gp_port_info_get_name... no
checking for GTK... no
configure: error: Package requirements (gtk+-2.0) were not met:
No package 'gtk+-2.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GTK_CFLAGS
and GTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Possibly this means it is looking in the wrong place ?
Looking at the configure file it looks like it uses the following command to determine the existence of the package:
/usr/bin/pkg-config --exists --print-errors gtk+-2.0
I do not know where pkg-config looks by default, but is it possible this is not looking in the correct place ? and if so where the package would be found (so I can add it to PKG_CONFIG_PATH)?
I would try to install the libgtk2.0-dev package.
Thank you for the reply.
Initially when I tried to install libgtk2.0-dev I git the following error:
$ apt install libgtk2.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
libgtk2.0-dev : Depends: libgtk2.0-0 (= 2.24.30-1ubuntu1) but 2.24.30-1ubuntu1.16.04.2 is to be installed
Depends: gir1.2-gtk-2.0 (= 2.24.30-1ubuntu1) but 2.24.30-1ubuntu1.16.04.2 is to be installed
However doing:
apt install libgtk2.0-0=2.24.30-1ubuntu1
apt install gir1.2-gtk-2.0=2.24.30-1ubuntu1
apt install libgtk2.0-dev
Seems to have installed it successfully.
For completeness I also needed to install
apt install libexif-gtk-dev
to get gtkam to configure correctly. Now it doesn't build - guess I'll try to find a gphoto forum to query that one.
Thank you very much for our help.
- Login o registrati per inviare commenti