Articles of perl

如何apt-get的模块“模板”

我正在安装Bugzilla,因此我正在通过perl模块列表进行安装,除了下面的Template模块,我已经设法让它们运行了很多,有没有apt-get版本?我也安装了CPAN,因为我已经安装了CPAN,所以一旦安装完成,我应该删除它吗? 有什么地方可以通过apt-getsearch软件吗? 命令来安装可选模块: GD: /usr/bin/perl install-module.pl GD Chart: /usr/bin/perl install-module.pl Chart::Lines Template-GD: /usr/bin/perl install-module.pl Template::Plugin::GD::Image GDTextUtil: /usr/bin/perl install-module.pl GD::Text GDGraph: /usr/bin/perl install-module.pl GD::Graph Test-Taint: /usr/bin/perl install-module.pl Test::Taint 安装所需模块的命令(您必须运行所有这些命令,然后重新运行此脚本): /usr/bin/perl install-module.pl Template 要尝试使用一个命令自动安装每个必需和可选模块,请执行以下操作: / usr / bin / perl install-module.pl –all * 安装中止。 阅读上面的消息。 *

Perl,Solaris:CPAN模块安装失败。 我怎样才能找出原因?

我正在尝试使用CPAN安装旧版的Solaris 10(SunOS 5.10)盒中的File :: Tail模块。 尝试安装模块时出现错误,但是我看不出为什么CPAN输出中的任何地方出现故障。 我只看到一个“不好”的消息。 我甚至试过做'rm〜/ .cpan',这样我就可以从头开始了。 我怎样才能开始debugging这样的问题? cpan> force make File::Tail Running make for module File::Tail Running make for M/MG/MGRABNAR/File-Tail-0.99.3.tar.gz Checksum for /.cpan/sources/authors/id/M/MG/MGRABNAR/File-Tail-0.99.3.tar.gz ok x File-Tail-0.99.3, 0 bytes, 0 tape blocks x File-Tail-0.99.3/META.yml, 452 bytes, 1 tape blocks x File-Tail-0.99.3/t, 0 bytes, 0 tape blocks x File-Tail-0.99.3/t/20tail.t, 1931 bytes, 4 tape blocks […]

当手动运行命令时,脚本输出与输出不同

我是相当新的东西,我已经写了一个简单的Perl脚本来轮询服务器每隔几秒iostat -k -x数据使用Capture :: Tiny 该脚本工作,但正在显示的数据正在被切断。 这通常不会发生,如果我通常做iostat -k -x 这只是在一分钟内将数据显示n次。 使用轮询脚本时的脚本代码,iostat -k -x输出,输出在这里: http : //pastebin.com/K1AnqskU 任何帮助,将不胜感激!

如何使用Apache Piped Logs来正则expression式实时replace日志中的不需要的数据?

我有由Apache生成的https_acces_log日志文件,某个Web应用程序将不需要的数据logging到文件中。 我不能阻止应用程序logging数据,所以我想写一个perl / python脚本,它将获取Apache输出的数据,并运行一个正则expression式来实时replace数据。 假设Perl是正确的工具,那么到目前为止我就是在这里。 脚本现在不产生输出。 帮助任何人? $|=1; # Use unbuffered output while (<STDIN>) # Loop through STDIN { $Msg = $_; # Capture the line of input if ($Msg =~ m/&passwd=\w+GET/ ) # Look for the string I don't want { $Msg =~ s/&passwd=\w+GET/&password=XXXXXXGET/g; print $Msg; # Print it } else { print $Msg\n; […]

如何看出是Apacheconfiguration使用Perl?

我已经花了足够的时间四处寻找与谷歌的答案,我放弃了。 大量的关于如何用perl支持来构buildapache的讨论,但是我想知道如何判断随RHEL6.2提供的apache是​​否已经包含perl。我打赌是这样,但是我有一个httpd conf文件从RHEL3开始,我一直在RHEL apache服务器上使用它,它总是把它放到/etc/httpd/conf.d/中,但是现在我在RHEL6.2上试了它,它只是列出了我的脚本的来源,就好像perl未启用。 我认为第一步是validationperl被启用,然后第二步将找出我的configuration有什么问题。 -标记

Net :: SSH2 Perl模块的安装有什么问题?

我想安装networking:SSH2的Perl模块,但我运行在这个错误: [root@script-server fmzbih_cms_weather_updater]# cpanm Net::SSH2 –> Working on Net::SSH2 Fetching http://www.cpan.org/authors/id/R/RK/RKITOVER/Net-SSH2-0.44.tar.gz … OK Configuring Net-SSH2-0.44 … OK Building and testing Net-SSH2-0.44 … FAIL ! Installing Net::SSH2 failed. See /root/.cpanm/build.log for details. [root@script-server fmzbih_cms_weather_updater]# cat /root/.cpanm/build.log cpanm (App::cpanminus) 1.5011 on perl 5.014002 built for i686-linux-thread-multi Work directory is /root/.cpanm/work/1335442976.25013 You have make /usr/bin/make You have LWP […]

configuration服务器防火墙:您需要安装缺less的perl模块,然后安装cxs

我试图安assembly置服务器防火墙但是当我按照教程和运行install.sh我得到以下错误。 谁能帮忙? root@localhost:~/csf# sh install.sh Configuring for OS Running csf generic installer Installing generic csf and lfd Check we're running as root Checking Perl modules… Can't locate LWP/UserAgent.pm in @INC (@INC contains: /etc/csf /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at (eval 22) line 2. BEGIN failed–compilation aborted at (eval 22) line 2. […]

无法在Ubuntu上安装Perl DBD模块(针对Bugzilla)

试图在Ubuntu 12.04上安装bugzilla-4.2.2 。 当我运行checksetup.pl出现以下错误: YOU MUST RUN ONE OF THE FOLLOWING COMMANDS (depending on which database you use): PostgreSQL: /usr/bin/perl install-module.pl DBD::Pg MySQL: /usr/bin/perl install-module.pl DBD::mysql SQLite: /usr/bin/perl install-module.pl DBD::SQLite Oracle: /usr/bin/perl install-module.pl DBD::Oracle To attempt an automatic install of every required and optional module with one command, do: /usr/bin/perl install-module.pl –all 我已经通过XAMPP安装了MySQL,所以我运行: /urs/bin/perl install-module.pl […]

使一个用户帐户专用于centos中的单个脚本

我正在为我的盒子上的某个人做一个SSHlogin。 但是当他们login时,我希望它自动加载一个perl脚本,并且只能大声地看到/使用perl脚本。 我只知道如何使用useradd命令,我不知道如何设置烫发等。 我不知道如何更详细地解释这一点。 但任何帮助将是aswsome!

FC14和yum依赖

我已经拿到FC14的机器了,过去几天我一直在努力工作。 机器(这是一个设备)与冲突的软件包一起发货到fedora-release,并花了几天的时间在它上面运行。 我现在有工作了,但是当我尝试安装某些东西时,却遇到了一大堆依赖性问题。 这里输出: 1:net-snmp-utils-5.7.2-1648306.4132F.2.i686 has missing requires of perl(Sys::Hostname) 1:net-snmp-utils-5.7.2-1648306.4132F.2.i686 has missing requires of perl(Term::ReadLine) 1:net-snmp-utils-5.7.2-1648306.4132F.2.i686 has missing requires of perl(strict) 1:net-snmp-utils-5.7.2-1648306.4132F.2.i686 has missing requires of perl(vars) 这对许多这些Perl(*)需求和其他一些软件包都是如此。 我试图让gcc和automake在这个盒子上。 我如何清理百胜餐饮,我正在猜测这些东西,并在这里与Perl问题…任何想法?