Nginx安裝載入ssl錯誤

來源:互聯網
上載者:User
Nginx安裝載入ssl錯誤問題解決

[root@jowei nginx-0.8.9]# make
make -f objs/Makefile
make[1]: Entering directory `/jowei/nginx-0.8.9'
cd /usr/include/openssl/ \
&& make clean \
&& ./config --prefix=/usr/include/openssl//openssl no-shared no-threads \
&& make \
&& make install
make[2]: Entering directory `/usr/include/openssl'
make[2]: *** No rule to make target `clean'. Stop.
make[2]: Leaving directory `/usr/include/openssl'
make[1]: *** [/usr/include/openssl//openssl/include/openssl/ssl.h] Error 2
make[1]: Leaving directory `/jowei/nginx-0.8.9'
make: *** [build] Error 2
出現這個問題決絕辦法:將你編譯代命了也就是 with-openssl=/______這個路徑指向你的源碼安裝包路徑而不是你安裝後的路徑!

–with-pcre Nginx的rewrite功能需要使用pcre庫才能工作,而Nginx的編譯參數裡面的這個選項並不是像常規的那樣指定pcre的安裝目錄,而是指定pcre原始碼的目錄。
也就是說,如果你的系統路徑下已經可以找到pcre的lib和include檔案,這個選項可以不指定了。如果你的系統沒有安裝pcre,那麼就指定該選項,Nginx會在編譯的時候從你指定的這個目錄把pcre編譯進來。


–with-openssl
–with-zlib
–with-md5
–with-sha1
這幾個選項跟pcre一樣,指定的是原始碼目錄,不是這些類庫的安裝目錄。

我一開始沒有看清楚,就按照常規思路去指定目錄,走了很多彎路…

以上就介紹了Nginx安裝載入ssl錯誤,包括了方面的內容,希望對PHP教程有興趣的朋友有所協助。

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.