version 1.6, 2004/07/06 21:58:09
|
version 1.63, 2024/07/08 22:06:15
|
Line 1
|
Line 1
|
<!DOCTYPE piml PUBLIC "-//TUX/DTD piml 1.0 Final//EN" |
<!DOCTYPE piml PUBLIC "-//TUX/DTD piml 1.0 Final//EN" |
"http://lpml.sourceforge.net/DTD/piml.dtd"> |
"http://lpml.sourceforge.net/DTD/piml.dtd"> |
<!-- phpcheck.piml --> |
<!-- rpmcheck.piml --> |
<!-- Matthew Hall --> |
<!-- Matthew Hall --> |
|
|
<!-- $Id$ --> |
<!-- $Id$ --> |
Line 34 http://www.lon-capa.org/
|
Line 34 http://www.lon-capa.org/
|
<files> |
<files> |
<file> |
<file> |
<target dist="default">/home/httpd/lonUsers</target> |
<target dist="default">/home/httpd/lonUsers</target> |
<perlscript mode="fg"> |
<perlscript dist="redhat7 fedora1 fedora2 fedora3 fedora4 suse9.2 suse9.3 sles9" mode="fg"> |
my $rhversion = "7.3"; |
|
if (-e '/etc/redhat-release') { |
|
my $tmp = `cat /etc/redhat-release`; |
|
if ($tmp =~ /fedora/i) { |
|
$rhversion = 'fedora'; |
|
} |
|
} |
|
# |
# |
# Look for php packages that should not be installed |
# Look for php packages that should not be installed |
my @phprpms = `rpm -q -a|grep php`; |
my @phprpms = `rpm -q -a|grep php`; |
if (@phprpms) { |
if (@phprpms) { |
print "WARNING: PHP packages are present on this system.\n". |
print "**** WARNING: PHP packages are present on this system.\n". |
"There are known conflicts between PHP libraries and LON-CAPA.\n". |
"There are known conflicts between PHP libraries and LON-CAPA.\n". |
"Use the following command to remove ". |
"Use the following command to remove ". |
"the php packages from your system:\nrpm -e "; |
"the php packages from your system:\nrpm -e "; |
Line 61 if (@phprpms) {
|
Line 54 if (@phprpms) {
|
my @mod_rpms = `rpm -q -a | grep mod`; |
my @mod_rpms = `rpm -q -a | grep mod`; |
foreach my $rpm (@mod_rpms) { |
foreach my $rpm (@mod_rpms) { |
if ($rpm =~ /mod_bandwidth/) { |
if ($rpm =~ /mod_bandwidth/) { |
print "WARNING: it appears you have the mod_bandwidth ". |
print "**** WARNING: it appears you have the mod_bandwidth ". |
"package installed.\n". |
"package installed.\n". |
"mod_bandwidth appears to conflict with LON-CAPA.\n". |
"mod_bandwidth appears to conflict with LON-CAPA.\n". |
"Use the following command to remove it:\n". |
"Use the following command to remove it:\n". |
"rpm -e $rpm\n"; |
"rpm -e $rpm\n"; |
} |
} |
if ($rpm =~ /mod_throttle/) { |
if ($rpm =~ /mod_throttle/) { |
print "WARNING: it appears you have the mod_throttle ". |
print "**** WARNING: it appears you have the mod_throttle ". |
"package installed.\n". |
"package installed.\n". |
"mod_throttle appears to conflict with LON-CAPA.\n". |
"mod_throttle appears to conflict with LON-CAPA.\n". |
"Use the following command to remove it:\n". |
"Use the following command to remove it:\n". |
Line 76 foreach my $rpm (@mod_rpms) {
|
Line 69 foreach my $rpm (@mod_rpms) {
|
} |
} |
|
|
} |
} |
|
</perlscript> |
|
<perlscript dist="redhat7" mode="fg"> |
# |
# |
# Look for packages which we need to be present |
# Look for packages which we need to be present |
my @RPMS = `rpm -q -a`; |
my @RPMS = `rpm -q -a`; |
if ($rhversion eq "7.3") { |
foreach my $rpm ('gnuplot-3.7.1-5','LON-CAPA-systemperl') { |
foreach my $rpm ('gnuplot-3.7.1-5','LON-CAPA-systemperl-3.10') { |
my @matching_rpms = grep(/$rpm/,@RPMS); |
my @matching_rpms = grep(/$rpm/,@RPMS); |
if (! @matching_rpms) { |
if (! @matching_rpms) { |
print "**** WARNING: ".$rpm." does not appear to be installed.\n"; |
print "WARNING: ".$rpm." does not appear to be installed.\n"; |
|
} |
|
} |
} |
} else { |
} |
foreach my $rpm ('gnuplot-', |
</perlscript> |
'perl-IO-Socket-SSL', |
<perlscript dist="fedora1 fedora2 fedora3 fedora4 fedora5 fedora6 fedora7 fedora8 fedora9 fedora10 fedora11 fedora12 fedora13 fedora14 fedora15 fedora16 fedora17 fedora18 fedora19 fedora20 fedora21 fedora22 fedora23 fedora24 fedora25 fedora26 fedora27 fedora28 fedora29 fedora30 fedora31 fedora32 fedora33 fedora34 fedora35 fedora36 fedora37 fedora38 fedora39 fedora40 rhes5 rhes6 rhes7 rhes8 centos5 scientific5 scientific6 centos6 oracle6 scientific7 centos7 oracle7 centos8 oracle8 rocky8 alma8 centos8-stream centos9-stream rhes9 oracle9 rocky9 alma9 suse9.2 suse9.3 suse10.1 suse10.2 suse10.3 sles9 sles10 sles11 sles12 sles15 suse11.1 suse11.2 suse11.3 suse11.4 suse12.1 suse12.2 suse12.3 suse13.1 suse13.2" mode="fg"> |
'perl-Net-SSLeay', |
my $hasprereqs = 0; |
'perl-Time-HiRes-1.59', |
if (open(PIPE,"rpm -q LONCAPA-prerequisites|")) { |
'perl-GDGraph', |
my @lines = (<PIPE>); |
'perl-GD', |
close(PIPE); |
'perl-GD-Graph3d', |
chomp(@lines); |
'perl-GD-Barcode', |
foreach my $line (@lines) { |
'perl-GDTextUtil', |
if ($line =~ /^\QLONCAPA-prerequisites-\E[.\w\-]+$/) { |
'ImageMagick-5', |
$hasprereqs = 1; |
'ImageMagick-perl', |
last; |
'perl-Algorithm-Diff', |
|
'perl-Authen-Krb4', |
|
'perl-Authen-Krb5', |
|
'perl-Authen-PAM', |
|
'perl-Crypt-DES', |
|
'perl-Crypt-IDEA', |
|
'perl-Crypt-SSLeay', |
|
'perl-Event', |
|
'perl-HTML-Tree', |
|
'perl-IO-stringy', |
|
'perl-MailTools', |
|
'perl-Math-Cephes', |
|
'perl-Math-FFT', |
|
'perl-Math-Random', |
|
'perl-Net-PH', |
|
'perl-Net-SNPP', |
|
'perl-Net-SSLeay', |
|
'perl-OLE-Storage_Lite', |
|
'perl-Parse-RecDescent', |
|
'perl-Pod-POM', |
|
'perl-PostScript-Simple', |
|
'perl-Safe-Hole', |
|
'perl-Spreadsheet-WriteExcel', |
|
'perl-String-Similarity', |
|
'perl-Text-Query', |
|
'perl-TimeDate',) { |
|
my @matching_rpms = grep(/$rpm/,@RPMS); |
|
if (! @matching_rpms) { |
|
print "WARNING: ".$rpm." does not appear to be installed.\n"; |
|
} |
} |
} |
} |
} |
} |
|
if (!$hasprereqs) { |
foreach my $rpm ('psutils','openssl-devel','perl-suidperl', |
print "**** WARNING: LONCAPA-prerequisites does not appear to be installed.\n"; |
'apache-1.3','mod_perl.1','^gzip','^zip-', |
} |
'^bzip2-libs','^unzip','^bzip2','^tar-') { |
</perlscript> |
my @matching_rpms = grep(/$rpm/,@RPMS); |
<perlscript dist="debian5 debian6 debian10 debian11 debian12 ubuntu8 ubuntu10 ubuntu12 ubuntu14 ubuntu16 ubuntu18 ubuntu20 ubuntu22 ubuntu24" mode="fg"> |
if (! @matching_rpms) { |
my $hasprereqs = 0; |
print "WARNING: ".$rpm." does not appear to be installed.\n"; |
if (open(PIPE,"dpkg -l loncapa-prerequisites|")) { |
|
my @lines = (<PIPE>); |
|
close(PIPE); |
|
chomp(@lines); |
|
foreach my $line (@lines) { |
|
if ($line =~ /^ii\s+\Qloncapa-prerequisites\E\s+([.\d\-]+)/) { |
|
$hasprereqs = 1; |
|
last; |
|
} |
} |
} |
} |
} |
|
if (!$hasprereqs) { |
|
print "**** WARNING: loncapa-prerequisites does not appear to be installed.\n"; |
|
} |
|
</perlscript> |
|
<perlscript dist="gentoo"> |
|
print <<END; |
|
**** WARNING: We don't know much about your distribution. |
|
Check with the loncapa development team for help satisfying |
|
the many dependencies of LON-CAPA. |
|
END |
|
</perlscript> |
|
<perlscript mode="fg"> |
# |
# |
# Look for files which we need to be present |
# Look for files which we need to be present |
foreach my $file ('/usr/bin/pstops') { |
foreach my $file ('/usr/bin/pstops') { |
if (! -e $file) { |
if (! -e $file) { |
print "WARNING: ".$file." does not appear to be installed.\n"; |
print "**** WARNING: ".$file." does not appear to be installed.\n"; |
} |
} |
} |
} |
</perlscript> |
</perlscript> |