Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am having alot of trouble trying to compile gphoto. I first compiled libgphoto, and this is the error I get trying to compile gphoto.
checking for libgphoto2 to use... autodetect
checking for LIBGPHOTO2... 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:
PKG_CONFIG_PATH=
LIBGPHOTO2_LIBS=
LIBGPHOTO2_CFLAGS=
* Fatal: gphoto2 requires libgphoto2 >= 2.1.99 to build.
*
* Possible solutions:
* - set PKG_CONFIG_PATH to adequate value
* - call configure with LIBGPHOTO2_LIBS=.. and LIBGPHOTO2_CFLAGS=..
* - call configure with one of the --with-libgphoto2 parameters
* - get libgphoto2 and install it:
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,641
Rep:
Seems like your libgphoto2 isn't installed correctly? I installed it from source on a Slackware 10.2 system and the file libgphoto2.pc is in /usr/lib/pkgconfig/libgphoto2.pc. I had no problem after that to compile gphoto2, so I suggest to check what has been installed or not when compiling libgphoto2.
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,641
Rep:
I don't know sufficient about that, my only idea is to check /etc/ld.so.conf if /usr/local/lib is in the line of library folders there and call ldconfig to update the linked libraries, in case this step was not done right when/after installing glibphoto2.
I forgot to mention that libgphoto2.pc is in /usr/local/lib/pkgconfig.
You need to make sure pkg-config knows about stuff installed in /usr/local/lib/pkgconfig.
Run this command:
$ echo $PKG_CONFIG_PATH
and make sure /usr/local/lib/pkgconfig is in it. If it's not, add it and re-run the configure script. See if PKG_CONFIG_PATH is set in your .bash_profile. If it is, add /usr/local/lib/pkgconfig as necessary. Then it will always be in the pkg-config path.
Here is what you can do:
$ cd /path/to/gphoto/build/directory
$ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
$ ./configure [options]
see if that works. If it does, then add /usr/local/lib/pkgconfig to your .bash_profile, as mentioned above.
Thanks for a all the help. I got it to compile after linking libgphoto2.pc to /usr/lib.
Cool. That means /usr/lib/pkgconfig is in PKG_CONFIG_PATH. Anything else you install in /usr/local that has a pkg-config resource file (a ".pc" file) might cause you the same kind of grief as libgphoto2 did. Just a heads-up.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.