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]
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