解決編譯apache (httpd2.4.12)時報錯,APR not found

來源:互聯網
上載者:User

解決編譯apache (httpd2.4.12)時報錯,APR not found

在一次編譯apache (httpd2.4.12)時報錯,APR not found

在apr.apache.org網站上可以下載此軟體(apr-1.5.2.tar.gz);apr-util-1.5.4.tar.gz ;

1.解決apr not found問題

[root@websrv tools]# cd /home/huarong/tools/apr-1.5.2

[root@websrv apr-1.5.2]# ./configure --prefix=/usr/local/apr

[root@websrv apr-1.5.2]#make ; make install

2.解決APR-util not found問題

[root@websrv apr-util-1.5.4]# tar -zxvf apr-util-1.5.4.tar.gz

[root@websrv apr-util-1.5.4]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config

[root@websrv apr-util-1.5.4]#make ; make install

3 ../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 fromhttp://pcre.org/

:http://ftp.exim.llorien.org/pcre/

[root@websrv pcre]# tar zxvf pcre-8.10.tar.gz

[root@websrv pcre]# cd pcre-8.10

[root@websrv pcre]# ./configure --prefix=/usr/local/pcre

[root@websrv pcre]# make ; make install

4.編譯Apache

[root@websrv ~]# ./configure --prefix=/application/apache2.4.12 --enable-default --enable-expires --enable-headers --enable-modules=most --enable-so --with-mpm=worker --enable-rewrite--with-apr=/home/huarong/tools/apr-1.5.2--with-apr-util=/home/huarong/tools/apr-util-1.5.4--with-pcre=/usr/local/pcre/

問題解決。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.