there are many ways to solve your problem.
1. obtain/install a copy of "gtk-config"
2. obtain/install a copy of "pkg-config" ( afaik, this is the one that
replaced gtk-config, glib-config, png-config,etc. as a universal
blah blah ). downloadble at gtk.org
2.1 pkg-config works the same way as gtk-config but you have
to modify some lines on the "configure" script of the application
that you are going to install.
2.2 find the sample code below or anything similar on the configure script
--------------------------------------------------------------------------------------
# Check for GTK:
echocheck "gtk version"
if test -z "$_gtkconfig" ; then
if ( gtk-config --version ) >/dev/null 2>&1 ; then
_gtkconfig="gtk-config"
elif ( gtk12-config --version ) >/dev/null 2>&1 ; then
_gtkconfig="gtk12-config"
else
die "the GUI requires GTK (which was not found)"
fi
fi
_gtk=`$_gtkconfig --version 2>&1`
_inc_gtk=`$_gtkconfig --cflags 2>&1`
_ld_gtk=`$_gtkconfig --libs 2>&1`
echores "$_gtk (using $_gtkconfig)"--------------------------------------------------------------------------------------
2.3 Replace it with this:
--------------------------------------------------------------------------------------
# Check for GTK:
echocheck "gtk version"
if test -z "$_gtkconfig" ; then
if ( pkg-config gtk+-2.0 --modversion ) >/dev/null 2>&1 ; then
_gtkconfig="pkg-config gtk+-2.0"
elif ( gtk12-config --version ) >/dev/null 2>&1 ; then
_gtkconfig="gtk12-config"
else
die "the GUI requires GTK (which was not found)"
fi
fi
_gtk=`$_gtkconfig --modversion 2>&1`
_inc_gtk=`$_gtkconfig --cflags 2>&1`
_ld_gtk=`$_gtkconfig --libs 2>&1`
echores "$_gtk (using $_gtkconfig)"--------------------------------------------------------------------------------------
3. Forget about the xxx-config thing, just edit the configure script and then fill-in the blanks. =)
HTH
Ina Patricia Lopez wrote:
im trying to install GTK-perl0.7008 but getting this error
# cd Gtk-Perl-0.7008
# perl Makefile.PL Can't exec "gtk-config": No such file or directory at Makefile.PL line
141.
Package 'gtk' needed but it was not detected on your system.
You may want to force it using --with-gtk-force if you know better than
me.4
-- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
