facebookresearch / nle

The NetHack Learning Environment
Other
942 stars 113 forks source link

"bzlib.h: No such file or directory", but libbz2-dev is installed #351

Closed schmidtdominik closed 1 year ago

schmidtdominik commented 1 year ago

🐛 Bug

Hi, I'm trying to install NLE 0.9.0 on Ubuntu 22.04 LTS with Python 3.9 but it can't find bzlib.h. I do have libbz2-dev installed.

-- Build files have been written to: /tmp/pip-install-nsol4bcy/nle_1152ffd43d2f4304895063cb9edc715f/build/temp.linux-x86_64-cpython-39
[1/190] Building C object CMakeFiles/converter.dir/third_party/converter/converter.c.o
FAILED: CMakeFiles/converter.dir/third_party/converter/converter.c.o
/home/dominik/anaconda3/envs/tp2/bin/cc -DDEFAULT_WINDOW_SYS=\"rl\" -DDLB -DGCC_WARN -DHACKDIR=\"/tmp/pip-install-nsol4bcy/nle_1152ffd43d2f4304895063cb9edc715f/build/lib.linux-x86_64-cpython-39/nle/nethackdir\" -DNLE_ALLOW_SEEDING -DNLE_USE_TILES -DNOCLIPPING -DNOCWD_ASSUMPTIONS -DNOMAIL -DNOTPARMDECL -I/tmp/pip-install-nsol4bcy/nle_1152ffd43d2f4304895063cb9edc715f/third_party/libtmt -I/tmp/pip-install-nsol4bcy/nle_1152ffd43d2f4304895063cb9edc715f/third_party/converter -O3 -DNDEBUG -fPIC -MD -MT CMakeFiles/converter.dir/third_party/converter/converter.c.o -MF CMakeFiles/converter.dir/third_party/converter/converter.c.o.d -o CMakeFiles/converter.dir/third_party/converter/converter.c.o -c /tmp/pip-install-nsol4bcy/nle_1152ffd43d2f4304895063cb9edc715f/third_party/converter/converter.c
/tmp/pip-install-nsol4bcy/nle_1152ffd43d2f4304895063cb9edc715f/third_party/converter/converter.c:16:10: fatal error: bzlib.h: No such file or directory
   16 | #include <bzlib.h>
      |          ^~~~~~~~~
compilation terminated.
schmidtdominik commented 1 year ago

Solved it by running conda install -c conda-forge cxx-compiler.