在安装安装SIPp-3.3时遇一些问题:
执行 autoreconf -ivf
出错:
然后google了一番,结果发现可能和automake的版本有关。
Can't exec "aclocal": No such file or directory at /usr/bin/autoreconf line 174.
Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 174.
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --output=aclocal.m4t
Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 288.
autoreconf: failed to run aclocal: No such file or directory
Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 174.
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --output=aclocal.m4t
Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 288.
autoreconf: failed to run aclocal: No such file or directory
可能是没有安装aclocal
找到rpm包安装,需要安装libtool
cd /home/cdrom/CentOS
rpm -ivh rpm -ivh libtool-1.5.22-7.el5_4.x86_64.rpm automake-1.9.6-2.3.el5.noarch.rpm
automake是libtool的依赖包,一起安装;
继续执行:autoreconf -ivf
继续报错:
configure.ac:151: error: possibly undefined macro: AC_TYPE_SSIZE_T
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:152: error: possibly undefined macro: AC_TYPE_UINT16_T
configure.ac:153: error: possibly undefined macro: AC_TYPE_UINT32_T
configure.ac:154: error: possibly undefined macro: AC_TYPE_UINT8_T
autoreconf: /usr/bin/autoconf failed with exit status: 1
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:152: error: possibly undefined macro: AC_TYPE_UINT16_T
configure.ac:153: error: possibly undefined macro: AC_TYPE_UINT32_T
configure.ac:154: error: possibly undefined macro: AC_TYPE_UINT8_T
autoreconf: /usr/bin/autoconf failed with exit status: 1
然后google了一番,结果发现可能和automake的版本有关。
CentOS5.8系统使用的autoconf 和 autoconf的版本:
automake --version : 1.9.6
autoconf --version : 2.59
版本太低,尝试安装更高版本的autoconf
tar zxvf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure
make
make install
cd /home/sipp-3.3
/usr/local/bin/autoconf -ivf
OK,通过。
.configure --with-pcap --with-sctp
make pcapplay_ossl
测试:OK