FreeBSD / Linux 編譯軟體前 configure 階段出現 Package xxxx was not found in the pkg-config search path…..

筆記一下 , 在 FreeBSD/Linux 編譯軟體的前置作業 configure 階段出現 Package xxx  was not found in the pkg-config search path Perhaps you should add the directory containing `xxx.pc’ to the PKG_CONFIG_PATH environment variable
但實際上去看了 /usr/local/lib/pkgconfig 裡明明就有 xxx.pc , 這時候很簡單地只要這麼做即可 :
./configure  PKG_CONFIG_PATH=”/usr/local/lib/pkgconfig” –with-xxx –with-ooo  …….

這樣這個 configure 就會去找 /usr/local/lib/pkgconfig 底下的 *.pc 了 .

Share your vote!

Do you like this post?
  • Fascinated
  • Happy
  • Sad
  • Angry
  • Bored
  • Afraid

Leave a Reply

Your email address will not be published. Required fields are marked *

Please help to input verification code