| 备注 | 修改日期 | 修改人 |
| 创建版本 | 2025-03-14 15:09:13[当前版本] | 李永鑫 |
| 创建版本 | 2025-03-14 14:27:18 | 李永鑫 |
问题1:
[root@localhost MLNX_OFED_LINUX-23.10-1.1.9.0-rhel7.9-x86_64]# ./mlnxofedinstall
解决办法:
[root@localhost MLNX_OFED_LINUX-23.10-1.1.9.0-rhel7.9-x86_64]# yum -y install gcc gcc-c++ perl make kernel-headers kernel-devel
问题2:
[root@localhost MLNX_OFED_LINUX-23.10-1.1.9.0-rhel7.9-x86_64]# ./mlnxofedinstall
Logs dir: /tmp/MLNX_OFED_LINUX.20398.logs
General log file: /tmp/MLNX_OFED_LINUX.20398.logs/general.log
Verifying KMP rpms compatibility with target kernel...
The kernel KMP rpms coming with MLNX_OFED_LINUX are not compatible with kernel: 3.10.0-1160.105.1.el7.x86_64
See log at /tmp/MLNX_OFED_LINUX.20398.logs/is_kmp_compat_check.log
The 3.10.0-1160.105.1.el7.x86_64 kernel is installed, MLNX_OFED_LINUX does not have drivers available for this kernel.
You can run mlnx_add_kernel_support.sh in order to to generate an MLNX_OFED_LINUX package with drivers for this kernel.
Or, you can provide '--add-kernel-support' flag to generate an MLNX_OFED_LINUX package and automatically start the installation.
[root@localhost MLNX_OFED_LINUX-23.10-1.1.9.0-rhel7.9-x86_64]#
解决办法1:
yum install pciutils redhat-rpm-config rpm-build automake lsof patch libtool autoconf
然后正常安装 如果不行 继续使用解决办法2
解决办法2:
[root@localhost MLNX_OFED_LINUX-23.10-1.1.9.0-rhel7.9-x86_64]# ./mlnxofedinstall --add-kernel-support
Checking if all needed packages are installed...
ERROR: 'createrepo' is not installed!
'createrepo' package is needed for creating a repository from MLNX_OFED_LINUX RPMs.
Use '--skip-repo' flag if you are not going to set MLNX_OFED_LINUX as repository for
installation using yum/zypper tools.
Failed to build MLNX_OFED_LINUX for 3.10.0-1160.105.1.el7.x86_64
解决办法3:
[root@localhost MLNX_OFED_LINUX-23.10-1.1.9.0-rhel7.9-x86_64]# ./mlnxofedinstall --add-kernel-support --skip-repo
如果报错
Logs dir: /tmp/MLNX_OFED_LINUX.6590.logs
General log file: /tmp/MLNX_OFED_LINUX.6590.logs/general.log
Error: One or more required packages for installing MLNX_OFED_LINUX are missing.
Please install the missing packages using your Linux distribution Package Management tool.
Run:
yum install libusbx tcl gcc-gfortran fuse-libs tk
Failed to install MLNX_OFED_LINUX-23.10-1.1.9.0-rhel7.9-ext for 3.10.0-1160.105.1.el7.x86_64
解决办法
yum install libusbx tcl gcc-gfortran fuse-libs tk