[system] / trunk / webwork2 / bin / check_modules.pl Repository:
ViewVC logotype

Diff of /trunk/webwork2/bin/check_modules.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.2329  
changed lines
  Added in v.2432

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9