LoginSignup
1
1

More than 5 years have passed since last update.

brew install mecab-ipadicでsyntax error

Posted at

2018/10/13版でbrewインストールを行ったところエラーが発生した。
環境はmacOS Sierra。

$ brew install mecab-ipadic
Error: mecab-ipadic: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mecab-ipadic.rb:39: syntax error, unexpected <<
    <<~EOS
      ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mecab-ipadic.rb:40: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
... enable mecab-ipadic dictionary, add to #{HOMEBREW_PREFIX}/e...
...                               ^
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mecab-ipadic.rb:40: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
...mecab-ipadic dictionary, add to #{HOMEBREW_PREFIX}/etc/mecab...
...                               ^

syntax errorを以下のように修正。

$ diff mecab-ipadic.rb.old mecab-ipadic.rb.new 
39c39
<     <<~EOS
---
>     <<-EOS

再度実行でインストール完了。

$ brew install mecab-ipadic                                                         
==> Downloading https://homebrew.bintray.com/bottles/mecab-ipadic-2.7.0-20070801.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring mecab-ipadic-2.7.0-20070801.sierra.bottle.tar.gz
==> Using the sandbox
==> Caveats
      To enable mecab-ipadic dictionary, add to /usr/local/etc/mecabrc:
        dicdir = /usr/local/lib/mecab/dic/ipadic
==> Summary
🍺  /usr/local/Cellar/mecab-ipadic/2.7.0-20070801: 15 files, 50.6MB
1
1
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
1
1