mecab icon indicating copy to clipboard operation
mecab copied to clipboard

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

Open GoogleCodeExporter opened this issue 9 years ago • 1 comments

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 [email protected] on 9 Jul 2014 at 2:02

GoogleCodeExporter avatar Mar 14 '15 15:03 GoogleCodeExporter

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

hk0i avatar Mar 02 '16 06:03 hk0i