Error while loading shared libraries: libz. so.1: cannot open shared object file: No such file or dir, errorloadingos

Source: Internet
Author: User

Error while loading shared libraries: libz. so.1: cannot open shared object file: No such file or dir, errorloadingos

When the Android development environment is installed on linux, the R file cannot be generated. The error message "libz. so.1" is not found .... An error is returned when aapt is executed. After a long time.


Find an article on the internet, find the library for installation, and finally solve it. Record it here ..

1. Run./aapt In the sdk directory tools to view the missing library based on the error message.

2. Run the following command to check who provided the library, as shown in figure

Yum whatprovides ld-linux.so.1

After installing all

3. Execute aapt again, and the R file can survive normally in eclipse.


In addition, you cannot install adt in eclipse directly installed using yum install eclipse... It took a long time .. You can download an eclpset version integrated with ad directly from the Google website.





What should I do if the libzso1 library file in linux is lost?

Libz. so.1 is just a symbolic link. It doesn't matter if the link file is gone and the real library file is still there. You can use the following methods to restore data:

Ls/usr/lib/libz *

Normally, you should see
Libz. so
Libz. so.1
Libz. so.1.y. z

Among them, libz. so.1.y. z is the real library file, and 1. y. z is the specific version. If your libz. so.1.y. z is still running, you can

Ln-s/usr/lib/libz. so.1.y. z/usr/lib/libz. so.1

You can.

If libz. so.1.y. z is also lost, you can use other commands for transmission, such as ftp or even tftp, these should be independent of libz, and no more, just use a USB flash disk to pull over.

Error in compiling code when installing kernel in Ubuntu1210: cannot open shared object file: no such file or directory

Here is a simple solution:
$ Sudo apt-get install lib32ncurses5 ia32-libs

I personally tested it. OK.
 

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.