version 1.5, 2002/07/21 15:42:04
|
version 1.14, 2002/12/18 16:11:09
|
Line 61
|
Line 61
|
# perl-DBI-1.21-1.i386.rpm |
# perl-DBI-1.21-1.i386.rpm |
# mod_perl-1.26-5.i386.rpm |
# mod_perl-1.26-5.i386.rpm |
# perl-suidperl-5.6.1-34.99.6.i386.rpm |
# perl-suidperl-5.6.1-34.99.6.i386.rpm |
# LON-CAPA-systemperl-3.4-rh72.i386.rpm |
# LONCAPA-0.6.0-1.i386.rpm |
# mysql-3.23.49-3.i386.rpm |
# mysql-3.23.49-3.i386.rpm |
# mysqlclient9-3.23.22-6.i386.rpm |
# mysqlclient9-3.23.22-6.i386.rpm |
# mysql-server-3.23.49-3.i386.rpm |
# mysql-server-3.23.49-3.i386.rpm |
# hwcrypto-1.0-3.i386.rpm |
# hwcrypto-1.0-3.i386.rpm |
# m2crypto-0.05_snap4-2.i386.rpm |
# m2crypto-0.05_snap4-2.i386.rpm |
# netatalk-1.5pre6-1rh7.i386.rpm |
# netpbm-9.24-3.i386.rpm |
|
# netpbm-progs-9.24-3.i386.rpm |
|
# krb5-libs-1.2.4-3.i386.rpm |
# Other files: |
# Other files: |
# httpd.conf |
# httpd.conf |
# mod_auth_external-2.1.13.tar.gz |
# mod_auth_external-2.1.13.tar.gz |
Line 85 my $result;
|
Line 87 my $result;
|
my $test; |
my $test; |
|
|
# note: The filehandle LOG is global. |
# note: The filehandle LOG is global. |
open LOG,">/tmp/loncapa_install.log" || die "Unable to open log file.\n"; |
open LOG,">loncapa_install.log" || die "Unable to open log file.\n"; |
|
|
# Some friendly subroutines |
# Some friendly subroutines |
sub die_if_nonempty { |
sub die_if_nonempty { |
Line 145 END
|
Line 147 END
|
print <<"END"; |
print <<"END"; |
******************************************************************** |
******************************************************************** |
|
|
Welcome to LON-CAPA |
Welcome to LON-CAPA 0.6.0 |
|
|
This script will install the base software that LON-CAPA needs to |
This script will install the base software that LON-CAPA needs to |
run properly. |
run properly. |
Line 198 my @perl_rpms = (
|
Line 200 my @perl_rpms = (
|
"$instdir/perl-suidperl-5.6.1-34.99.6.i386.rpm", |
"$instdir/perl-suidperl-5.6.1-34.99.6.i386.rpm", |
); |
); |
my @loncapa_perl_rpms = ( |
my @loncapa_perl_rpms = ( |
"$instdir/LON-CAPA-systemperl-3.4-rh72.i386.rpm" |
"$instdir/LONCAPA-0.6.0-1.i386.rpm", |
|
"$instdir/netpbm-9.24-3.i386.rpm", |
|
"$instdir/netpbm-progs-9.24-3.i386.rpm", |
|
"$instdir/krb5-libs-1.2.4-3.i386.rpm", |
|
"$instdir/krb5-devel-1.2.4-3.i386.rpm", |
|
"$instdir/LON-CAPA-krb4-3.1-1.i386.rpm", |
); |
); |
my @mysql_rpms = ( |
my @mysql_rpms = ( |
"$instdir/mysql-3.23.49-3.i386.rpm", # okay w/o f,nd |
"$instdir/mysql-3.23.49-3.i386.rpm", # okay w/o f,nd |
Line 208 my @mysql_rpms = (
|
Line 215 my @mysql_rpms = (
|
my @misc_rpms = ( |
my @misc_rpms = ( |
"$instdir/hwcrypto-1.0-3.i386.rpm", # already installed |
"$instdir/hwcrypto-1.0-3.i386.rpm", # already installed |
"$instdir/m2crypto-0.05_snap4-2.i386.rpm", # okay w/o f,nd |
"$instdir/m2crypto-0.05_snap4-2.i386.rpm", # okay w/o f,nd |
"$instdir/netatalk-1.5pre6-1rh7.i386.rpm" # hmmmm |
"$instdir/tetex-dvips-1.0.7-47.i386.rpm" |
); |
); |
## |
## |
## Okay, I have tried being nice about this and not doing '--force --nodeps', |
## Okay, I have tried being nice about this and not doing '--force --nodeps', |
Line 364 print MYSQL <<"ENDMYSQL";
|
Line 371 print MYSQL <<"ENDMYSQL";
|
CREATE DATABASE loncapa; |
CREATE DATABASE loncapa; |
INSERT INTO user (Host, User, Password) |
INSERT INTO user (Host, User, Password) |
VALUES ('localhost','www',password('localhostkey')); |
VALUES ('localhost','www',password('localhostkey')); |
GRANT ALL PRIVILEGES ON *.* TO www\@localhost; |
INSERT INTO db VALUES ('localhost','loncapa','www', |
|
'Y','Y','Y','Y','Y','Y','N','Y','Y','Y'); |
SET PASSWORD FOR root\@localhost=PASSWORD('$rootpass'); |
SET PASSWORD FOR root\@localhost=PASSWORD('$rootpass'); |
DELETE FROM user WHERE host<>'localhost'; |
DELETE FROM user WHERE host<>'localhost'; |
FLUSH PRIVILEGES; |
FLUSH PRIVILEGES; |
Line 462 commands now:
|
Line 470 commands now:
|
rpm -Uvh perl-5.6.1-34.99.6.i386.rpm |
rpm -Uvh perl-5.6.1-34.99.6.i386.rpm |
rpm -Uvh perl-CGI-2.752-34.99.6.i386.rpm |
rpm -Uvh perl-CGI-2.752-34.99.6.i386.rpm |
|
|
cd /root/loncapa |
cd /root/loncapa-N.N (N.N should correspond to a version number like '0.4') |
./UPDATE |
./UPDATE |
|
|
END |
END |
Line 474 END
|
Line 482 END
|
All of the extra files seem to have been installed correctly. It remains for |
All of the extra files seem to have been installed correctly. It remains for |
you to execute the following commands: |
you to execute the following commands: |
|
|
cd /root/loncapa-N.N; (N.N should correspond to a version number like '0.4') |
cd /root/loncapa-N.N (N.N should correspond to a version number like '0.4') |
./UPDATE |
./UPDATE |
|
|
If you have any trouble, please see http://install.loncapa.org/ and |
If you have any trouble, please see http://install.loncapa.org/ and |