Thank you Matt.
I executed ant kenlm successfully (with some errors highlighted in yellow). The error persists and no lmplz folder was generated in joshua-6.0.5/bin.
elma@VBUbuntu:~/ws/joshua-6.0.5$ ant kenlm
Buildfile: /home/elma/ws/joshua-6.0.5/build.xml
check-joshua-home:
[echo] JOSHUA = /home/elma/ws/joshua-6.0.5 basedir = /home/elma/ws/joshua-6.0.5
kenlm:
[exec] -- Boost version: 1.54.0
[exec] -- Found the following Boost libraries:
[exec] -- program_options
[exec] -- system
[exec] -- thread
[exec] -- unit_test_framework
[exec] -- Configuring done
[exec] -- Generating done
[exec] -- Build files have been written to: /home/elma/ws/joshua-6.0.5/src/kenlm/build
[exec] [ 35%] Built target kenlm_util
[exec] Linking CXX executable ../bin/bit_packing_test
[exec] CMakeFiles/kenlm_util.dir/read_compressed.cc.o: In function `util::(anonymous namespace)::StreamCompressed<util::(anonymous namespace)::GZip>::~StreamCompressed()':
[exec] read_compressed.cc:(.text+0x219): undefined reference to `inflateEnd'
[exec] CMakeFiles/kenlm_util.dir/read_compressed.cc.o: In function `util::(anonymous namespace)::StreamCompressed<util::(anonymous namespace)::GZip>::~StreamCompressed()':
[exec] read_compressed.cc:(.text+0x439): undefined reference to `inflateEnd'
[exec] CMakeFiles/kenlm_util.dir/read_compressed.cc.o: In function `util::(anonymous namespace)::ReadFactory(int, unsigned long&, void const*, unsigned long, bool)':
[exec] read_compressed.cc:(.text+0xa49): undefined reference to `inflateInit2_'
[exec] CMakeFiles/kenlm_util.dir/read_compressed.cc.o: In function `util::(anonymous namespace)::StreamCompressed<util::(anonymous namespace)::GZip>::Read(void*, unsigned long, util::ReadCompressed&)':
[exec] read_compressed.cc:(.text+0xe8f): undefined reference to `inflate'
[exec] collect2: error: ld returned 1 exit status
[exec] make[2]: *** [bin/bit_packing_test] Error 1
[exec] make[1]: *** [util/CMakeFiles/bit_packing_test.dir/all] Error 2
[exec] make: *** [all] Error 2
[exec] cp: cannot stat ‘bin/query’: No such file or directory
[exec] cp: cannot stat ‘bin/lmplz’: No such file or directory
[exec] cp: cannot stat ‘bin/build_binary’: No such file or directory
[exec] g++: error: lm/CMakeFiles/kenlm.dir/*.o: No such file or directory
[exec] Result: 1
BUILD SUCCESSFUL
Total time: 1 second