Error Mecab-config Is Not Found In Your System
Contents |
1.MeCabのインストール とりあえずmecab-0.98を持ってくる。 wget http://sourceforge.net/projects/mecab/files/mecab/0.98/mecab-0.98.tar.gz そして、インストール ./configure configure error mecab config is not found in your system --prefix=自分のローカル --with-charset=utf8 を打ち込む。 「--prefix=自分のローカル」がないと、勝手に/usr/local/のほうにインストールされることになって、もちろんそんな権限はないのでエラーが起きる。
Mecab Config Command Not Found
makeのときに、 make[2]: `all' に対して行うべき事はありません。 make installのときに、 make[2]: `install-exec-am' に対して行うべき事はありません。 make[2]: `install-data-am' に対して行うべき事はありません。 と言われたが無視。それ以外はここらへんのページ見ながらコマンドを打ち込む。 2.MeCabの辞書のインストール MeCabの辞書をもってくる。 wget http://sourceforge.net/projects/mecab/files/mecab-ipadic/2.7.0-20070801/mecab-ipadic-2.7.0-20070801.tar.gz そして、インストール ./configure --prefix=自分のローカル --with-charset=utf8 と実行していたらエラー。 configure: error: mecab-config is not found in your system どうやらmecab-configがないって言ってるみたい。そこで、「自分のローカル/bin」の下を見てみると、ある! ふざけんなこのやろうと思いつつ検索。同じ人がいた。 これによると、 ./configure --with-mecab-config=自分のローカル/bin/mecab-config --prefix=自分のローカル --with-charset=utf8 できた! 3.mecab-pythonのインストール mecab-pythonをもってくる。 wget http://sourceforge.net/projects/mecab/files/mecab-python/0.98/mecab-python-0.98.tar.gz そして、インストール python setup.py build を実行すると、 sh: mecab-config: command not found と途中で言われ、エラー。 またmecab-configか…と思いながら検索すると同じような人発見。 setup.pyの mecab-config を 自分のローカル/mecab_config に書き換えるとうまくいくらしい。 私の場合、3.の途中でパスを書き換えていないことが悪いと気が付き、~/.bash_profileに export PATH="$PATH":自分のローカル/bin LD_LIBRARY_PATH=自分のローカル/lib export LD_LIBRARY_PATH を書き足し、最後のmecab-pythonの部分はsetup.pyを書き換えていない。 最初からこうしておけば楽だったのに… 【改訂新版】 Linuxコマンド ポケットリファレンス (Pocket Reference)(2009/04/08)沓名 亮典、平山 智恵 他商品詳細を見る ツイートする Permalink | コメント(0) | トラックバック(0) | 18:57 コメントを書く スパム対策のためのダミーです。もし見えても何も入力しないでください 画像認証 トラックバック -
for the latter online, and additionally no one post I found actually worked on its own, here is a compilation of steps I took from multiple Japanese posts that more or less worked when cobbled together. Unfortunately, because of an error I couldn't fix, I ultimately wasn't able to install from source on my own machine. So you may want to first try Homebrew as an option, because it was far simpler and worked on the first try. Install MeCab via Homebrew There are some modifications you have to make to the brew files first. http://d.hatena.ne.jp/hase1031/20111005/1317808636 Please follow these steps (courtesy of infinite sushi). $ brew edit mecab Then make these changes to the file: system "./configure", "--disable-debug", "--with-charset=utf8", "--enable-utf8-only", "--disable-dependency-tracking", "--prefix=#{prefix}" $ brew edit mecab-ipadic Replace the install block as follows: def install args = ["--disable-debug", "--disable-dependency-tracking", "--with-charset=utf8", "--enable-utf8-only", "--prefix=#{prefix}"] system "./configure", *args system "make install" end $ brew install mecab $ brew install mecab-ipadic Install MeCab from source First, http://mollydesjardin.com/guides/mecabinstructions.html I had to do this to make the C compiler work. YMMV. sudo ln -s /usr/bin/gcc /usr/bin/gcc-apple-4.2 Install MeCab: Get the MeCab source Switch to whatever directory you downloaded it to, then... $ tar zxfv mecab-0.996.tar.gz $ cd mecab-0.996 $ ./configure $ make $ make check Install MeCab Dictionaries: Get the IPA dictionary Switch to whatever directory you downloaded it to, then... $ tar zxfv mecab-ipadic-2.7.0-20070801.tar.gz $ cd mecab-ipadic-2.7.0-20070801 $ ./configure --with-charset=utf8 You will probably get error "configure: error: mecab-config is not found in your system" Try this solution from hateヨ... $ ./configure --with-mecab-config=~/usr/local/bin/mecab-config --prefix=~/usr/local/bin --with-charset=utf8 (This actually didn't work for me. I ended up using Homebrew to install instead. Finally: $ make $ sudo make install Test MeCab $ mecab test test 荅,堺荅,腟膵,*,*,*,* EOS If you get this output, you have successfully installed MeCab on your Mac. This is the professional web site of Molly Des Jardin, a space to share ideas with other scholars, librarians, artists, and photographers. I provide tailored resources so that they can be used by other students and scholars in my field, and I welcome collaboration and sharing. All of my work on this site
祉ャ 若 SSL Ubuntu yum apt VPS Mozc SSH Shell zsh crontab FTP MTA ImageMagic Mac Mac http://kzy52.com/entry/2014/01/05/173628 brew Mac莖弱ュ TimeMachine iPhone Android DOS Google Glass Windows? Surface ↑≪宴若激с Vim Emacs Apache nginx unicorn jenkins not found MySQL SQLite Git IDE Sublime eclipse VNC VMWare iTerm2 Dropbox OtherApps Microsoft Office Excel/SpreadSheet Libre Office Google Drive <若 腓上若 Facebook IME 羈√就膩 ↑ゃ API 悟罎膣API Amazon-ecs OpenCV MeCab GoogleAPI 若違 libvirt NoSQL CVゃ graphviz is not found svmlight libsvm Qt Intel math kernel library ↑違 違潟 HTML SCSS MarkDown Haml JavaScript node.js casper.js jQuery C荐茯 make C++ boost BLAS Ruby gem Nokogiri sqlite3-ruby ruby-excel ruby-opencv railsゃ潟鴻若 rails rails gem devise rails model rails view rails controller Passenger Capistrano bootstrap rbenv ruby荐羝 RSpec Gviz google search Ruby蚊若 jekyll ruby鴻ゃ潟 PHP CodeIgniter CGI R荐茯 R宴若 RMySQL RUnicode RStudio RSRuby R違 絽医 rsvm 若若堺遵 R荐羝 Python PyCharm 罩h頫 PythonLibrary Numpy iPython scikit-learn Pydot gensim PythonMecab pandas PythonGUI PySide python糸Library Python-OpenCV Python-PIL scikit-image Matplotlib python若炊宛膓 PyPI Sphinx PythonSWIG pyenv MATLAB VB C Sharp Java maven iOS Objective-C iOS肴贋 iOSゃ CocoaPods ECSlidingViewController iOS DB
絎荐篋綣с障 茯с 茯 茯 茯 kzy52's blog 2014-01-05 MeCab MeCab Ruby ゃ潟鴻若 区茯 箙吟綵∽膣茹f潟吾潟篏帥罘篌c MecabRubyゃ潟c潟違MeCab Rubyゃ潟鴻若<≪障 罎荐主医 Mac OS X CentOS MeCab ゃ潟鴻若 $ wget http://mecab.googlecode.com/files/mecab-0.996.tar.gz $ tar zxfv mecab-0.996.tar.gz $ cd mecab-0.996 $ ./configure $ make $ make check $ sudo make install param.cpp(69) [ifs] no such file or directory: /usr/local/lib/mecab/dic/ipadic/dicrc 羂<祉若... сIPA莨吾緇х脂蚊紊т紊帥 IPA莨吾ゃ潟鴻若 $ wget http://mecab.googlecode.com/files/mecab-ipadic-2.7.0-20070801.tar.gz $ tar zxfv mecab-ipadic-2.7.0-20070801.tar.gz $ cd mecab-ipadic-2.7.0-20070801/ $ ./configure --with-charset=utf8 $ make $ sudo make install configure: error: mecab-config is not found in your system mecab-config荀ゃ若榊贋絎 $ which mecab-config $ sudo ./configure --with-charset=utf8 --with-mecab-config=/usr/local/bin/mecab-config NAIST莨吾ゃ潟鴻若 http://sourceforge.jp/projects/naist-jdic/releases/ mecab-naist-jdic-0.6.3b-20111013.tar.gz 潟若 $ tar zxfv mecab-naist-jdic-0.6.3b-20111013.tar.gz $ cd mecab-naist-jdic-0.6.3b-20111013/ $ ./configure --with-charset=utf8 $ make $ sudo make install 篏帥 莎桁 莎桁緇絖ュ篁ヤ罕腟障 $ mecab 紊篋荀絅恰с羝< 紊 荅,堺荅,篋阪,,*,*,紊,帥,帥 荅,篆荅,*,*,*,*,,, d荅,*,*,*,*,*,,潟,潟 荅,筝,*,*,*,*,,, 荅,弱荅,筝,*,*,*,,, 篋 荅,,*,*,*,*,篋,, 荅,筝,*,*,*