简体   繁体   English

找不到 Pkg-config 脚本

[英]Pkg-config script could not be found

I am trying to install some software, but I keep receiving the error:我正在尝试安装一些软件,但我不断收到错误消息:

configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

I just installed the brew command, and tried to use it to install pkg-config.我刚刚安装了brew命令,并尝试使用它来安装 pkg-config。 It says that it is already installed.它说它已经安装了。

I made sure that it is in the path via export PATH=$PATH:/usr/bin/pkg-config .我通过export PATH=$PATH:/usr/bin/pkg-config确保它在路径中。

Also, trying to install glib, it says I am missing libfft.另外,尝试安装 glib,它说我缺少 libfft。 I used brew install libfft to install this missing package.我使用brew install libfft来安装这个丢失的包。 However, I still get a message stating that it is not there.但是,我仍然收到一条消息,指出它不存在。 This is a new mac, so perhaps things are not going in the proper directories?这是一个新的 mac,所以也许事情不在正确的目录中?

Any help would be appreciated, as I am beyond lost.任何帮助将不胜感激,因为我迷路了。

I don't know what formula you are trying to install, but the real problem may be that whatever you are trying to install isn't marked as "depending on" pkg-config.我不知道您要安装什么公式,但真正的问题可能是您要安装的任何内容都没有标记为“取决于”pkg-config。 It may need this line:它可能需要这一行:

depends_on "pkg-config" => :build

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM