You are not logged in.

#1 2006-07-30 23:05:16

MrBackhand
Member
From: Texas, USA
Registered: 2006-05-26
Posts: 33

compile failure, complain missing libgtkhtml-2.0 [Solved]

Multiple programs fail to compile due to the following error:
checking for GTKHTML... configure: error: Package requirements (libgtkhtml-2.0 >= 2.0) were not met:

pkgconfig-0.20-1 is installed as well as libgtkhtml-2.6.3-2

I also ran: $ pkg-config libgtkhtml --modversion

and received the error:

Package libgtkhtml was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgtkhtml.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgtkhtml' found

I found libgtkhtml.pc on my system in /opt/gnome/lib/pkgconfig. I also see the gtkhtml.h and gtkhtmlcontext.h in /opt/gnome/include/gtkhtml-2.0/libgtkhtml.

Your help and suggestions are appreciated.

Thank you.

Offline

#2 2006-07-31 08:38:41

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: compile failure, complain missing libgtkhtml-2.0 [Solved]

Hi - me again. smile

In our last thread, I focussed on getting your package built. This time, I've actually tried that pkg-config command you give as an example, and it doesn't work here either. If you do

pkg-config --list-all | grep gtkhtml

you should see that the required pkgname is libgtkhtml-2.0. Try

pkg-config libgtkhtml-2.0 --modversion

and see what you get.
I should have asked you this last time as well but can you post your PKG_CONFIG_PATH?

Offline

#3 2006-07-31 16:22:02

MrBackhand
Member
From: Texas, USA
Registered: 2006-05-26
Posts: 33

Re: compile failure, complain missing libgtkhtml-2.0 [Solved]

Thank you for your reply and help.

I performed the steps you asked me to and this is the output I receive.

# pkg-config libgtkhtml-2.0 --modversion
Package libgtkhtml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgtkhtml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgtkhtml-2.0' found

The command below returns nothing.
# pkg-config --list-all | grep gtkhtml

So I ran:
pacman -S gtkhtml 
and got:
:: gtkhtml-3.10.2-1: is up to date.  Upgrade anyway? [Y/n] y
Targets: gtkhtml-3.10.2-1
Total Package Size:   1.3 MB
Proceed with upgrade? [Y/n] y

Selecting Yes does not change my ability to compile.

What is the next step?

Thank you.

Offline

#4 2006-07-31 17:25:05

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: compile failure, complain missing libgtkhtml-2.0 [Solved]

Please post the output of

echo $PKG_CONFIG_PATH

and let me know if

pkg-config --list-all

gives you anything at all (it should).

Offline

#5 2006-08-01 05:19:39

MrBackhand
Member
From: Texas, USA
Registered: 2006-05-26
Posts: 33

Re: compile failure, complain missing libgtkhtml-2.0 [Solved]

echo $PKG_CONFIG_PATH returns:
:/opt/kde/lib/pkgconfig:/opt/mozilla/lib/pkgconfig:/opt/qt/lib/pkgconfig

pkg-config --list-all returns quite a long list but I do not see libgtkhtml or gtk listed.  I do not have Gnome installed.

Thank you.

Offline

#6 2006-08-01 08:27:17

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: compile failure, complain missing libgtkhtml-2.0 [Solved]

OK. That's what I've been thinking all along, but I was put off by the fact that user's suggestion in the other thread didn't work. Let's try it again:

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome/lib/pkgconfig

Please note that this only affects the terminal that you enter it in. If it works, we can make a more permanent arrangement.

Ultimately, though, you've found a dependency bug - congratulations! It should not be possible to install the .pc file in that path without ensuring that the path is added to $PKG_CONFIG_PATH. I'll write it up.

<edit>
Bug# 5139, if you want to see what happens.

Offline

#7 2006-08-01 14:38:31

MrBackhand
Member
From: Texas, USA
Registered: 2006-05-26
Posts: 33

Re: compile failure, complain missing libgtkhtml-2.0 [Solved]

I tried:
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome/lib/pkgconfig
and it WORKED.

My programs now compile and make with out errors or problems!  Do I need to add that line to my .bashrc to make it a permanent fix?

Thank you for your help!

Offline

#8 2006-08-01 16:20:09

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: compile failure, complain missing libgtkhtml-2.0 [Solved]

Just install the gnome-common package.

Offline

#9 2006-08-02 22:29:11

MrBackhand
Member
From: Texas, USA
Registered: 2006-05-26
Posts: 33

Re: compile failure, complain missing libgtkhtml-2.0 [Solved]

If there is a way around this problem with out installing gnome-common I prefer that solution since I do not run gnome.  tomk has provided me that solution and it works.  However, I added:

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome/lib/pkgconfig

to .bashrc AND .bash_profile and when I run a console window it does not seem to be working.  Also, my prompt settings that are set in those files are not working.  When I login as root I get:
[root@parabola ~]#
but when I login as any user I get:
sh-3.1$

My users .bashrc has:
. $HOME/.bashrc
alias ls='ls --color=auto'
PS1='[u@h W]$ '
test -n "$DISPLAY" && export TERM=xterm-color
set prompt='[%n@%m %c]# '
'
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome/lib/pkgconfig

root .bashrc has:
alias ls='ls --color=auto'
PS1='[u@h W]$ '
test -n "$DISPLAY" && export TERM=xterm-color


Thank you for your help.

Offline

Board footer

Powered by FluxBB