mikemccand / chromium-compact-language-detector

Automatically exported from code.google.com/p/chromium-compact-language-detector
160 stars 31 forks source link

Installing on OS X #23

Open deanjones opened 8 years ago

deanjones commented 8 years ago

Hi,

I'm trying to get this library working under OS X, but not having much joy so far. I'm not sure whether this is an issue for this project or cld2, so please re-route me if necessary. I thought I'd managed to get cld2 built and installed (I've put libcld2.dylib and libcld2_full.dylib in /usr/local/lib), and I think python is picking them up because I was getting a different error before I did that. Now when I try to 'import cld2' in python, I get the following:

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/deanjones/anaconda2/lib/python2.7/site-packages/cld2.so, 2): 
Symbol not found: __ZN4CLD224ExtDetectLanguageSummaryEPKcibPKNS_8CLDHintsEiPNS_8LanguageEPiPdPSt6vectorINS_11ResultChunkESaISA_EES7_Pb
  Referenced from: /Users/deanjones/anaconda2/lib/python2.7/site-packages/cld2.so
  Expected in: dynamic lookup

I'm beyond the limit of my knowledge here, so any help would be very gratefully received. Thanks,

Dean.