我在Mac OSX-Lion上看到了pkg-config的一个奇怪问题.当我运行我下载的模块的python设置时,我收到以下错误:
aspen:python toddysm$ sudo ./setup.py install
Password:
`pkg-config --libs --cflags cld` returns in error:
Package cld was not found in the pkg-config search path.
Perhaps you should add the directory containing `cld.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cld' found
The `cld` C++ library is absent from this system. Please install it.
Run Code Online (Sandbox Code Playgroud)
但是当检入/ usr/local/lib文件夹时,我看到libs和.pc文件位于pkgconfig子文件夹中
aspen:~ toddysm$ cd /usr/local/lib/
aspen:lib toddysm$ ls -al
total 2640
drwxr-xr-x 6 root wheel 204 Jul 2 17:38 .
drwxr-xr-x 9 root wheel 306 …Run Code Online (Sandbox Code Playgroud)