wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
or
curl -LO https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
unzip 8-07-14_MegaCLI.zip
For Debian
cd Linux
sudo alien MegaCli-8.07.14-1.noarch.rpm # convert from rpm to deb first
sudo dpkg -imegacli_8.07.14-2_all.deb
For CentOS
sudo yum install MegaCli-8.07.14-1.noarch.rpm
For CentOS
sudo alternatives --install '/usr/bin/MegaCli64' 'MegaCli64' '/opt/MegaRAID/MegaCli/MegaCli64' 1
sudo alternatives --install '/usr/bin/MegaCli' 'MegaCli' '/opt/MegaRAID/MegaCli/MegaCli64' 1
sudo alternatives --install '/usr/bin/megacli' 'megacli' '/opt/MegaRAID/MegaCli/MegaCli64' 1
For Debian
sudo update-alternatives --install '/usr/bin/MegaCli64' 'MegaCli64' '/opt/MegaRAID/MegaCli/MegaCli64' 1
sudo update-alternatives --install '/usr/bin/MegaCli' 'MegaCli' '/opt/MegaRAID/MegaCli/MegaCli64' 1
sudo update-alternatives --install '/usr/bin/megacli' 'megacli' '/opt/MegaRAID/MegaCli/MegaCli64' 1
/opt/MegaRAID/MegaCli/MegaCli64 -h
MegaCli64 -h
MegaCli -h
megacli -h
Right, ...
$ /opt/MegaRAID/MegaCli/MegaCli64: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
AND ...
$ ls -als /usr/lib/curs
4 lrwxrwxrwx. 1 root root 19 Jan 18 16:00 /usr/lib/libncurses++.so.5 -> libncurses++.so.5.9
4 lrwxrwxrwx. 1 root root 17 Jan 18 16:00 /usr/lib/libncurses.so.5 -> libncurses.so.5.9
76 -rwxr-xr-x. 1 root root 74620 Jan 18 16:00 /usr/lib/libncurses++.so.5.9
176 -rwxr-xr-x. 1 root root 178652 Jan 18 16:00 /usr/lib/libncurses.so.5.9
4 lrwxrwxrwx. 1 root root 20 Jan 18 16:00 /usr/lib/libncurses++w.so.5 -> libncurses++w.so.5.9
4 lrwxrwxrwx. 1 root root 18 Jan 18 16:00 /usr/lib/libncursesw.so.5 -> libncursesw.so.5.9
76 -rwxr-xr-x. 1 root root 74616 Jan 18 16:00 /usr/lib/libncurses++w.so.5.9
228 -rwxr-xr-x. 1 root root 233300 Jan 18 16:00 /usr/lib/libncursesw.so.5.9
AND...
$ lsscsi
[1:0:0:0] cd/dvd ASUS DRW-24B3ST j 1.11 /dev/sr0
[3:0:0:0] disk ATA Micron_5100_MTFD U417 /dev/sda
[10:0:0:0] disk LSI 9750-4i DISK 5.12 /dev/sdb
AND ...
$ lshw -class disk
[omitted the other two drives]
description: SCSI Disk
product: 9750-4i DISK
vendor: LSI
physical id: 0.0.0
bus info: scsi@10:0.0.0
logical name: /dev/sdb
version: 5.12
serial: 7SGZBE4C695E14004EE1
size: 14TiB (15TB)
capabilities: gpt-1.00 partitioned partitioned:gpt
configuration: ansiversion=5 guid=04f6a8fe-dc59-4246-ab88-f683baeabaca logicalsectorsize=512 sectorsize=512
AND...
$ lspci -knn | grep 'RAID bus controller'
0a:00.0 RAID bus controller [0104]: 3ware Inc 9750 SAS2/SATA-II RAID PCIe [13c1:1010] (rev 05)
AND ...
$ rpm -qi ncurses
Name : ncurses
Version : 6.4
Release : 3.20230114.fc38
Architecture: x86_64
Install Date: Thu 13 Apr 2023 02:44:55 PM PDT
Group : Unspecified
Size : 632286
License : MIT
Signature : RSA/SHA256, Thu 19 Jan 2023 10:11:33 PM PST, Key ID 809a8d7ceb10b464
Source RPM : ncurses-6.4-3.20230114.fc38.src.rpm
Build Date : Thu 19 Jan 2023 04:01:38 PM PST
Build Host : buildvm-x86-28.iad2.fedoraproject.org
Packager : Fedora Project
Vendor : Fedora Project
URL : https://invisible-island.net/ncurses/ncurses.html
Bug URL : https://bugz.fedoraproject.org/ncurses
Summary : Ncurses support utilities
I know how it's SUPPOSED to work, but it doesn't. RedHat Bugzilla is impossible to use, due to category choices available (forcing a guessing game) and the need to be a RedHat subscriber (which I'm not). Clearly, ncurses has 'moved on' to v 6.4.3. but MegaCLI needs libncurses.so.5, which it can't 'see' even though they are obviously present in /usr/lib. How do you beat that?