Welcome! Log In Create A New Profile

Advanced

/usr/bin/ld: cannot find -lperl

xinu
January 03, 2014 11:16AM
день добрый,
компилировал сегодня на новой машине и встретил (наверное редко тако бывает) : /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
спасибо.
с ув. Сергей

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

/usr/bin/ld: cannot find -lperl

xinu January 03, 2014 11:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 136
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready