nginx编译报错处理

下载nginx安装包
wget http://nginx.org/download/nginx-1.9.15.tar.gz && tar xvf nginx-1.9.15.tar.gz && cd nginx-1.9.15

./configure 这一步是发生报错:

./configure: error: the HTTP gzip module requires the zlib library.
You can either disable the module by using --without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with nginx by using --with-zlib=<path> option.

很明显缺少依赖包zlib

首先想到的是yum -y install zlib

不知道咋回事儿没装上去 (我用的是eprl的网络源)在这里不纠结为啥yum不能安装的问题

立马祭出一条命令:find / -name zlib

[[email protected] nginx-1.9.15]# find / -name zlib
/etc/yum.repos.d/nginx-1.9.15/auto/lib/zlib

nginx源码包自带zlib

接下来在编译的时候:./configure --prefix==/usr/local/nginx --with-zlib=/etc/yum.repos.d/nginx-1.9.15/auto/lib/zlib

报错信息中发现不再是缺少zlib包,缺少其他包也可以按照这种操作进行直到最后输出结果为

nginx path prefix: "/usr/local/product/nginx1.9.14"
  nginx binary file: "/usr/local/product/nginx1.9.14/sbin/nginx"
  nginx modules path: "/usr/local/product/nginx1.9.14/modules"
  nginx configuration prefix: "/usr/local/product/nginx1.9.14/conf"
  nginx configuration file: "/usr/local/product/nginx1.9.14/conf/nginx.conf"
  nginx pid file: "/usr/local/product/nginx1.9.14/logs/nginx.pid"
  nginx error log file: "/usr/local/product/nginx1.9.14/logs/error.log"
  nginx http access log file: "/usr/local/product/nginx1.9.14/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"

输出以上信息表示nginx编译成功

时间: 2024-07-28 18:10:51

nginx编译报错处理的相关文章

nginx安装报错./configure: error: the http rewrite module requires the pcre library.

nginx编译时报错: ./configure: error: the http rewrite module requires the pcre library. 解决方法: [[email protected] nginx-1.5.9]#  yum install zlib-devel -y

Nginx启动报错:

Nginx启动报错:10013: An attempt was made to access a socket in a way forbidden 2014-08-07 14:39:10   来源:   评论:0 点击: Nginx在win7,win2008下启动报错:bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permis

android4.4 编译报错,和llvm 有关的

问题描述 最近想看一下android4.4 的source ,但是在编译的过程中遇到了下面的问题,各位大哥帮忙看一下,我实在是搞不定了,网上介绍的关于4.0 的类似的错误修改方法在4.4 上无效,其实错误也不是一样的. 4.0 的错误修改方法: $vi external/llvm/llvm-host-build.mk + LOCAL_LDLIBS := -lpthread -ldl 下面的是4.4 编译报错信息 external/llvm/lib/Transforms/Vectorize/BBV

选iphone5可以正常编译运行 , 但是5s和6和6s都会编译报错

选iphone5可以正常编译运行   但是5s和6和6s都会编译报错 iphone6编译报错iphone5s编译报错 解决办法是,Build settings里面把Architectures里面的$(ARCHS_STANDARD)去掉,加入armv7和armv7s两个.

php编译报错

最近发现MDT推出去的系统的有不同问题,其问题就不说了,主要是策略权限被域继承了.比如我们手动安装的很多东东都是未配置壮态,推的就默认为安全壮态了,今天细找了一下,原来把这个关了就可以了. php编译报错,布布扣,bubuko.com

DVR_RDK编译报错

报错信息: abnormal termination of /opt/dm8168/dvr_rdk/../ti_tools/cgt_dsp/cgt6x_7_3_5//bin/cmp6x make[2]: *** [/opt/dm8168/dvr_rdk/../dvr_rdk/build/dvr_rdk/obj/ti816x-evm/c6xdsp/debug/MAIN_APP_c6xdsp_pe674.oe674] Error 1 make[1]: *** [apps] Error 2 make:

Ubuntu下android studio 编译报错A problem occurred starting process &#39;command &#39;/Android/Sdk/build-tools/21.1.2/aapt&#39;&#39;

此问题在stack  over flow 上找到答案. 原链接地址:http://stackoverflow.com/questions/27589844/android-studio-1-0-2-not-building-appmergedebugresources-error 解决方法: //在终端分别运行下面两条指令,安装lib32stdc++6 和lib32z1 sudo apt-get install lib32stdc++6 sudo apt-get install lib32z1

升级redis3.2.7编译报错“ undefined reference to `clock_gettime&#39;”

由于redis有个紧急的安全漏洞更新所以我升级线上的redis-cluster的版本.编译时报了一个错:" redis-3.2.7/deps/jemalloc/src/nstime.c:120: undefined reference to `clock_gettime' collect2: ld returned 1 exit status make[1]: *** [redis-server] Error 1 make[1]: Leaving directory `redis-3.2.7/s

「android」Ubuntu下android studio 编译报错A problem occurred starting process &#39;command &#39;/Android/Sdk/build-tools/21.1.2/aapt&#39;&#39;(转)

转自”http://www.cnblogs.com/jonzone/p/5246531.html“ 此问题在stack  over flow 上找到答案. 原链接地址:http://stackoverflow.com/questions/27589844/android-studio-1-0-2-not-building-appmergedebugresources-error 解决方法: //在终端分别运行下面两条指令,安装lib32stdc++6 和lib32z1 sudo apt-get