java技術(shù)研究

          統(tǒng)計(jì)

          留言簿(3)

          閱讀排行榜

          評(píng)論排行榜

          nginx-sticky-module-1.1安裝不上

          今天在安裝的時(shí)候出現(xiàn)這樣的錯(cuò)誤。

          src/http/modules -I src/mail \

          -o objs/addon/nginx-sticky-module-1.1/ngx_http_sticky_misc.o \ ../nginx-sticky-module-1.1/ngx_http_sticky_misc.c
          In file included from ../nginx-sticky-module-1.1/ngx_http_sticky_misc.c:11:0: src/core/ngx_sha1.h:19:17: fatal error: sha.h: No such file or directory compilation terminated. make1?[objs/addon/nginx-sticky-module-1.1/ngx_http_sticky_misc.o] Error 1 make1?: Leaving directory `/etc/nginx/nginx-1.4.1' make: build? Error 2

          我的命令是
          ./configure --prefix=/opt/nginx --with-file-aio --with-http_stub_status_module --add-module=../nginx-sticky-module-1.1
          make


          提示信息不實(shí)很明確,后來(lái)安裝了openssl之后再次安裝就解決了問(wèn)題。
          yum -y install openssl-devel

          posted on 2014-03-28 10:32 小秦 閱讀(4333) 評(píng)論(1)  編輯  收藏

          評(píng)論

          # re: nginx-sticky-module-1.1安裝不上 2014-06-13 17:57 周運(yùn)健

          nginx-1.5.x和nginx-sticky-module-1.1編譯會(huì)有點(diǎn)問(wèn)題,應(yīng)該是nginx新版本沒(méi)有相應(yīng)的nginx-sticky-module,解決辦法是把nginx-sticky-module-1.1/ngx_http_sticky_misc.c的281行修改為:digest->len = ngx_sock_ntop(in,sizeof(struct sockaddr_in), digest->data, len, 1);

          Suse11 對(duì)應(yīng)src/core/ngx_sha1.h:19:17: error: sha.h: No such file or directory 的錯(cuò)誤~需要安裝zlib-devel-1.2.3-106.34.x86_64.rpm(libopenssl-devel的依賴(lài)包.) libopenssl-devel-0.9.8h-30.11.x86_64.rpm   回復(fù)  更多評(píng)論   


          只有注冊(cè)用戶(hù)登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 和田县| 瑞丽市| 龙陵县| 绥棱县| 德安县| 余姚市| 清涧县| 福鼎市| 龙陵县| 治多县| 枞阳县| 辉县市| 白朗县| 吉木乃县| 龙井市| 巢湖市| 宁都县| 浮山县| 鄂托克旗| 五台县| 阿拉善右旗| 高雄市| 巴中市| 文成县| 苏尼特左旗| 龙南县| 应用必备| 县级市| 灌阳县| 邢台县| 陆丰市| 克东县| 阳谷县| 基隆市| 广丰县| 醴陵市| 都匀市| 哈密市| 新乐市| 洪洞县| 宁晋县|