Problem Discovery process:
After installing the latest centos version, you can find that you cannot open Emacs. After Entering Emacs in the terminal, the following prompt appears:
Emacs: Error while loading shared libraries: libotf. so.0: cannot open shared object file: no such file or directory
Then I searched for the information on the Internet. However, since centos was just released, there were no solutions. However, there were some related solutions that finally solved the problem.
Solution:
1. Find the missing libotf. so.0 file in the system prompt (you can run the locate command to find: locate libotf. so.0 ).
My system is centos6.5 i386, and my search result is as follows:
/Usr/lib/compat-openmpi/lib/libotf. so.0
/Usr/lib/compat-openmpi/lib/libotf. so.0.0.1
/Usr/lib/openmpi/lib/libotf. so.0
/Usr/lib/openmpi/lib/libotf. so.0.0.1
2. Create a link:
Ln-S/usr/lib/compat-openmpi/lib/libotf. so.0/usr/lib/libotf. so.0
3. Run the emacs editor again.