解决snort安装出现ERROR! Libpcre header not found.
错误原文:
checking pcre.h usability... no
checking pcre.h presence... no
checking for pcre.h... no
ERROR!? Libpcre header not found.
Get it from http://www.pcre.org
解决办法:
yum install pcre*
centos命令行pptpd vpn拨号
软件:
ppp-2.4.4-2.el5.i386.rpm(http://rpmfind.net)
libpcap-0.9.4-14.el5.i386.rpm (http://rpmfind.net)
pptp-1.7.2-3.rhel5.i386.rpm (http://pptpclient.sourceforge.net/)
噢,忘记说了,我的服务器OS是centos5.2安装:
rpm -ivh libpcap-0.9.4-14.el5.i386.rpm
rpm -ivh ppp-2.4.4-2.el5.i386.rpm
rpm -ivh pptp-1.7.2-3.rhel5.i386.rpm
运行:
pptpsetup --create vpn --server pptpserver --username test --password test --encrypt --start
OK,ppp0出来了,再添加默认路由:
route add -net 0.0.0.0 dev ppp0
好了,linux命令行下的pptp客户端就到此为止,后期有变动,本文还会在第一时间调整,也希望朋友多试,多给意见.
删除超过30天的备份
find /home/superman003/mysqlbak/ -mtime +30 -name "*" -exec rm -rf {} \;
错误configure error no acceptable C...
错误如下 :
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring Apache Portable Runtime library ...
checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring APR library
Platform: i686-pc-linux-gnu
checking for working mkdir -p... yes
APR Version: 1.2.8
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr
如果遇到这个问题的时候,只要把安装盘里和gcc有关的都装上,如果安装盘里也没有. 运行:
yum install gcc
搞定.
解决configure error XMLParser perl...
下载安装:
wget http://web.mit.edu/zacheiss-ath/dev/rhlinux/redhat-9/RedHat/RPMS/perl-XML-Parser-2.31-15.i386.rpm
可能会下载很多的依赖包,时间比较久,耐心等待.
下载XML-Parser:
wget http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/XML-Parser-2.34.tar.gz
然后按照如下步骤进行安装:
$ tar zxvf XML-Parser-2.34.tar.gz
$ cd XML-Parser-2.34
$ perl Makefile.PL
$ make
$ make install
附注,在windows下,XML PARSER为:
Microsoft XML Parser (MSXML)
然后重新编译,成功通过.
perl ----Can't locate CPAN.pm in @INC的解决办法
perl -MCPAN -e 'install "模块名称"'
我在在线安装perl模块时,发现有这样的问题.应该是说没有安装CPAN这个服务吧.
1、执行perl -MCPAN -e shell出错,提示如下:
[root@GM ~]# perl -MCPAN -e shell
Can't locate CPAN.pm in @INC (@INC contains:......省略
2、到cpan的官方站点下载CPAN模块.
[root@GM ~]$ wget http://cpan.communilink.net/authors/id/A/AN/ANDK/CPAN-1.9600.tar.gz
3、解压,编绎,安装.
[root@GM ~]$ tar -zxvf CPAN-1.9600.tar.gz
[root@GM ~]$ cd CPAN-1.9600
[root@GM CPAN-1.9600]$ perl Makefile.PL
[root@GM CPAN-1.9600]$ make
[root@GM CPAN-1.9600]$ make install
4、成功进入CPAN的shell模式.
[root@GM CPAN-1.9600]$ perl -MCPAN -e shell
5、install XXX 安装对应模块.