When I was compiling SSL recently, I kept encountering problems like missing limits.h, zconf.h, and errno.h, which made me nervous. I searched a lot online and found nothing useful. I will share my solution.
Approach:
Install dependency packages, especially lib and gcc compilation and kernel-related linux-kernel-headers
This is Ubuntu. You can install the following packages directly.
apt-get install -y gcc build-essential manpages-dev make perl
apt-get install -y zlib1g zlib1g-dev
apt-get install -y libssl-dev
apt-get install -y linux-libc-dev
If you find that the installation is useless, don’t give up, please reinstall it. This is how the blogger solved it
#--reinstall 可以重新安装软件
apt install --reinstall 软件包名
apt install --reinstall linux-libc-dev
Attached is the error screenshot: