报错:./configure: error: can not define uint64_t

在尝试源码安装Nginx时遇到配置错误,报错显示uint64_t未找到。问题在于系统缺少必要的开发库。解决方案是通过yum安装kernel-headers、kernel-devel、gcc和make。完成安装后重新执行配置命令,成功生成Makefile,显示了Nginx的配置摘要信息。
摘要由CSDN通过智能技术生成

源码安装nginx,执行:

./configure --prefix=/usr/local/nginx/ --user=www --group=www --with-http_stub_status_module

时报错:

checking for void * size ... 8 bytes
checking for uint64_t ... uint64_t not foundcat: objs/autotest.c: No such file or directory
 u_int64_t not foundcat: objs/autotest.c: No such file or directory

./configure: error: can not define uint64_t

这一步主要是检测nginx软件源码安装时所需要依赖的环境,库文件。检测Linux系统是否存在GCC编译环境。自定义nginx软件安装的路径,功能模块。最终产生Makefile文件。

解决方法:
安装以下即可:

yum install  kernel-headers kernel-devel gcc make -y

安装完成后再次执行就OK了

creating objs/Makefile

Configuration summary
  + using system PCRE library
  + OpenSSL library is not used
  + using builtin md5 code
  + sha1 library is not found
  + using system zlib library

  nginx path prefix: "/usr/local/nginx/"
  nginx binary file: "/usr/local/nginx//sbin/nginx"
  nginx configuration prefix: "/usr/local/nginx//conf"
  nginx configuration file: "/usr/local/nginx//conf/nginx.conf"
  nginx pid file: "/usr/local/nginx//logs/nginx.pid"
  nginx error log file: "/usr/local/nginx//logs/error.log"
  nginx http access log file: "/usr/local/nginx//logs/access.log"
  nginx http client request body temporary files: "client_body_temp"
  nginx http proxy temporary files: "proxy_temp"
  nginx http fastcgi temporary files: "fastcgi_temp"
  nginx http uwsgi temporary files: "uwsgi_temp"
  nginx http scgi temporary files: "scgi_temp"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

阿蔡BLOG

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值