0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

M1 Mac Homebrew環境のcabocha gemで `ld: library not found for -lcrfpp` が発生する

Last updated at Posted at 2022-04-11

概要

cabochaをhomebrewでインストールしたらcabocha gemのインストールに失敗する。

対応

以下でインストールできた。

brew install cabocha
bundle config --global build.cabocha --with-opt-dir="$(brew --prefix)"
bundle

もしくは以下。

brew install cabocha
gem install cabocha -- --with-opt-dir="$(brew --prefix)"

NOTE

  • 僕の環境は $ echo $(brew --prefix) => /opt/homebrew
  • Homebrewでインストールしたライブラリのパスを共通で通す設定がどこかにあるのかもしれないが見つけられなかった。
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?