The Nginx was recently installed in http://www.aliyun.com/zixun/aggregation/13835.html ">ubuntu10.04," as follows:
./configure--prefix=/usr/local/nginx--with-http_stub_status_module--with-http_perl_module--with-openssl=/home/ vince/software/openssl-0.9.8b--with-http_ssl_module--with-pcre=/home/vince/software/pcre-8.00--with-zlib=/home /vince/software/zlib-1.2.3
The following error occurred while compiling the installation:
/usr/bin/ld:cannot Find-lperl
Follow the online approach:
Shell Code
sudo apt install Libperl-dev
The following error occurred:
The following packages have unmet dependencies:
Libperl-dev:depends:perl (= 5.10.0-19ubuntu1.1) But 5.10.1-8UBUNTU1 is to be DWORD
depends:libperl5.10 (= 5.10.0-19ubuntu1.1) But 5.10.1-8UBUNTU1 is to be DWORD
E:broken Packages
In fact, this means that the Libperl-dev has been installed, but I did not look at the hint, looking for a long time can not solve the problem, and finally in a forum with friends said:
Shell Code
Ln-s libperl.so/usr/lib/libperl.so
Ldconfig
Brainwave, go to/usr/lib immediately. View:
Shell Code
lrwxrwxrwx 1 root 2010-04-12 04:47/usr/lib/libperl.so.5.10-> libperl.so.5.10.1
-rw-r--r--1 root root 1358776 2010-01-07 23:24/usr/lib/libperl.so.5.10.1
Libperl has been installed, will not find libperl.so?
Link Now:
Shell Code
Ln-s libperl.so.5.10.1/usr/lib/libperl.so
And then
Shell Code
Ldconfig
And make Nginx again, success, hehe
The second approach: solve Ubuntu 9.04/usr/bin/ld:cannot Find-lperl
sudo apt install Libperl-dev
sudo apt install libperl-devsudo apt Install Libperl-dev