Package check was not found in the pkg-config search path

ぃ、小莉子 提交于 2019-12-13 17:45:58

问题


I am using check package in netbeans for C programming, But I receive this error from netbeans: Package check was not found in the pkg-config search path. Perhaps you should add the directory containing `check.pc' to the PKG_CONFIG_PATH environment variable No package 'check' found

In the terminal if I insert this line: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig and then pkg-config --modversion check it can find the check package, but in netbeans I still get the same error. What should I do?

Thanks in advance


回答1:


If you use OS X Mavericks, Then download packages "check", "valgrind", "gcc" and "pkg-config" through the HomeBrew.
then edit /etc/launchd.conf and add there setenv PATH <your $PATH> Substitute with your real path. In this file no $HOME or such can't be used. This path should include gcc, check and valgrind. For this to take effect you need to restart your computer.

For me this worked:

$ cat /etc/launchd.conf
setenv PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin


来源:https://stackoverflow.com/questions/25632454/package-check-was-not-found-in-the-pkg-config-search-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!