exaloop / codon

A high-performance, zero-overhead, extensible Python compiler using LLVM
https://docs.exaloop.io/codon
Other
15.01k stars 517 forks source link

Error: cannot find -lz: No such file or directory #441

Closed DeathBeastLLC closed 1 year ago

DeathBeastLLC commented 1 year ago

I have this error when i try to build into an executable but running the python file is fine and doesn't throw any errors.

Codon seems to successfully build on object file, but can't link it into an executable.

arshajii commented 1 year ago

Hi @DeathBeastLLC, this is because you don't have zlib installed -- you can install it with sudo apt-get install zlib1g-dev. Let me know if the issue persists after that.

DeathBeastLLC commented 1 year ago

Hi @arshajii Thank you for helping me! Everything now works.