Я пытаюсь установить nginx на свой сервер, но он продолжает возвращать "./configure: error: perl 5.6.1 или выше", хотя у меня есть perl v5.8.8 !!!!
Я уже скачал perl и пытаюсь настроить его с помощью следующей команды:
./configure --with-http_stub_status_module --with-http_perl_module --with-http_flv_module --add-module=nginx_mod_h264_streaming
вот результат:
[root@fst nginx-0.8.55]# ./configure --with-http_stub_status_module --with-http_perl_module --with-http_flv_module --add-module=nginx_mod_h264_streaming
checking for OS
+ Linux 2.6.18-308.el5 x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.1.2 20080704 (Red Hat 4.1.2-52)
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for nobody group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
configuring additional modules
adding module in nginx_mod_h264_streaming
+ ngx_http_h264_streaming_module was configured
checking for PCRE library ... found
checking for system md library ... not found
checking for system md5 library ... not found
checking for OpenSSL md5 crypto library ... found
checking for zlib library ... found
checking for perl
+ perl version: v5.8.8 built for x86_64-linux-thread-multi
./configure: error: perl 5.6.1 or higher is required
Если вы действительно не знаете, что делаете, я бы рекомендовал использовать yum для установки nginx. Он доступен в репозитории EPEL, вероятно, также в rpmforge.
Изменить: поскольку вам нужны пользовательские модули для nginx, вам может быть лучше обернуть свою пользовательскую сборку в RPM. Поддержание исходных сборок на более чем дюжине серверов становится реальной проблемой для небольшой группы администраторов.
Возможно, вам не хватает файлов заголовков для Perl. Попробуйте установить пакет разработки Perl:
yum install perl-devel
вам, вероятно, просто не хватает файлов разработки. Я видел, как это происходило, если у вас не установлен следующий пакет
yum install glibc-headers