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

OSX Unable to have both libmecab and libMeCab (from mecab-java) due to case insensitive file system #11

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Install mecab
2. Install mecab-java

What is the expected output? What do you see instead?

expect to see libmecab.dylib from mecab
expect to see libMeCab.dylib from mecab-java

instead I see libMeCab.so from mecab-java (but we should have libMeCab.dylib)


What version of the product are you using? On what operating system?

mecab-0.996.tar.gz
mecab-java-0.996.tar.gz
OS X Mavericks 10.9.3

Please provide any additional information below.

You can create a dylib for mecab-java using:

g++ -dynamiclib -undefined suppress -flat_namespace *.o -o libMeCab.dylib


However because OS X is case insensitive, it isn't possible to have both 
libmecab and libMeCab (from mecab-java) due to case insensitive file system.  
Thus JNI loading will fail because you can't have both the real mecab and the 
JNI mecab existing at the same time.

Would officially recompiling and renaming the libMeCab.so to libMeCabJNI.dylib 
help?

Original issue reported on code.google.com by elje...@x2o.net on 9 Jul 2014 at 2:02

@hk0i
Copy link

hk0i commented Mar 2, 2016

I just wasted hours on this. Your suggestion works @GoogleCodeExporter thanks!

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

No branches or pull requests

2 participants