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

Error in macOS(Mojave) #10

Open
kiooss opened this issue Jan 24, 2019 · 1 comment
Open

Error in macOS(Mojave) #10

kiooss opened this issue Jan 24, 2019 · 1 comment

Comments

@kiooss
Copy link

kiooss commented Jan 24, 2019

Does not work in macOS (Mojave).

╰❯❯❯ php -r "print_r(\MeCab\split('あいうえお'));"
PHP Warning:  MeCab\split(): /BuildRoot/Library/Caches/com.apple.xbs/Sources/MeCab/MeCab-779.24.1/src/tagger.cpp(161) [tokenizer_.open(*param)] /BuildRoot/Library/Caches/com.apple.xbs/Sources/MeCab/MeCab-779.24.1/src/tokenizer.cpp(334) [n.value != 0] cannot find UNK category: DEFAULT in Command line code on line 1

Warning: MeCab\split(): /BuildRoot/Library/Caches/com.apple.xbs/Sources/MeCab/MeCab-779.24.1/src/tagger.cpp(161) [tokenizer_.open(*param)] /BuildRoot/Library/Caches/com.apple.xbs/Sources/MeCab/MeCab-779.24.1/src/tokenizer.cpp(334) [n.value != 0] cannot find UNK category: DEFAULT in Command line code on line 1
╰❯❯❯ php -i | grep mecab
Additional .ini files parsed => /usr/local/etc/php/7.2/conf.d/ext-mecab.ini,
mecab
mecab.default_dicdir => /usr/local/lib/mecab/dic/ipadic => /usr/local/lib/mecab/dic/ipadic
mecab.default_rcfile => /usr/local/etc/mecabrc => /usr/local/etc/mecabrc
mecab.default_userdic => no value => no value

It seems that the binding linked to the macOS default /usr/lib/libmecab.dylib caused this issue.
Is there any solution? Thanks.

@DebbyLee
Copy link

Sorry to ping you. I'm in counter the same issue now. Do you happen to figure out the solution yet.

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