安装xtables-addons时报错。google了下
- checking for libxtables... no
- configure: error: Package requirements (xtables >= 1.4.5) were not met:
-
- No package 'xtables' found
-
- Consider adjusting the PKG_CONFIG_PATH environment variable if you
- installed software in a non-standard prefix.
-
- Alternatively, you may set the environment variables libxtables_CFLAGS
- and libxtables_LIBS to avoid the need to call pkg-config.
- See the pkg-config man page for more details.
-
解决办法
yum -y install iptables-devel
- make: *** /lib/modules/2.6.32-279.el6.x86_64/build: No such file or directory. Stop.
报这个错,没有细心检查,原来是软链接对应的目录不存在,之前的是/usr/src/kernels/2.6.32-279.14.1.el6.x86_64/,发现软连接的
/lib/modules/2.6.32-279.el6.x86_64/build -> ../../../usr/src/kernels/2.6.32-279.el6.x86_64/
解决办法:装上对应版本的内核开发包
yum -y install kernel-devel-2.6.32-279.el6.x86_64