Help us understand the problem. What is going on with this article?

ffi-1.11.1がMac OSX High Sierraでのインストールでコケる件

More than 1 year has passed since last update.



$ brew install libffi

linkを試みるとこんなメッセージがでてくるので PKG_CONFIG_PATH のほうをコピっておく

$ brew link --force libffi
Warning: Refusing to link macOS-provided software: libffi
For compilers to find libffi you may need to set:
  export LDFLAGS="-L/usr/local/opt/libffi/lib"

For pkg-config to find libffi you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"

ffiのgemをインストールする際に PKG_CONFIG_PATH を指定

$ PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig" gem install ffi
Building native extensions. This could take a while...
Successfully installed ffi-1.11.1
Parsing documentation for ffi-1.11.1



Elmエンジニャー /
Fringeは、最新のテクノロジーとプロフェッショナルによるサービスにより、社会課題に仮説を立てて市場に広げていくことで、数十年という長期的なスパンで価値を生み出し続け、より良い世界を創る集団です。 既存の領域に限らず、時流を読み、仮説を生み出し、テクノロジーの力で優れたサービスを生み出し続けます。
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away