[system] / trunk / webwork-modperl / bin / check_modules.pl Repository:
ViewVC logotype

Annotation of /trunk/webwork-modperl/bin/check_modules.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2820 - (view) (download) (as text)

1 : gage 2096 #!/usr/bin/perl -w
2 :    
3 : gage 2329 my @modulesList = qw(
4 : sh002i 2432 Apache::Constants
5 :     Apache::Cookie
6 :     Apache::Request
7 :     Carp
8 :     CGI
9 :     CGI::Pretty
10 :     Data::Dumper
11 :     Data::UUID
12 :     Date::Format
13 :     Date::Parse
14 : gage 2820 DateTime
15 : sh002i 2432 DBI
16 :     Digest::MD5
17 :     Errno
18 :     File::Copy
19 :     File::Path
20 :     File::Temp
21 :     HTML::Entities
22 :     Mail::Sender
23 :     Net::SMTP
24 :     Opcode
25 :     Safe
26 :     SOAP::Lite
27 :     Text::Wrap
28 :     Time::HiRes
29 :     URI::Escape
30 :     XML::Parser
31 :     XML::Parser::EasyTree
32 :     XML::Writer
33 : gage 2329 );
34 :    
35 :     my @applicationsList = qw(
36 : sh002i 2432 dvipng
37 :     giftopnm
38 :     latex
39 :     pdflatex
40 :     pngtopnm
41 :     pnmtopng
42 :     pnmtops
43 :     ppmtopgm
44 :     tth
45 : gage 2329 );
46 :    
47 : sh002i 2432 print "\nSearching for executables\n\n";
48 : gage 2329
49 :     foreach my $app (@applicationsList) {
50 :     my $result = `which $app`;
51 :     chomp($result);
52 :     if ($result) {
53 :     print "$app found at $result\n";
54 :     } else {
55 : sh002i 2432 print "***** Can't find $app\n";
56 : gage 2329 }
57 :     }
58 : sh002i 2432
59 : gage 2329 print "\nSearching for modules needed for WeBWorK\n\n";
60 : sh002i 2432
61 : gage 2329 foreach my $module (@modulesList) {
62 : sh002i 2432 eval "use $module";
63 : gage 2329 if ($@) {
64 : sh002i 2432 print "***** Can't find $module\n";
65 : gage 2329 } else {
66 :     print "$module found. \n";
67 :     }
68 :     }

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9