Install Mecab on Linux (CentOS) with brew

Assumption: Rental server Lollipop Managed Cloud. I think you can do it elsewhere.

1. First install Homebrew for installation.

Enter the installation code on the Official Site into the terminal.

/bin/bash -c "$(curl -fsSL"

2. Pass the Homebrew path

The command "brew" cannot be used as it is. You have to set it up so that you can use it.

If you enter this in the terminal at once, you can use Homebrew with "brew".

test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile


3. Check if brew can be used

It's okay if you don't enter this much and get "brew: command not found". It's ok if various explanations come out in a bar.


4. Install Mecab

First, install mecab with brew. However, this alone cannot be used. Dictionary data is required.

brew install mecab

Install the dictionary. Done!

brew install mecab-ipadic

5. Check if mecab can be used

Type in mecab and the terminal, and try typing something in the blank.


Belly noun,General,*,*,*,*,stomach,Onaka,Onaka
Decreased verb,Independence,*,*,Five steps, La line,Continuous connection,decrease,Heh,Heh
Auxiliary verb,*,*,*,Special,Uninflected word,Ta,Ta,Ta
.. symbol,Punctuation,*,*,*,*,。,。,。

If you say that you are hungry, the analyzed results will come out. that's all~. Thank you for your hard work.

Recommended Posts

Install Mecab on Linux (CentOS) with brew
Install mecab on Marvericks
Install Faiss on CentOS 7
Install numba on CentOS 7.2
Install Python3.4 on CentOS 6.6
Install mecab-python on CentOS
Install Python 2.7.3 on CentOS 5.4
Install mecab on mac
Install awscli on centos7
Install Chainer on CentOS 6.7
[Ansible] Install dnf on Centos7 with Python3 interpreter
Install PHP 7 series on Amazon Linux 2 with Amazon Linux Extras
Install Linux on your Chromebox
Install ImageMagick-6.2.x series on CentOS7.7
Install Python 3.8 on CentOS 7 (SCL)
Install Chrome on CentOS 7 series
Install tomcat 5.5 on Amazon Linux.
Install Python 3.8 on CentOS 8 (AppStream)
Install Homebrew on Amazon Linux 2
Install strongSwan 5.9.1 on Amazon Linux 2
How to install Python2.7 python3.5 with pyenv (on RHEL5 CentOS5) (2016 Nov)
Install Linux (CentOS) on your PC using a USB stick
Install Python Pillow on Amazon Linux
Steps to install MySQL 8.0 on CentOS 8.1
Install Mecab and mecab-python3 on Ubuntu 14.04
Install CUDA on Linux Mint Mate 20
Install Arch Linux on DeskMini A300
Steps to install VirtualBox on CentOS
How to install VMware-Tools on Linux
Install pyenv on EC2 (Amazon Linux)
Install java (Oracle JDK14) on CentOS7
[Linux] I installed CentOS on VirtualBox
How to install PyPy on CentOS
How to install TensorFlow on CentOS 7
Install pip on CentOS7. Also iPython.
Install pyStruct on MacOSX10.11 with macports
Install VirtualBox on CentOS 7 on VirtualBox (mac + vagrant)
[Note] Install Imagick on Amazon Linux2
Install Python on CentOS using Pyenv
How to install Maven on CentOS
Study Note 9_Install Jenkins on CentOS7
Install python2.x on catalina with pyenv
Install Python on CentOS using pyenv
I'll install Ruby on EC2 (Amazon Linux2) 2020
Install scipy on Linux without internet connection
How to install aws-session-manager-plugin on Manajro Linux
Enable sar command on CentOS (install sysstat)
Install wsl2 and master linux on windows
X86 assembler on Linux (linkage with C)
A memo with Python2.7 and Python3 on CentOS
[C] [python] Read with AquesTalk on Linux
Install and Configure TigerVNC server on Linux
scipy stumbles with pip install on python 2.7.8
5 reasons to install Linux on your laptop.
How to install Anisble on Amazon Linux 2
Dockerfile: Install Docker on your Linux server
How to update security on CentOS Linux 8
How to install Apache (httpd) on CentOS7
Disable IPv6 on network interface on CentOS Linux 8
How to install php7.4 on Linux (Ubuntu)
How to install Eclipse GlassFish 5.1.0 on CentOS 7