5
5

More than 5 years have passed since last update.

pkg−configでHomebrewのkeg-onlyなライブラリを認識させるには

Last updated at Posted at 2015-02-02

背景

システム標準のライブラリとの衝突を避ける為に、HomebrewではOSXに標準で入っているライブラリは/usr/local/lib等へインストールしない。

その為、./configureなソースをビルドする際に、configureにOSX標準のライブラリを認識され、バージョンが古いからNGを食らったりする。

回避方法

PKG_CONFIG_PATHに.pcファイルの格納されたフォルダを指定する。

openssl

mdfindなどで以下のように.pcファイルを指定して、Homebrewで入れた格納されてるフォルダを見つける。

mdfine -name openssl.pc|grep /usr/local/Cellar
export PKG_CONFIG_PATH=/usr/local/Cellar/openssl/1.0.2/lib/pkgconfig

関連投稿

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5