Skip to content

Instantly share code, notes, and snippets.

@TW1920
Last active March 4, 2025 16:26
Show Gist options
  • Save TW1920/39bf8d987f4c867658c0faf4bd1c0802 to your computer and use it in GitHub Desktop.
Save TW1920/39bf8d987f4c867658c0faf4bd1c0802 to your computer and use it in GitHub Desktop.
Install MegaCli on Proxmox or Debian

Install MegaCli on Proxmox or Debian

  1. Install necessary tools apt-get install unzip apt-get install alien
  2. Install necessary lib apt install libncurses5
  3. Download wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
  4. Unzip unzip 8-07-14_MegaCLI.zip
  5. Create debian package cd Linux sudo alien MegaCli-8.07.14-1.noarch.rpm
  6. Install debian package sudo dpkg -i megacli_8.07.14-2_all.deb
  7. run MegaCli /opt/MegaRAID/MegaCli/MegaCli64 -h
@t-jones14
Copy link

Thank you.

@grin31
Copy link

grin31 commented Apr 19, 2022

tnx )

@camel1cz
Copy link

Thank you!

@gsmitheidw
Copy link

This is great - thanks!

@Rex-odus
Copy link

Still working in March 2024. It's a miracle! TnX dude!

@frame0832
Copy link

Thank you! It works

@svh1985
Copy link

svh1985 commented Aug 6, 2024

Suggestion to add command for symlink:
ln -s /usr/bin/megacli /opt/MegaRAID/MegaCli/MegaCli64

@jacksoneyton
Copy link

jacksoneyton commented Mar 4, 2025

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.`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment