Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mecab-config: command not found error while installing on mac #55

Closed
jiterika opened this issue Feb 12, 2019 · 4 comments
Closed

mecab-config: command not found error while installing on mac #55

jiterika opened this issue Feb 12, 2019 · 4 comments

Comments

@jiterika
Copy link

Hi,

Thank you for making this package available, when i try to install i get the following error. Please let me know how i can resolve it

Collecting mecab-python3
Using cached https://files.pythonhosted.org/packages/ac/48/295efe525df40cbc2173748eb869290e81a57e835bc41f6d3834fc5dad5f/mecab-python3-0.996.1.tar.gz
Complete output from command python setup.py egg_info:
/bin/sh: mecab-config: command not found
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/rd/qqy1bpm93qj1qcmrj8624qz91pyzr5/T/pip-build-pqo_16ve/mecab-python3/setup.py", line 29, in
inc_dir = mecab_config("--inc-dir")
File "/private/var/folders/rd/qqy1bpm93qj1qcmrj8624qz91pyzr5/T/pip-build-pqo_16ve/mecab-python3/setup.py", line 27, in mecab_config
return os.popen("mecab-config " + arg).readlines()[0].split()
IndexError: list index out of range

Thank You

@Kensuke-Mitsuzawa
Copy link
Owner

Hi. Thanks for your report.
As high probability, you might be failed to make install mecab, which is tokenizer library written in C++.

This line of error message shows that.

inc_dir = mecab_config("--inc-dir")

That's means, you couldn't call mecab-config command with --inc-dir option.

Please make sure, you could call mecab command and mecab-config command.

If it's not working, you are supposed to make install them first.

@jiterika
Copy link
Author

Hi,
Thank you for the reply.

"Please make sure, you could call mecab command and mecab-config command.

If it's not working, you are supposed to make install them first."

how can i install, when i tried to install by downloading the package and running
python setup.py install as mentioned in the installation instructions, i got the above error message.

Thank You

@Kensuke-Mitsuzawa
Copy link
Owner

Hi. Mecab is completely different from Python world. So, you couldn't make install with python package.

Please refer here to know a procedure for installation.
https://github.com/Kensuke-Mitsuzawa/JapaneseTokenizers/blob/master/README.md#mecab

I guess you could make it all with brew install mecab if you're familiar with brew which is a package manager for Mac. However, I'm not sure because I don't have any Mac laptop now.

@jiterika
Copy link
Author

Hi,

Thank you. It worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants