Ubuntu + Handbrake + AMD64 == “cannot find -lz”

February 11th, 2008 | by Jeff Fitzsimons |

Attempting to compile Handbrake using jam resulted in a strange error, something like:

/usr/bin/ld: cannot find -lz
error: C compiler
cannot create executables

According to the Internets, I needed to install the development version of zlib. However, zlib-devel does not appear to exist in any Ubuntu apt repository. Ultimately, this command installed the necessary library and resulted in a successful compile:

sudo apt-get install zlib1g-dev

Post a Comment