在 mac os x Yosemite 上安装 gphoto2 - ./configure 的问题

Installing gphoto2 on mac os x Yosemite - issue with ./configure

我正在尝试在我的 macbook pro 上安装 gphoto2。我按照 README 文件的建议,从他们的网站和终端 I cd Downloads 和 运行 ./configure 安装了 tar.gz。我不断收到此错误:

checking for pkg-config... false
configure: error: 
*** Build requires pkg-config
***
*** Possible solutions:
***   - set PKG_CONFIG to where your pkg-config is located
***   - set PATH to include the directory where pkg-config is installed
***   - get it from http://freedesktop.org/software/pkgconfig/ and install it

我安装了 Xcode 6,以及命令行工具(在终端中通过 运行ning gcc 测试)。我究竟做错了什么?我该怎么办?

另外,我应该安装 gphoto2 还是 libgphoto2?

我不会费心自己构建它。我将从 here.

安装 homebrew

那么你可以简单地做

brew install gphoto2

如果您想稍后安装其他很棒的东西,您还将拥有一个不错的包管理器 - 例如ImageMagick、gawk、GNU sed、swatch、youtube-downloader、wxWidgets、vips、redis、sox、ffmpeg。要找到可以使用 homebrew 管理的其他很酷的东西,只需执行

brew search