Mac OSX-Lionのpkg-configに奇妙な問題があります。/usr/local/libディレクトリのフォルダにチェックするとき、私はLIBSを参照して.PCファイルはpkgconfigサブフォルダpkg-configはパスに入っていても.pcファイルを見つけることができません
であるしかし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.
:私は、私は次のエラーが表示され、ダウンロードモジュールのPythonのセットアップを実行している場合
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 Jul 2 15:17 ..
-rwxr-xr-x 1 root wheel 1339516 Jul 2 17:38 libcld.0.dylib
lrwxr-xr-x 1 root wheel 14 Jul 2 17:38 libcld.dylib -> libcld.0.dylib
-rwxr-xr-x 1 root wheel 918 Jul 2 17:38 libcld.la
drwxr-xr-x 3 root wheel 102 Jul 2 17:38 pkgconfig
aspen:lib toddysm$ cd pkgconfig/
aspen:pkgconfig toddysm$ ls -al
total 8
drwxr-xr-x 3 root wheel 102 Jul 2 17:38 .
drwxr-xr-x 6 root wheel 204 Jul 2 17:38 ..
-rw-r--r-- 1 root wheel 279 Jul 2 17:38 cld.pc
コマンドラインを使用して/ usr/local/lib /を指すようにPKG_CONFIG_PATHを設定することは役に立ちません。なんらかの理由で〜/ .bash_profileに設定すると、pkg-configはコマンドとして認識できなくなります。
私は、いくつかの依存関係を見逃していますが、何がわからないのでしょうか。 Linuxで同じことをしようとすると、Python Devパッケージpython2.7-devがなくなっていましたが、Mac上でこれをチェックする方法がわかりません。
ご協力いただければ幸いです。
ここでは、あなたが上記のコマンドからの完全な噴出です。 cld.cpはpkg_configパスにありますが、エラーは誤解を招くようです: – toddysm
ここにspewへのリンクがあります:http://pastebin.com/2Qv4Y3p4 – toddysm
@Brett Hale、デフォルトを問い合わせることができませんでしたか?うん、マンページにはすべてがある。ありがとう! –