Install MegaCli on Proxmox or Debian
- Install necessary tools
apt-get install unzip
apt-get install alien
- Install necessary lib
apt install libncurses5
- Download
wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
- Unzip
unzip 8-07-14_MegaCLI.zip
- Create debian package
cd Linux
sudo alien MegaCli-8.07.14-1.noarch.rpm
- Install debian package
sudo dpkg -i megacli_8.07.14-2_all.deb
- run MegaCli
/opt/MegaRAID/MegaCli/MegaCli64 -h
Needs a little adjustment in 2025. After install I got the following:
root@IBM-SystemX:~/Linux# /opt/MegaRAID/MegaCli/MegaCli64 -h
/opt/MegaRAID/MegaCli/MegaCli64: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
Was able to correct it with a little AI guidance:
`The error message you're encountering indicates that MegaCli64 is attempting to access the libncurses.so.5 library, which is not present on your system. This typically occurs because MegaCli is linked against an older version of the ncurses library, while your system has a newer version installed.
Solution:
To resolve this issue, you can create a symbolic link from libncurses.so.5 to your system's existing version of the library. Here's how you can do it:
Identify the location of libncurses.so.6:
Run the following command to locate the existing libncurses.so.6 library:
bash
Copy
Edit
find /usr/lib* -name 'libncurses.so.6'
This command will search for the libncurses.so.6 library in the /usr/lib directories.
Create a symbolic link:
Once you've identified the path to libncurses.so.6, create a symbolic link named libncurses.so.5 pointing to libncurses.so.6. Replace /path/to/libncurses.so.6 with the actual path you found in the previous step:
bash
Copy
Edit
ln -s /path/to/libncurses.so.6 /usr/lib/libncurses.so.5
This command creates the necessary symbolic link in the /usr/lib directory.
Verify the link:
Ensure that the symbolic link has been created correctly by listing the /usr/lib directory:
bash
Copy
Edit
ls -l /usr/lib/libncurses.so.5
The output should show that libncurses.so.5 points to libncurses.so.6.
Run MegaCli64:
After creating the symbolic link, try running MegaCli64 again:
bash
Copy
Edit
/opt/MegaRAID/MegaCli/MegaCli64 -h
The help information should now display without any errors.`