[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

can't install libgtk2.0-dev (apt, dependencies) Was: Compile error of GTK



I've been running apt-get -u dist-upgrade many times since Sarge was released. Apt-get gives this errormessage when trying to install libgtk2.0-dev

# apt-get install libgtk2.0-dev
Reading Package Lists... Done
Building Dependency Tree... 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.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libgtk2.0-dev: Depends: libpango1.0-dev (>= 1.4.0-3) but it is not going to be installed
                 Depends: libx11-dev but it is not going to be installed or
                          xlibs-dev but it is not going to be installed
E: Broken packages


On 19/10/05, Antony Gelberg < antony@wayforth.co.uk> wrote:
Vegard|drageV wrote:
> I'm trying for the first time to make my own gui-program, with menus and
> all to launch a series of commands and scripts I've written. Google led
> me to http://www.gtk.org/tutorial/ , where I am to compile the program
> base.c, given as an example in the text under the link "3. Getting
> started".
>
> Compiling gives this error:
> -------------------------------------------------------------------------------------------------------
> vegard@hjem:~/gtk$ gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`
> Package gtk+-2.0 was not found in the pkg-config search path.
> Perhaps you should add the directory containing `gtk+-2.0.pc '
> to the PKG_CONFIG_PATH environment variable
> No package 'gtk+-2.0' found
> base.c:1:21: gtk/gtk.h: Ingen slik fil eller filkatalog
> base.c: I funktionen 'main':
> base.c:6: error: `GtkWidget' undeclared (first use in this function)
> base.c:6: error: (Each undeclared identifier is reported only once
> base.c:6: error: for each function it appears in.)
> base.c:6: error: `window' undeclared (first use in this function)
> base.c :10: error: `GTK_WINDOW_TOPLEVEL' undeclared (first use in this
> function)
> vegard@hjem:~/gtk$
> -------------------------------------------------------------------------------------------------------------
>
> I can not find the files gtk+-2.0.pc ,  gtk/gtk.h anywhere. I tried
> installing the developmentfiles with:
>
>             apt-get install libgtk2.0-dev
>
> but this package has dependencies to other packages wich is not
> available to me, namly:
>
>             libpango1.0-dev, libx11-dev, xlibs-dev
>
> Is there anybody who have any idea on what I can do to fix the compiler?
>
> I have Debian Sarge, kernel 2.4.27-2-686

In Sarge, every package should be installable.  Is this an old testing
installation that has not been updated?


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: