Edward-Wu / srt-live-server

srt live server for low latency
Other
645 stars 192 forks source link

zlib1g-dev to resolve /usr/bin/ld: cannot find -lz error #86

Open ustoopia opened 3 years ago

ustoopia commented 3 years ago

This is not so much an issue as it is hopefully useful feeback for other people who run in to the same problem. Today I followed the instructions to install srtliveserver on a fresh Ubuntu 20.04 server. During the make processes I received an error and compiling couldn't complete.

/usr/bin/ld: cannot find -lz collect2: error: ld returned 1 exit status make: *** [Makefile:54: all] Error 1

After googling for a bit I found the solution to fix this issue. Just install zlib1g-dev package. (sudo apt install zlib1g-dev). After this I was able to successfully perform the make process.

ghost commented 3 years ago

yes I had same issue , it worked after I installed zlib1g-dev package!

Thanks!

Edward-Wu commented 3 years ago

thanks your feedback.