MegaCli安装报错
Rocky Linux 9.6
安装
| Bash |
|---|
| # rpm -ivh /share/soft/MegaCli-8.07.14-1.noarch.rpm
|
1、执行报错
| Bash |
|---|
| # /opt/MegaRAID/MegaCli/MegaCli64 -pdlist -aall
/opt/MegaRAID/MegaCli/MegaCli64: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
|
这个错误是因为 MegaCli 工具依赖的 libncurses.so.5 库在 Rocky Linux 9 中不存在。在较新的系统中,ncurses 库已经更新到版本 6。
解决方式:
| Bash |
|---|
| # 创建符号链接
# 查找系统中现有的 ncurses 库
find /usr/lib64 -name "libncurses*"
# 创建符号链接(假设有 libncurses.so.6)
ln -s /usr/lib64/libncurses.so.6 /usr/lib64/libncurses.so.5
ln -s /usr/lib64/libncursesw.so.6 /usr/lib64/libncursesw.so.5
# 或者如果库在 /lib64 目录
ln -s /lib64/libncurses.so.6 /lib64/libncurses.so.5
ln -s /lib64/libncursesw.so.6 /lib64/libncursesw.so.5
|