1. 程式人生 > >170217、nginx 安裝時候報錯:make: *** No rule to make target `build', needed by `default'. Stop.

170217、nginx 安裝時候報錯:make: *** No rule to make target `build', needed by `default'. Stop.

出現此種情況,是linux系統沒有安裝先決條件

1、GCC——GNU編譯器集合(GCC可以使用預設包管理器的倉庫(repositories)來安裝,包管理器的選擇依賴於你使用的Linux釋出版本,包管理器有不同的實現:yum是基於Red Hat的釋出版本;apt用於Debian和Ubuntu;yast用於SuSE Linux等等。)

RedHat中安裝GCC:

yum install gcc

Ubuntu中安裝GCC:

apt-get install gcc

2、PCRE庫(Nginx編譯需要PCRE(Perl Compatible Regular Expression),因為Nginx的Rewrite模組和HTTP核心模組會使用到PCRE正則表示式語法。這裡需要安裝兩個安裝包pcre和pcre-devel。第一個安裝包提供編譯版本的庫,而第二個提供開發階段的標頭檔案和編譯專案的原始碼,這正是我們需要的理由。)

RedHat中安裝PCRE

yum install pcre pcre-devel

Ubuntu中安裝PCRE

apt-get install libpcre3 libpcre3-dev

3、zlib庫(zlib庫提供了開發人員的壓縮演算法,在Nginx的各種模組中需要使用gzip壓縮。如同安裝PCRE一樣,同樣需要安裝庫和它的原始碼:zlib和zlib-devel。)

RedHat中安裝zlib

yum install zlib zlib-devel

Ubuntu中安裝zlib

apt-get install zlib1g zlib1g-dev

4、OpenSSL庫(在Nginx中,如果伺服器提供安全網頁時則會用到OpenSSL庫,我們需要安裝庫檔案和它的開發安裝包(openssl和openssl-devel)。)

RedHat中安裝OpenSSL

yum install openssl openssl-devel

Ubuntu中安裝OpenSSL:(注:Ubuntu14.04的倉庫中沒有發現openssl-dev):

apt-get install openssl openssl-dev

 注意:要不關閉防火牆,要不然放不了nginx頁面

相關推薦

170217nginx 安裝時候make: *** No rule to make target `build', needed by `default'. Stop.

出現此種情況,是linux系統沒有安裝先決條件 1、GCC——GNU編譯器集合(GCC可以使用預設包管理器的倉庫(repositories)來安裝,包管理器的選擇依賴於你使用的Linux釋出版本,包管理器有不同的實現:yum是基於Red Hat的釋出版本;apt用於Debian和Ubuntu;yast用於Su

centos7.3下安裝nginx出現make: *** No rule to make target `build', needed by `default'. Stop.

解決辦法:  yum -y install openssl openssl-devel 原帖: http://www.169it.com/article/2742357741876659266.ht

伺服器部署全程記錄(centos6.5) 170217nginx 安裝時候make: *** No rule to make target `build', needed by `default'. Stop. centos7 cannot find a valid base

1.安裝nginx 上傳安裝包:put E:\yz_index\installPackage\nginx-1.14.0.tar.gz 解壓:tar zxvf nginx-1.14.0.tar.gz 切換:cd nginx-1.14.0 準備編譯:./configure 編譯:ma

Android 5.1 Gallery2編譯make: *** No rule to make target `out/target/product/techain6572_wet_l/obj/S

報錯 : make: *** No rule to make target `out/target/product/techain6572_wet_l/obj/STATIC_LIBRARIES/libutilitysw_intermediates/export_includ

HadoopNoRouteToHostException: No route to host

當用戶上傳資料到HDFS上時經常會出現這個錯誤 hdfs.DFSClient:Exception in createBlockOutputStream java.net.NoRouteToHostException:No route to host 這種情況網上的解決辦法

Nios II編譯出錯make: *** No rule to make target `e:/nios ', needed by `/cygdrive/e/nios/Debug/system_de

在用Waveshare的OpenEP4CE10的開發板時,用Nios新建工程,設定好工程路徑和提供的ptf檔案後和C檔案後,編譯, 出現: make: *** No rule to make target `/bin/gtf/generated_app.mk.gtf'

make: *** No rule to make target `build', needed by `default'. Stop.

top dev *** rule 成功 openssl pen ssl 8.0 [root@xx nginx-1.8.0]# makemake: *** No rule to make target `build‘, needed by `default‘. Stop.

make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.解決辦法

*** Error during update of the configuration.  make[2]: *** [silentoldconfig] Error 1  make[1]: *** [silentoldconfig] Error 2  make: **

oracle安裝orcl:orcl

oracle原因是沒有配置hosts文件[[email protected] ~]# vim /etc/hosts 192.168.1.10 orcl本文出自 “運維筆記” 博客,請務必保留此出處http://quliren.blog.51cto.com/9849266/1973648orac

nginx安裝:configure: error: the HTTP rewrite module requires the PCRE library

error: config pcr nginx 參考 body post iam sta 參考:http://blog.51cto.com/williamx/958398 需要安裝pcre-devel與openssl-devel yum -y install pcre-de

Python——pip安裝is not a supported wheel on this platform

它的 form pytho 可能 通過 one 令行 div 版本 pip安裝報錯:is not a supported wheel on this platform 可能的原因1:安裝的不是對應python版本的庫,下載的庫名中cp35代表python3.5,其它同理。

(轉存)pip安裝is not a supported wheel on this platform

print 平臺 quest 通過 安裝報錯 文件名 tle 報錯 tac 可能的原因1:安裝的不是對應python版本的庫,下載的庫名中cp27代表python2.7,其它同理。 可能的原因2:這個是我遇到的情況(下載的是對應版本的庫,然後仍然提示不支持當前平臺)   我

nginx啟動Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' fo

class lasso clas blog 80端口 led emc tar 強制 一、背景 這個錯誤在重啟nginx或者啟動nginx的時候,經常會出現。我之前也一直認為出現這個錯誤是因為有程序占用了nginx的進程。但是知其然不知其所以然。每次報錯都有點懵逼

python中使用pip安裝Fatal error in launcher... 解決方法

python安裝了2和3版本在 cmd 中用pip報的錯誤為:Fatal error in launcher:Unable to create process using 這是因為你安裝了python3和python2在你的windows下,並且在環境變數中分別配置了pip,可是並沒有區分pip3還是p

VirtualBox安裝安裝時發生嚴重錯誤

之前把virtualbox裝在了F盤,後來裝雙系統時忘記了這回事,就把F盤分給linux系統用了,結果就是win下的VirtualBox被覆蓋了,重新安裝時報錯:資料夾路徑有無效字元、安裝時發生嚴重錯誤之類。 很顯然,系統將virtualbox的路徑指向了F盤,但是現在F盤無法正常讀取了(不

nginx啟動nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory) 的解決辦法

問題:   重啟虛擬機器後,再次重啟nginx會報錯: nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)  問題原因:   提示資訊說明在 /var/

vmware 安裝failed to install hcmon drivers 完美解決(含VMware15啟用碼)

首先絕大部分使用網上的方法,刪除各種驅動和登錄檔都是結果都是失敗的:再次安裝的結果仍然是: 在網上搜尋幾天找到一位大神部落格,完美解決,試了之後的結果是完美安裝,搬運如下: 解決方法: 第一步: 首先桌面上新建一個文字文件,將下面的程式碼複製進去(因為CSDN部落格複製

Multisim 安裝encountered an improper argument 解決方案(部分儀器實用)

在進行Multisim 12.0 安裝時,將下載好的安裝包解壓以後沒有彈出下一步安裝步驟,這個時候到解壓完以後的安裝路徑下面去,看到了autorun.exe ,點選autorun.exe檔案系統沒反應或者出現“encountered an improper argument”

CocoaPods安裝gem install cocoapods ERROR: While executing gem ... (Gem::FilePermissionError)

在cocoapods 執行 sudo gem install cocoapods的時候出現  While executing gem ... (Gem::FilePermissionError)    You don't have write permissions for

IIS安裝使用了託管處理程式,但是未安裝或未完整安裝 ASP.NET

今天在使用IIS部署網站的時候,出現如下錯誤, 解決方案: 開啟CMD視窗,執行以下命令: "%WINDIR%\Microsoft.NET\Framework\v4.0.30319\as