Click to See Complete Forum and Search --> : configure error installing libgphoto2 in RH 8.0


Rickdog
12-19-2002, 02:49 AM
As you can see from the output below, my configure process didn't go to well. I need libgphoto2 in my PKG_CONFIG_PATH, only problem, I don't have a PKG_CONFIG_PATH. How should it be created? I don't know much about pkg-config, when I looked at it, it was gobbledy gook, like a bin file.

checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking for pkg-config... /usr/bin/pkg-config
checking for libgphoto2 >= 2.1.1... Package libgphoto2 was not found in the pkg- config search path.
Perhaps you should add the directory containing `libgphoto2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgphoto2' found

configure: error: Library requirements (libgphoto2 >= 2.1.1) not met; consider a djusting the PKG_CONFIG_PATH environment variable if your libraries are in a non standard prefix so pkg-config can find them.
[root@localhost gphoto2-2.1.1]#

Wallex
12-19-2002, 03:06 AM
the so famous PGK_CONFIG_PATH is an enviromental variable you set with the set command. The the error message you get is pretty common... around 95% of the time it means that you do not installed another package it asked for. Are you sure you have libgphoto2 installed? If not.. then go install it and the problem will go away.

Now a bit on the config path.. when this one is not set, the default path is the /lib/pkgConfig of where the binary is. I have pkg-config in /usr/bin, so the default path is in /usr/include/pkgconfig. The only reason you'd want to modify that behaviour is when you installed another library in /usr/local, because then the package config file goes into /usr/local/include/pkgconfig, and thus, pkg-config won't find it. The whole /usr - /usr/local issue is rather annoying.. that's why I have them symlinked together (/usr/local is actually /usr) so that I can avoid these kind of issues. So if this is your problem (not so likely...) then look into using 'set' to set out the PKG_CONFIG_PATH. Finally... this package-config file is what the name implies.. a description of how your library was configured, it's needed to be able to properly use the library.

Rickdog
12-19-2002, 05:03 AM
Thanks for the info, but it appears the whole problem is probably a bug in gphoto cuz it downloads the thumbs but can't download the images no matter what I try on two different systems with the same errors. I ended up ruining my package manager so, another reinstall of RH 8.0. I have been reinstalling 8.0 more than my windows installs lately, :confused: .

posterboy
12-19-2002, 08:09 AM
I have been using gphoto2 stuff a long time now. Indeed, a bug is possible, but, we need to know that. Try doing the pull from the camera at the command line. Also, use the -debug flag while doing that. The error messages are very helpful. Just getting a --status from the camera is also useful. Some of this will equip you to get help. The project has a lot of really nice folks, including it's principal coder, Lutz. There's a mailing list, a website, etc. Here, the combination of gtkamera and gphoto2 has been bulletproof. Hang in there, it's a solvable mystery. HTH, Ray