0
0

More than 1 year has passed since last update.

gem install mecab を実行する時に「fatal error: 'mecab.h' file not found」エラーの対処

Posted at

概要

M1 MaxのMacBookを買ってから環境構築をした時、bundle installを実行したらmecab_wrap.cpp:1855:10: fatal error: 'mecab.h' file not foundエラーが出ました。今まではずっとIntelチップのMacを使っていたが、このエラーはありませんでした。

  • Mac OS X Ventura
  • ruby 3.1.3p185 (rbenv)
  • mecab of 0.996 (homebrewによるインストール済み)

解決策

gem i mecab -- --with-cppflags=-I/opt/homebrew/Cellar/mecab/0.996/include
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