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教程有興趣的朋友有所協助。