error while loading shared libraries: libncurses.so.5: wrong ELF class: ELFCLASS64
时间: 2023-10-18 16:19:17 浏览: 177
error while loading shared libraries xx.so处理方法
This error occurs when a program is trying to load a 32-bit version of the libncurses library on a 64-bit system or vice versa.
To fix this issue, you need to install the correct version of the library for your system.
For example, if you are running a 64-bit version of Linux, you should install the 64-bit version of the library using the command:
```
sudo apt-get install libncurses5:i386
```
If you are running a 32-bit version of Linux, you should install the 32-bit version of the library using the command:
```
sudo apt-get install libncurses5
```
Once you have installed the correct version of the library, try running the program again. It should now load the library without any errors.
阅读全文