Generally, the library files in Ubuntu start with lib. Then what is so. X. X. The end of Version x. Then, I often find a tar from the Internet. Put it in the main folder and decompress it. Right-click the main program, select the permission, and configure the read and write permissions. After that, add the running permission. When the program is finished, double-click the main program to run it. No response is returned... In the mood of very-_-# Then, the gnome-terminal command line mode, the cd command enters the main process
Generally, the library files in Ubuntu start with lib. Then what is so. X. X. The end of Version x.
Then, I often find a tar from the Internet. The gz package is a 32-bit linux package,
Put it in the main folder, decompress it, right-click the main program, and select the permission, with readable and writable, and the running permission.
When the program is finished, double-click the main program to run it. No response is returned...
Mood very -_-#
Then, in gnome-terminal command line mode, the cd command enters the folder where the main program is located,
Complete the file name of the main program of sudo, such as sudo./ceshichengxu.
Run in this way,
When it is finished, the system prompts./ceshichengxu: error while loading shared libraries: XX. so. x. x: cannot open shared object file: No such file or directory.
It is a bad mood.
How can this problem be solved? The system prompts "A. so. A few times" that the library file is correct.
The first headache is that you need to know where to find such files. Generally, there is libstdc ++ 5, which is now very convenient for Ubuntu 10.10. There is a new source directly, and you can find this package by directly searching libstdc ++ 5, the package is automatically wrapped up.
But for example, if I see this today, it is said that NL. so.1.6 is missing. The download package provided by the official website contains the libNL. so.1.6.4 file.
What should we do?
Install lib manually. So. How to install the configuration of such files:
First, you need to know where the folder of the lib library file requested by this program is. Someone may have said,/lib,/usr/lib, or/usr/local/lib. I have seen the default library folder pointing to/usr/lib32.
But in general, all of these are decompressed, and the program is compiled by the author into a binary executable program. So how do I know the default path of the library file that he writes by default?
This is a solution!
Run the ldd command, for example, sudo ldd./ceshichengxu.
Then we should list the required library packages.
For example, my ldd is listed like this,
Linux-gate.so.1 => (0x001a3000)
Libpthread. so.0 =>/lib/libpthread. so.0 (0x002ef000)
LibXext. so.6 =>/usr/lib/libXext. so.6 (0x0077c000)
LibX11.so. 6 =>/usr/lib/libX11.so. 6 (0x001a4000)
Libdl. so.2 =>/lib/libdl. so.2 (0x0083c000)
Libz. so.1 =>/lib/libz. so.1 (0x0064c000)
NL. so.1.6 => not found
Libstdc ++. so.5 => not found
Libm. so.6 =>/lib/libm. so.6 (0x00efe000)
Libc. so.6 =>/lib/libc. so.6 (0x009c6000)
Libgcc_s.so.1 =>/lib/libgcc_s.so.1 (0x00110000)
/Lib/ld-linux.so.2 (0x00fd4000)
Libxcb. so.1 =>/usr/lib/libxcb. so.1 (0x0012c000)
LibXau. so.6 =>/usr/lib/libXau. so.6 (0x00ded000)
LibXdmcp. so.6 =>/usr/lib/libXdmcp. so.6 (0x00b77000)
When executing the program, the system prompts error while loading shared libraries: NL. so.1.6: cannot open shared object file: No such file or directory.
However, the actual ldd detection finds that none of the libraries on which two programs are running is found.
But fortunately, this is what I met. The official package contains libNL. so.1.6.4, But what you think is missing is NL. So. 1.6. How can I install it? I copied the file to/usr/lib manually, but it is useless. I am still prompted for missing library files! [6688 e-commerce website www.6688.cc]
This means you must use the ln-s command.
The library files required by ldd are mainly in/usr/lib, which proves that this program is very likely to be used, when running, the library dependency is mostly found in/usr/lib,
So, alt-f2, outgoing shortcut command input, gksu nautilus, open root permission Folder Manager, copy libNL. so.1.6.4 this file to/usr/lib, Ubuntu will automatically help you change the permissions.
After that, open gnome-terminal, cd/usr/lib and go to the/usr/lib folder,
Sudo ln-s libNL. so.1.6.4 NL. so.1.6
In this case, the NL. so.1.6 link and libNL. So. 1.6.4 the library files are all under the/usr/lib folder.
Then libstdc ++ 5.so. 5. I searched for libstdc ++ and installed it through the new version, so now the package library is fully installed,
In the terminal, run the cd command to the folder of the main program, and then run sudo./ceshichengxu. The program starts normally.
OK. Above.