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

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

About Jeff Fitzsimons

Jeff Fitzsimons is a software engineer in the California Bay Area. Technical specialties include C++, Win32, and multithreading. Personal interests include rock climbing, cycling, motorcycles, and photography.
This entry was posted in Technology. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *