LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing a gtk program.. (https://www.linuxquestions.org/questions/linux-newbie-8/installing-a-gtk-program-320158/)

minm 05-04-2005 04:20 PM

installing a gtk program..
 
hey guys, i want to install lineakconfig and it uses gtk. I already have gtk and gtk2 installed (including their devel packages) and i used rpms to install them.

Now when i go to configure it( which i type ./configure --build=i386-linux --host=i386-linux --target=i386-linux --prefix=/usr/local --disable-debug as in the instructions in the INSTALL file), i get this error:

checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error: Cannot find GTK: Is gtk-config in path?



can anyone help?

jailbait 05-04-2005 09:09 PM

"Is gtk-config in path?"

You can find the answer to this question with:
which gtk-config

On SuSE 9.1 the gtk-config is at /opt/gnome/bin/gtk-config

If you do not have gtk-config installed then it is provided by the rpm package called gtk-devel. You can check to see if you have gtk-devel installed with:
rpm -qi gtk-devel

If you have gtk-devel installed but gtk-config is not on the PATH (i.e. which does not find it) then you can either put the library containing gtk-config on the PATH or you can set the GTK_CONFIG environment variable to the full path to gtk-config, something like:
PATH=$PATH:/opt/gnome/bin/gtk-config
or
GTK_CONFIG=/opt/gnome/bin/gtk-config

---------------------------------
Steve Stites

minm 05-05-2005 01:38 AM

hmm, wierd.

I type
mark@linux:~> GTK_CONFIG=/opt/gnome/bin/gtk-config
mark@linux:~>


and now when i try and configure it i get this:

mark@linux:~/lineak/lineakconfig-0.3.2> ./configure --build=i386-linux --host=i386-linux --target=i386-linux --prefix=/usr/local --disable-debug
./configure: line 755: config.log: Permission denied


what's wrong now?

__J 05-05-2005 01:49 AM

did you configure as root and try to configure as a normal user later?

jailbait 05-05-2005 10:10 AM

"./configure: line 755: config.log: Permission denied"

Check your permissions for /opt/gnome/bin/gtk-config. The whole problem from the beginning could be that /opt/gnome/bin/gtk-config is not readable by user.

Also take a look at line 755 in ./configure and see what configure is trying to do when permission was denied.

---------------------------
Steve Stites

minm 05-07-2005 07:29 PM

ok thanks!


All times are GMT -5. The time now is 06:59 AM.