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.