Skip to content

Instantly share code, notes, and snippets.

@comoc
Created April 20, 2017 05:09
Show Gist options
  • Save comoc/11e999661ffddf8290a5c218d72ca04c to your computer and use it in GitHub Desktop.
Save comoc/11e999661ffddf8290a5c218d72ca04c to your computer and use it in GitHub Desktop.
Vagrant上のVMへのmecab-ipadic-neologdのインストールが失敗する時 ref: http://qiita.com/comocc/items/bfa5c4fe3c84d31e8ae7
(前略)
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
reading ./mecab-user-dict-seed.20170417.csv ... /home/ubuntu/mecab-ipadic-neologd/bin/../libexec/make-mecab-ipadic-neologd.sh: line 492: 2130 Aborted (core dumped) ${MECAB_LIBEXEC_DIR}/mecab-dict-index -f UTF8 -t UTF8
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", 4096]
end
end
total used free shared buff/cache available
Mem: 3.9G 47M 1.3G 5.8M 2.5G 3.6G
Swap: 0B 0B 0B
(前略)
[install-mecab-ipadic-NEologd] : Usage of mecab-ipadic-NEologd is here.
Usage:
$ mecab -d /usr/lib/mecab/dic/mecab-ipadic-neologd ...
[install-mecab-ipadic-NEologd] : Finish..
[install-mecab-ipadic-NEologd] : Finish..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment