CentOS compiler php5.3 Error: Libiconv.so.2:cannot open Shared object file:no such file or directory

Source: Internet
Author: User

Meet this error description did not find the libiconv.so.2 file

1: Check if there is a library file under/usr/local/lib, some words indicate that the LIBICONV has been installed, no description is not installed

2: If not installed, download the installation package, install, and then test

3: If installed, there are two ways to solve

A: Add/usr/local/lib in/etc/ld.so.conf, then execute ldconfig, test is feasible

B: Make a software link to libiconv.so.2

Ln-s/usr/local/lib/libiconv.so.2/usr/lib/libiconv.so.2

Special attention:

A: Add/usr/local/lib in/etc/ld.so.conf, then execute ldconfig

In this step, when you open the/etc/ld.so.conf file with vim, the default is one line

Include ld.so.conf.d/*.conf

When adding, don't be smart to add as:

Include/usr/local/lib

The right approach should be:

/usr/local/lib

CentOS compiler php5.3 Error: Libiconv.so.2:cannot open Shared object file:no such file or directory

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.