MegaCli64: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
一、介绍
在ubuntu22.04系统下使用MegaRAID工具会报缺少动态库的问题
./MegaCli64: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
二、解决方法
在ubuntu24.04系统下已经无法通过下列方法解决
apt-get install -y libncurses5
wget http://dlsw.91donkey.com/software/MegaRAID.tgz -O /opt/MegaRAID.tgz
cd /opt/ && tar zxf MegaRAID.tgz && rm -f MegaRAID.tgz
因此,换另外一种方式
apt install patchelf
patchelf --replace-needed libncurses.so.5 libncurses.so.6 ./MegaCli64

浙公网安备 33010602011771号