Ldd solves the problem of not loading libjpeg. so.9

Source: Internet
Author: User

The customer encountered an error when executing the following command:

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/203J3L40-0.jpg "title =" %16gnt%6punin1s(r59rt%0.jpg "alt =" 131357861.jpg"/>

Baidu and google haven't found a solution for a long time. We can see that the system upgrade will cause such a problem. Just remember that when assigning cloud hosts to customers, I upgraded centos5.6 to 5.9, the update process is incomplete, or some shared files are updated to the latest version, but some software is dependent on the old shared files. As a result, the shared files cannot be found and an error is reported. I tried it.

# Cd/usr/local/lib
# Ln-s libjpeg. so.10 libjpeg. so.9

If you run the cmd2swf command again, an error is returned. After the help, I learned about the ldd command. below is the result of man's arrival.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/203J3G64-1.jpg "title = "~ DMW4[1KZI59LC@2774ESND.jpg "alt =" 132814458.jpg"/>

The following is the ls dependency:

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/203J310W-2.jpg "title =" 8mkcv1h0000ii3@dmo17?h=ev.jpg "alt =" 133136300.jpg"/>

"=>" "Indicates the so name of the shared library to be connected to by the Program on the left, and" right "indicates the specific location of the shared library found by the Linux shared library system in the file system. By default,/Etc/ld. so. confThe file contains the default shared library search path. Enter the/etc/ld. so. conf file and add the/usr/local/bin and/usr/local/lib paths.

Then remember to execute the ldconfig command to refresh/Etc/ld. so. cache. Run the cmd2swf command again.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/203J315X-3.png "title =" test.png "alt =" 133477440.png"/>


This article is from the "Linux_CPP" blog, please be sure to keep this http://fengtao.blog.51cto.com/6234457/1304140

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.