【问题标题】:Installing gphoto2 on mac os x Yosemite - issue with ./configure在 mac os x Yosemite 上安装 gphoto2 - ./configure 问题
【发布时间】:2015-06-03 16:55:14
【问题描述】:

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

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 以及命令行工具(通过在终端中运行 gcc 对其进行了测试)。我究竟做错了什么?我该怎么办?

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

【问题讨论】:

  • which pkg-config 说什么?

标签: xcode macos terminal libgphoto2


【解决方案1】:

我不会费心自己建造它。我会从here 安装homebrew

那么你可以简单地做

brew install gphoto2

如果你以后想安装其他很酷的东西,你也会有一个不错的包管理器 - 例如。 ImageMagick、gawk、GNU sed、swatch、youtube-downloader、wxWidgets、vips、redis、sox、ffmpeg。要找到可以使用homebrew 管理的其他很酷的东西,只需这样做

brew search

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-10-24
    • 2015-06-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-19
    • 2015-12-06
    相关资源
    最近更新 更多