Yuto Blog

Yuto Blog

Tag: Ruby Gem
2 articles

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

概要 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
Created by Yuto at 2022-12-05 06:00

私の使うGem

```ruby:Gemfile #! vim: ruby Yuto's Gemfile source 'https://rubygems.org' gem 'rails' Authentication gem 'devise' # Flexible authentication solution for Rails with Warden gem 'devise-i18n' # Translations for the devise gem gem 'omniauth-facebook' # OmniAuth strategy for Facebook gem 'omniauth-twitter' # OmniAuth strategy for Twitter gem 'omniauth-google-oauth2' # OmniAuth strategy for Google gem 'omniauth-tumblr' # OmniAuth strategy for Tumblr gem 'omniauth-amazon' # OmniAuth strategy for...
Created by Yuto at 2022-01-21 17:42