国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > Apache > 正文

Apache遇到的問題 APR not found問題的解決方法

2024-08-27 18:26:47
字體:
來源:轉載
供稿:網友

#./configure --prefix……檢查編輯環境時出現:

checking for APR... no configure: error: APR not found .  Please read the documentation.

可以用./configure –help | grep apr 查看幫助。 --with-included-apr     Use bundled copies of APR/APR-Util --with-apr=PATH         prefix for installed APR or the full path to apr-config --with-apr-util=PATH    prefix for installed APU or the full path to 安裝APR(Apache Portable Runtime ) 下載:http://apr.apache.org/download.cgi

#cd /tmp/52lamp/ //源碼存放位置 #tar -zxvf apr-1.4.2.tar.gz //unzip -o apr-1.4.2.zip #cd apr-1.4.2 #./configure #make #make install

再次檢查編譯環境出現

checking for APR-util... no configure: error: APR-util not found .  Please read the documentation.

#./configure –help | grep apr-util --with-apr-util=PATH    prefix for installed APU or the full path to

下載:http://download.chinaunix.net/download/0001000/472.shtml #tar -zxvf apr-util-1.3.9.tar.gz #cd apr-util-1.3.9 #./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr #make #make install

./configure仍提示APR-util not found,增加--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util后出現 configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

#./configure –help | grep pcre --with-pcre=PATH        Use external PCRE library

下載:http://sourceforge.net/projects/pcre #unzip -o pcre-8.10.zip #cd pcre-8.10 #./configure --prefix=/usr/local/pcre #make #make install

繼續安裝Apache/httpd,./configure 時加上參數 --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre,這個問題就解決了

注意:Apache在安裝時不會檢查參數是否正確,錯誤的參數會直接被丟棄,不會報告給用戶。但可以使用echo $?命令檢查是否有錯誤,當輸出結果為0時表示沒有錯誤。

#echo $? 0

#make #make install

復制Apache啟動文件 #cp /usr/local/httpd/bin/apachectl /sbin/

啟動Apache #apachectl start

設置Apache開機自啟動 #vi /etc/rc.d/rc.local 增加一行 /sbin/apachectl start

或者將httpd服務添加到ntsysv服務管理工具 #apachectl stop //關閉Apache以免不必要的麻煩 #cp /usr/local/httpd/bin/apachectl /etc/rc.d/init.d/httpd #vi /etc/rc.d/init.d/httpd 修改為 #!/bin/sh # #chkconfig: 345 85 15 //#不能省略,注意空格 #description: httpd for 52lamp 20101016 21:54 //任意字符串 # ......

第二行中345的含義: #       0 - operation completed successfully #       1 - #       2 - usage error #       3 - httpd could not be started #       4 - httpd could not be stopped #       5 - httpd could not be started during a restart

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 洞头县| 徐州市| 石家庄市| 冀州市| 纳雍县| 昌乐县| 江陵县| 类乌齐县| 哈密市| 门头沟区| 庆城县| 通渭县| 高邑县| 云龙县| 舒城县| 华池县| 中阳县| 屏东市| 馆陶县| 博爱县| 大城县| 淅川县| 新田县| 布拖县| 黄石市| 锡林浩特市| 牡丹江市| 白沙| 太保市| 连平县| 炎陵县| 平定县| 巴彦淖尔市| 金乡县| 武城县| 正宁县| 延庆县| 武强县| 和林格尔县| 黄龙县| 南开区|