1

Я установил APR(Apache Portable Runtime) с помощью следующих команд:

wget http://apache.mirrors.pair.com//apr/apr-1.4.6.tar.bz2
./configure --prefix=/usr/local/apr
make
make install

Теперь, когда я ./confgure httpd, происходит сбой со следующим сообщением.

checking for APR version 1.3.0 or later... no
configure: error: APR version 1.3.0 or later is required

Может кто-нибудь, пожалуйста, помогите мне?

Вот полный журнал:

%./ Настроить

 checking for chosen layout... Apache
 checking for working mkdir -p... yes
 checking for grep that handles long lines and -e... /bin/grep
 checking for egrep... /bin/grep -E
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... yes
setting CC to "gcc"
setting CPP to "gcc -E"
setting CFLAGS to " -g -O2 -pthread"
setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE"
setting LDFLAGS to " "

Configuring Apache Portable Runtime Utility library...

 checking for APR-util... yes
 checking for gcc... gcc
 checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for gcc option to accept ISO C99... -std=gnu99
checking for pcre-config... /usr/bin/pcre-config
configure: Using external PCRE library from /usr/bin/pcre-config
setting PCRE_INCLUDES to ""
setting PCRE_LIBS to "-lpcre"

Configuring Apache httpd ...

 setting INCLUDES to "-I."
 adding "-I$(top_srcdir)/os/$(OS_DIR)" to INCLUDES
 adding "-I$(top_srcdir)/include" to INCLUDES
 adding "-I/usr/cisco/packages/httpd/httpd-2.2.6/include" to INCLUDES

 Applying OS-specific hints for httpd ...

forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to "1"
forcing AP_NONBLOCK_WHEN_MULTI_LISTEN to "1"
checking for rm... /bin/rm
checking for pkg-config... /usr/bin/pkg-config
checking for rsync... /usr/cisco/bin/rsync
checking for gawk... gawk
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for lynx... no
checking for links... links
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking for APR version 1.3.0 or later... no
configure: error: APR version 1.3.0 or later is required

3 ответа3

1

Вы должны предоставить опцию APR util вместе с APR, как показано ниже. Это работало для меня, используя Apache версии 2.4.x и APR версии 1.4.x:

./configure –with-apr=/usr/local/apr/ –with-apr-util=/usr/local/apr-util/

1

Я предполагаю, что он находит старый системный APR-util, а не тот, который вы только что установили.

Я бы проверил файл configure.log, чтобы увидеть, какой APR он использовал.

0

для лучшего понимания попробуйте

./configure --help

фактическая команда

./configure --with-apr-util=/usr/local/apr-util --with-apr=/usr/local/apr

Всё ещё ищете ответ? Посмотрите другие вопросы с метками .