libgphoto2-2-dev 已安装,但 pkg-config 不会列出它。Deb Wheezy 新安装

libgphoto2-2-dev 已安装,但 pkg-config 不会列出它。Deb Wheezy 新安装

我正在尝试使用 npm 中的 node-gphoto2,但在 libgphoto2-2-dev 依赖项方面遇到了问题。我已经安装了它,但 pkg-config 说它不存在。

$ 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                  -                                          

因此是的,报告 libgphoto2-2-dev 已安装,但是:

$ 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 说不是。我需要做什么来诊断这个问题?我查看了相关问题,$PKG_CONFIG_PATH 是空白的。

编辑:这是构建中失败的行:

(pkg-config libgphoto2 || dpkg -s libgphoto2-2-dev || (echo 'ERROR: libgphoto2 seems not to be installed.' 1>&2; exit 1)) && node-gyp rebuild

相关内容