Error while loading shared libraries: libz. so.1

Source: Internet
Author: User

problem:
when using the cross-compilation tool croostool for compilation,
prompt :. /.. /mipsel-Linux-uclibc/bin/as: Error while loading shared libraries: libz. so.1: cannot open shared object file: no such file or directory

cause:
the cross-compilation tool has not changed since fedora6 to fedora14, finally, the prompt is that libz is missing. so.1 this database.
libz. so.1 is just a symbolic link. If there is no Symbolic Link, you can create one. The key is to check whether the library file exists. Check the method: ls/usr/lib/libz *
normally, you should see:
root @ localhost: /opt/toolchains # ls-L/usr/lib/libz *
-rwxr-XR-x 1 Root 92622 2006-07-19/usr/lib/libz. A
lrwxrwxrwx 1 Root 13 2010-06-12/usr/lib/libz. so-> libz. so.1.2.3
lrwxrwxrwx 1 Root 13 2010-06-12/usr/lib/libz. so.1-> libz. so.1.2.3 // These are only two Links
-rwxr-XR-x 1 Root 75284 2006-07-19/usr/lib/libz. so.1.2.3 // This is the real library file, and the following number 2.3 is its version

solution:
copy libz. so.1.y. the Z library file is in the/usr/lib/directory, and you can create a link. If not found, my resource file has been uploaded, you can download it.
connection creation method: ln-S/usr/lib/libz. so.1.y. z/usr/lib/libz. so.1

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.