CentOS7 离线安装Nginx ./configure 报错
[root@localhost nginx-1.17.9]# ./configure
checking for OS
- Linux 3.10.0-693.el7.x86_64 x86_64
checking for C compiler ... found - using GNU C compiler
- gcc version: 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC)
checking for gcc -pipe switch ... found
此处省略 63 行
checking for void * size ... 8 bytes
checking for uint32_t ... uint32_t not found, u_int32_t not found
./configure: error: can not define uint32_t
[root@localhost nginx-1.17.9]#
这是我遇到的一个情况,我在网上找了很久答案,最终还是没有找到具体什么原因导致的。只知道一个答案说的是 gcc 编译环境没有安装好导致的。
我遇到的情况可能是下载的gcc环境不全,所以导致这个问题的出现
重新安装 gcc 编译环境
再 ./configure
一次就好了
网友评论