Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to use node-gphoto2 from npm, but I am having trouble with the libgphoto2-2-dev dependency. I've installed it, but pkg-config says it's not there.

$ sudo aptitude search gphoto
p   gphoto2                         - The gphoto2 digital camera command-line c
p   gphotofs                        - filesystem to mount digital cameras      
i A libgphoto2-2                    - gphoto2 digital camera library           
i   libgphoto2-2-dev                - gphoto2 digital camera library (developme
p   libgphoto2-dev-doc              - gphoto2 digital camera library (developme
i A libgphoto2-l10n                 - gphoto2 digital camera library - localize
i A libgphoto2-port0                - gphoto2 digital camera port library      
v   libgphoto2port                  -                                          

So yes, libgphoto2-2-dev is reported as installed, but:

$ pkg-config --list-all | grep photo
libgphoto2_port                libgphoto2_port - Device-independent access to serial, USB, and other ports
libgphoto2                     libgphoto2 - Library for easy access to digital cameras

pkg-config says it's not. What do I need to do to diagnose this problem? I've looked at the related questions, and $PKG_CONFIG_PATH is blank.

Edit: Here's the line in the build which is failing:

(pkg-config libgphoto2 || dpkg -s libgphoto2-2-dev || (echo 'ERROR: libgphoto2 seems not to be installed.' 1>&2; exit 1)) && node-gyp rebuild
share|improve this question
    
Could you post the output of the pkg-config that tells you it is not installed? –  terdon May 14 '13 at 10:34
    
To me, the pkg-config output seems to indicate that libgphoto2 is present. –  chirlu May 14 '13 at 12:59
    
I think pkg-config should list libgphoto2-2-dev. –  Joe Frambach May 14 '13 at 16:28
    
That’s just the Debian package name. pkg-config libgphoto2 should work; what happens when you try pkg-config --libs libgphoto2? –  chirlu May 15 '13 at 9:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.