Blog posts

“/usr/bin/ld: cannot find -lz” when building node.js

Published 19. January 2012 (Original blog)

As part of the thesis I’ve been looking around for test framework for JavaScript. I’ve found Buster.JS, and its support of mocking, stubbing and asynchronous tests appealed to me. It required Node.JS to work, so I began the task of installing it. I started getting errors, and as I’m not that experienced with the whole compiling-process (I’ve experience from courses where we programmed with C and assembly, but ain’t really fond of it). It took me some time debugging the problem, but the line “/usr/bin/ld: cannot find -lz” stood out after some iterations.