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

源码安装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"

你可能感兴趣的:(Linux)