找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 372|回复: 0

Padavan怎么编译nginx

[复制链接]
本帖最后由 anuny 于 2022-8-27 19:20 编辑

ubuntu编译Padavan的nginx,编译配置开启openssl和rewrite支持后会编译失败,不开启能编译成功,请问有大神知道怎么编译吗?


ubuntu已经安装了openssl的,但是编译会报错
  1. checking for OpenSSL library … not found
  2. checking for OpenSSL library in /usr/local/ … not found
  3. checking for OpenSSL library in /usr/pkg/ … not found
  4. checking for OpenSSL library in /opt/local/ … not found

  5. ./configure: error: SSL modules require the OpenSSL library.
  6. You can either do not enable the modules, or install the OpenSSL library
  7. into the system, or build the OpenSSL library statically from the source
  8. with nginx by using --with-openssl= option.
复制代码



/opt/rt-n56u/trunk/user/nginx/Makefile

  1. THISDIR=$(shell pwd)

  2. PPPD_DIR=$(ROOTDIR)/user/nginx

  3. CFLAGS  += -O2
  4. CFLAGS  += -ffunction-sections -fdata-sections
  5. LDFLAGS += -Wl,--gc-sections

  6. SRC_VER = 1.20.2
  7. SRC_NAME = nginx-$(SRC_VER)
  8. SRC_FILE = $(SRC_NAME).tar.gz
  9. SRC_URL := http://nginx.org/download/$(SRC_FILE)

  10. all: download_test extra_test config_test
  11.         $(MAKE) -C $(SRC_NAME)

  12. download_test:
  13.         ( if [ ! -f $(SRC_NAME).tar.gz ]; then \
  14.                 wget -t5 --timeout=20 --no-check-certificate -O $(SRC_FILE) $(SRC_URL); \
  15.         fi )

  16. extra_test:
  17.         ( if [ ! -d $(SRC_NAME) ]; then \
  18.                 tar xf $(SRC_FILE); \
  19.                 sed -i 's/if \/bin\/sh/if \(echo march \| grep march\) \|\| \/bin\/sh/' $(SRC_NAME)/auto/feature ; \
  20.                 sed -i 's/if \[ -x/if \(echo march \| grep march\)\; then ngx_size=4; elif \[ -x/' $(SRC_NAME)/auto/types/sizeof ; \
  21.         fi )

  22. config_test:
  23.         ( if [ -f ./config_done ]; then \
  24.                 echo "the same configuration"; \
  25.         else \
  26.                 make configure && touch config_done; \
  27.         fi )

  28. configure:
  29.         ( cd $(SRC_NAME) ; \
  30.         ./configure \
  31.                 --sbin-path=/usr/sbin/nginx \
  32.                 --prefix=/tmp/nginx \
  33.                 --conf-path=/etc/storage/nginx/nginx.conf \
  34.                 --pid-path=/var/run/nginx.pid \
  35.                 --error-log-path=/tmp/nginx/error.log \
  36.                 --http-log-path=/tmp/nginx/access.log \
  37.                 --with-http_ssl_module \
  38.                 --with-openssl \
  39.                 --without-http_rewrite_module \
  40.                 --without-http_gzip_module \
  41.                 --with-stream ; \
  42.         )
  43. clean:
  44.         if [ -f $(SRC_NAME)/Makefile ] ; then \
  45.                 $(MAKE) -C $(SRC_NAME) distclean ; \
  46.         fi ; \
  47.         rm -f config_done

  48. romfs:
  49.         $(ROMFSINST) $(THISDIR)/$(SRC_NAME)/objs/nginx /usr/sbin/nginx
  50.         $(ROMFSINST) -p +x /usr/bin/nginx.sh
复制代码



我的恩山、我的无线 The best wifi forum is right here.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-28 08:52

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表