You are not logged in.
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
Hi - me again.
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
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
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
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
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
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
Just install the gnome-common package.
Offline
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