/usr/bin/ld: cannot find -lperl

xinu xinu at list.ru
Fri Jan 3 16:13:43 UTC 2014


 день добрый,
компилировал сегодня на новой машине и встретил (наверное редко тако бывает) : /usr/bin/ld: cannot find -lperl
лечится "apt-get   install    libperl-dev" - ubuntu , но хотелось бы что бы ето мне configure  сначала сказал, а то он все принял а  make'y вот не понравилось: 

+++++
checking for PCRE library ... found
checking for PCRE JIT support ... found
checking for OpenSSL library ... found
checking for zlib library ... found
checking for libxslt ... found
checking for libexslt ... found
checking for GD library ... found
checking for perl
 + perl version: This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-gnu-thread-multi
 + perl interpreter multiplicity found
checking for GeoIP library ... found
creating objs/Makefile

Configuration summary
  + using system PCRE library
  + using system OpenSSL library
  + md5: using OpenSSL library
  + sha1: using OpenSSL library
  + using system zlib library

$ make 
....
        objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
        objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
        objs/src/http/modules/ngx_http_stub_status_module.o \
        objs/ngx_modules.o \
        -lpthread -lcrypt -lpcre -lssl -lcrypto -ldl -lz -lxml2 -lxslt -lexslt -lgd -lGeoIP \
        -Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.14/CORE -lperl -ldl -lm -lpthread -lc -lcrypt
/usr/bin/ld: cannot find -lperl
collect2: error: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make[1]: Leaving directory `/home/yyyy/yyy/nginx-1.5.8'
make: *** [build] Error 2
+++++


после инстялляции libperl-dev (ubuntu)  все ок
+++++
checking for PCRE library ... found
checking for PCRE JIT support ... found
checking for OpenSSL library ... found
checking for zlib library ... found
checking for libxslt ... found
checking for libexslt ... found
checking for GD library ... found
checking for perl
 + perl version: This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-gnu-thread-multi
 + perl interpreter multiplicity found
checking for GeoIP library ... found
creating objs/Makefile

Configuration summary
  + using system PCRE library
  + using system OpenSSL library
  + md5: using OpenSSL library
  + sha1: using OpenSSL library
  + using system zlib library

$ make
....
    objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
        objs/src/http/modules/ngx_http_stub_status_module.o \
        objs/ngx_modules.o \
        -lpthread -lcrypt -lpcre -lssl -lcrypto -ldl -lz -lxml2 -lxslt -lexslt -lgd -lGeoIP \
        -Wl,-E -fstack-protector -L/usr/local/lib -L/usr/lib/perl/5.14/CORE -lperl -ldl -lm -lpthread -lc -lcrypt
make[1]: Leaving directory `/home/yyyy/yyy/nginx-1.5.8'
make -f objs/Makefile manpage
make[1]: Entering directory `/home/yyyy/yyy/nginx-1.5.8'
sed -e "s|%%PREFIX%%|/srv/nginx-1.5.8|" \
                -e "s|%%PID_PATH%%|/srv/nginx-1.5.8/logs/nginx.pid|" \
                -e "s|%%CONF_PATH%%|/srv/nginx-1.5.8/conf/nginx.conf|" \
                -e "s|%%ERROR_LOG_PATH%%|/srv/nginx-1.5.8/logs/error.log|" \
                < man/nginx.8 > objs/nginx.8
make[1]: Leaving directory `/home/yyyy/yyy/nginx-1.5.8'
+++++

подправьте пожалуйста  configure / make 
спасибо.
с ув. Сергей

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-ru/attachments/20140103/20c7cb71/attachment.html>


Подробная информация о списке рассылки nginx-ru