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