LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-22-2008, 03:10 AM   #1
Shakes79
LQ Newbie
 
Registered: Jan 2008
Posts: 8

Rep: Reputation: 0
Install Gtk+2.10.9


Hi

I wanna install this Software, but I am not able to, nevertheless all required software packages are installed.

Prerequisites:

Code:
GTK+ requires the following packages:

 - The GLib, Pango, ATK and cairo libraries, available at the same 
   location as GTK+. GTK+ 2.10.9 requires at least GLib 2.12, 
   Pango 1.13, ATK 1.9 and cairo 1.2.

 - The TIFF, PNG, and JPEG image loading libraries. You most
   likely have these installed on your system already. If not
   these libraries are available from:

    http://www.libtiff.org/
    http://www.libpng.org/
    http://www.ijg.org/
My packet Manager:
Code:
Glib2-2.12.3, Glibc-2.15, Glib-Common-2.5, Glibc-devel 2.5, Glib-headers-2.5
Pango-1.14.9
Atk 1.12.2
Cairo 1.2.4
If i use "which" in terminal, i recieve this result for all packages:

Code:
/usr/bin/which: no glib in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
[root@linuxdesk gtk+-2.10.9]# cd /usr/bin/which
"whereis"

Code:
[root@linuxdesk gtk+-2.10.9]# whereis glib
glib:
[root@linuxdesk gtk+-2.10.9]# whereis atk
atk:
[root@linuxdesk gtk+-2.10.9]# whereis pango
pango: /etc/pango /usr/lib/pango
[root@linuxdesk gtk+-2.10.9]# whereis cairo
cairo:
[root@linuxdesk gtk+-2.10.9]#
My operating system is RHLE 5 64bit, i am logged in as Root, and the directory
for GTK+ is placed in /usr/local.

This program is furthermore just a requirement for another program (OOF2) (gtk+-2.0 (2.6 or later) is needed), but I have read in another forum that gtk+ doesnt really exist as a package its just a part of gtk2 and gtk, is this right ?
 
Old 01-22-2008, 05:16 AM   #2
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
Which and family is for binaries. You'll searching for libraries.

To check your GTK-version and what it is linked against, call

pkg-config --modversion gtk+-2.0

or

pkg-config --libs gtk+-2.0

This is what the source of GTK will check when it runs configure - specifically cairo, glib, freetype. pkg-config btw. works for many, many more libs - pkg-config --list-all will show you everything you've got managed by pkg-config.

And it's called gtk+-2.10.9 - in short "gtk2". The shortform "gtk" stands for historic "gtk+-1.whatever" which most distributors install for historic compatibility reasons. You'll usally never have to touch this. If someone says "update gtk", they usally mean "the most recent gtk 2 version of today" - not gtk-1-stone age stuff.

And as your package manager is telling you, you'll also have to update glib, cairo and atk (which is common and usual, because "GTK" is kind-of a family consisting of a handful of things..).
 
Old 01-22-2008, 07:51 AM   #3
Shakes79
LQ Newbie
 
Registered: Jan 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Hi

Although i have registered for RHN and due to packet manager i have installed gtk2 -2.10.4 i get this error messages

Code:
[root@linuxdesk oof2-2.0.4]# pkg-config --modversion 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
or if i am trying to install OOF2

Code:
[root@linuxdesk oof2-2.0.4]# python setup.py build
Can't find gtk+-2.0! Version 2.6.0 or later required
I am using RHLE as Desktop, not as a server, so I am the only user and therefore administrator as well, but RHLe 5 was installed by another company

Can you help me further ?
 
Old 01-22-2008, 08:20 AM   #4
Shakes79
LQ Newbie
 
Registered: Jan 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Install of gtk2 manually

If i download the newest version of gtk manually and trying install it, it doesn't work either:

Code:
[root@linuxdesk gtk+-2.10.9]# ./configure --prefix=/opt/gtk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for native Win32... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for nm... /usr/bin/nm -B
checking whether to enable maintainer-specific portions of Makefiles... no
checking for some Win32 platform... no
checking whether build environment is sane... yes
checking for library containing strerror... none required
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.12.0    atk >= 1.9.0    pango >= 1.12.0    cairo >= 1.2.0) were not met:

No package 'glib-2.0' found
No package 'atk' found
No package 'pango' found
No package 'cairo' 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 BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GTK+ programs on Windows without having to install GTK+, GLib, etc Nylex Programming 2 02-19-2006 02:33 PM
GTK source install doesn't give gtk-config Feebles Linux - Software 4 06-15-2005 01:51 PM
Can I install GTK-1.x.x although GTK-2.x.x has already been install in Fedora3 ? Vincenttalk Linux - Software 4 04-13-2005 11:32 PM
cant find gtk-config file or gtk-devel to install happychappy Linux - Software 2 02-16-2005 01:46 AM
GTK, GTK+ and MPlayer won't install ? ivan@elfak Linux - Newbie 4 02-29-2004 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration