ipmitool下载地址和编译安装时可能出现的问题

本文介绍了如何从GitHub获取ipmitool源码,并详细步骤指导编译安装,包括解决configure.ac缺少、lanplus接口配置、依赖包安装等问题。还提供了Windows安装版本的链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. ipmitool源码(需要编译安装)

ipmitool sourcecode from github

参考压缩包中的INSTALL文件进行编译安装。最简单的安装方法摘录如下:

The simplest way to compile this package is:

 1. `cd' to the directory containing the package's source code and type
     `./configure' to configure the package for your system.

     Running `configure' might take a while.  While running, it prints
     some messages telling which features it is checking for.

 2. Type `make' to compile the package.

 3. Optionally, type `make check' to run any self-tests that come with
     the package, generally using the just-built uninstalled binaries.

 4. Type `make install' to install the programs and any data files and
     documentation.  When installing into a prefix owned by root, it is
     recommended that the package be configured and built as a regular
     user, and only the `make install' phase executed with root
     privileges.

在编译安装过程中可能会出现的一些错误及处理方法
1)如果压缩包中只有configure.ac而没有configure文件,那么运行autoconf命令来生成configure脚本。
# autoconf

configure.ac:9: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:10: error: possibly undefined macro: AM_CONFIG_HEADER
configure.ac:41: error: possibly undefined macro: AM_PROG_LIBTOOL
configure.ac:65: error: possibly undefined macro: AM_CONDITIONAL

如果autoconf命令执行时报以上错误,那么执行以下命令来更新生成的配置文件。
# autoreconf --install


2)如果要使用lanplus,在编译时要加上启用lanplus选项,
如下所示:
# ./configure --enable-intf-lanplus

如果配置时报以下错误,那么需要安装openssl-devel包。
** The lanplus interface requires an SSL library with EVP_aes_128_cbc defined.

# yum install openssl-devel


3)如果执行configure进行配置时报以下错误,那么需要安装readline-devel包。

configure: error: ** Unable to find readline required by ipmishell.

# yum install readline-devel


4)在configure过程中可能会出现大量的GCC extension的告警,可以忽略,不会影响最后ipmitool的命令使用。

../include/ipmitool/ipmi_entity.h:45:2: **warning**: type of bit-field 'logical' is **a GCC extension** [-Wpedantic]

2. Windows安装版本(不支持lanplus)下载地址

ipmitool for windows from Dell


参考:
1.Issue: lanplus feature in ipmitool v 1.8.18
2.Thread: [Ipmitool-devel] IPMI does not compile the lanplus interface

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值