Solution to/usr/bin/ld:cannot Find-lperl under Ubuntu 9.04

Source: Internet
Author: User
Keywords nbsp solution APT installation nginx
Tags aliyun apt code configure find html http install

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.