系統為CentOS6.10,現在想把httpd升級為2.4.39,make的時候出現錯誤提示,apr,apr-util,pcre已經安裝好,具體資訊如下,求教各位高手幫忙解決
[root@localhost http]# cd apr-1.7.0
[root@localhost apr-1.7.0]# ./configure --prefix=/usr/local/apr
[root@localhost apr-1.7.0]# cd ../apr-util-1.6.1
[root@localhost apr-util-1.6.1]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
[root@localhost apr-util-1.6.1]# cd ../pcre-8.43
[root@localhost pcre-8.43]# ./configure --prefix=/usr/local/pcre --with-apr=/usr/local/apr/bin/apr-1-config
[root@localhost pcrepcre-8.43]# cd ../httpd-2.4.39
[root@localhost httpd-2.4.39]# ./configure --prefix=/usr/local/apache --with-pcre=/usr/local/pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
configure: error: Did not find pcre-config script at /usr/local/pcre
[root@localhost httpd-2.4.39]# ./configure --prefix=/usr/local/apache --with-pcre=/usr/local/pcre2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
Server Version: 2.4.39
Install prefix: /usr/local/apache
C compiler: gcc -std=gnu99
CFLAGS: -g -O2 -pthread
CPPFLAGS: -DLINUX -D_REENTRANT -D_GNU_SOURCE
LDFLAGS:
LIBS:
C preprocessor: gcc -E
[root@localhost httpd-2.4.39]# make
ab.o: In function `ssl_print_cert_info':
/soft/http/httpd-2.4.39/support/ab.c:653: undefined reference to `X509_get_version'
/soft/http/httpd-2.4.39/support/ab.c:655: undefined reference to `X509_getm_notBefore'
/soft/http/httpd-2.4.39/support/ab.c:659: undefined reference to `X509_getm_notAfter'
ab.o: In function `ssl_state_cb':
/soft/http/httpd-2.4.39/support/ab.c:575: undefined reference to `SSL_in_init'
/soft/http/httpd-2.4.39/support/ab.c:575: undefined reference to `SSL_is_server'
ab.o: In function `sk_X509_num':
/usr/local/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_num'
ab.o: In function `sk_X509_value':
/usr/local/include/openssl/x509.h:99: undefined reference to `OPENSSL_sk_value'
ab.o: In function `ssl_proceed_handshake':
/soft/http/httpd-2.4.39/support/ab.c:759: undefined reference to `EC_curve_nid2nist'
ab.o: In function `main':
/soft/http/httpd-2.4.39/support/ab.c:2305: undefined reference to `TLS_client_method'
/soft/http/httpd-2.4.39/support/ab.c:2560: undefined reference to `TLS_client_method'
/soft/http/httpd-2.4.39/support/ab.c:2637: undefined reference to `OPENSSL_init_ssl'
/soft/http/httpd-2.4.39/support/ab.c:2638: undefined reference to `OPENSSL_init_ssl'
/soft/http/httpd-2.4.39/support/ab.c:2647: undefined reference to `SSL_CTX_set_options'
ab.o: In function `test':
/soft/http/httpd-2.4.39/support/ab.c:1990: undefined reference to `SSL_in_init'
collect2: ld returned 1 exit status
make[2]: *** [ab] 錯誤 1
make[2]: Leaving directory `/soft/http/httpd-2.4.39/support'
make[1]: *** [all-recursive] 錯誤 1
make[1]: Leaving directory `/soft/http/httpd-2.4.39/support'
make: *** [all-recursive] 錯誤 1
uj5u.com熱心網友回復:
你的pcre目錄不是/usr/local/pcre嗎,為什么編譯apache的時候指定pcre目錄的時候是/usr/local/pcre2啊另外
先把解壓好的apr和apr-util放在httpd-2.4.39/srclib里(帶上apr,apr-util檔案夾)。然后編譯apache的時候加上--with-included-apr
uj5u.com熱心網友回復:
./configure --prefix=/usr/local/apache --with-included-apr --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre --with-z=/usr/local/zlib --enable-so --enable-modules=all --enable-mods-shared=all --enable-deflate --enable-headers
按照這個編譯還是存在同樣的問題,apr和apr-util也已經放過來了
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/101875.html
標籤:系統維護與使用區
上一篇:ubuntu自動回到登錄界面
