kpu / kenlm

KenLM: Faster and Smaller Language Model Queries
http://kheafield.com/code/kenlm/
Other
2.52k stars 511 forks source link

Kelmn can not find lzma.h #404

Open Joost001 opened 2 years ago

Joost001 commented 2 years ago

When trying to install, the program reports and error stating that it can not fine the following file:

  util/read_compressed.cc:24:10: fatal error: 'lzma.h' file not found
  #include <lzma.h>
           ^~~~~~~~
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1

I check the /usr/local/include directory and the file is has a soft link to the brew Cellar location and the permissions are set to 775.

I've tried:

  1. installing directly from the tar and had the same result
  2. Reinstalling python3.10
  3. Reinstalling XCode
  4. Adding the file to the path

Please assist.

hieuhoang commented 2 years ago

sudo apt install liblzma-dev

Joost001 commented 2 years ago

This is on a Mac, I only have brew