--- doc/Attic/how_to_install_on_RedHat7.2.txt 2002/02/04 11:13:41 1.1 +++ doc/Attic/how_to_install_on_RedHat7.2.txt 2002/05/10 20:51:20 1.8 @@ -1,4 +1,7 @@ -$Id: how_to_install_on_RedHat7.2.txt,v 1.1 2002/02/04 11:13:41 matthew Exp $ +$Id: how_to_install_on_RedHat7.2.txt,v 1.8 2002/05/10 20:51:20 harris41 Exp $ + +(Alternative approach to perl module-ing is at end...) +(Alternative approach to mysql is at end...) Install RedHat 7.2 on your system. Use a 'custom' install and include the web and sql servers along with any others you need or desire. @@ -48,7 +51,6 @@ LON-CAPA-base LON-CAPA-systemperl LON-CAPA-krb4 LON-CAPA-mysql -LON-CAPA-loncapaconfig LON-CAPA-barcode rpms on rpmfind.net (only accept these versions) @@ -81,7 +83,6 @@ rpm -Uvh --force --nodeps LON-CAPA-base rpm -Uvh --force --nodeps rpm -Uvh LON-CAPA-systemperl.rpm rpm -Uvh --force --nodeps rpm -Uvh LON-CAPA-krb4.rpm rpm -Uvh --force --nodeps rpm -Uvh LON-CAPA-mysql.rpm -rpm -Uvh --force --nodeps rpm -Uvh LON-CAPA-loncapaconfig.rpm rpm -Uvh --force --nodeps rpm -Uvh LON-CAPA-barcode.rpm 7. Correct some RPM errors @@ -104,7 +105,7 @@ to: cd ~/loncapa cvs update -d cd loncom/build -make DIST='redhat7.1' build; make DIST='redhat7.1' install +make DIST='redhat7' build; make DIST='redhat7' install 10. Update LON-CAPA config files @@ -139,7 +140,7 @@ LON-CAPA hosts configuration: 12. Updated documentation Please help us keep our documentation up to date! If there is something -in this document that was unclear or required further explaination, please help +in this document that was unclear or required further explanation, please help us help others by improving it! @@ -151,3 +152,153 @@ gnuplot gnuplot-3.7.1-5.i3 gif support compiled in and dynamically generated plots will fail! libgd libgd-1.3-4.i386.rpm Required by gnuplot + + +================================================================== +Alternative Approaches + +------------------------------------------------------------------ +Regarding: Perl modules +As noted above, it is possible to install then redirect +the files with LON-CAPA-systemperl. Another approach +is to use loncom/build/system_dependencies/perltest.pl +combined with the 30+ perl specific rpms that RedHat is +now releasing with version 7.*. + +* need to fix Cookie.pm as noted above + +ncftpget ftp://mirror.pa.msu.edu/linux/redhat/linux/7.2/en/os/i386/RedHat/RPMS/*perl*.rpm +And do comparisons with output from +perl CVS:loncom/build/system_dependencies/perltest.pl + +Here is what is found from this approach: + +Already installed on RedHat 7.2 by default: +groff-perl-1.17.2-3.i386.rpm +mod_perl-1.24_01-3.i386.rpm +perl-DateManip-5.39-5.noarch.rpm +perl-Digest-MD5-2.13-1.i386.rpm +perl-File-MMagic-1.06-2.i386.rpm +perl-HTML-Parser-3.25-2.i386.rpm +perl-HTML-Tagset-3.03-3.i386.rpm +perl-MIME-Base64-2.12-6.i386.rpm +perl-NKF-1.71-2.i386.rpm +perl-Parse-Yapp-1.04-3.noarch.rpm +perl-SGMLSpm-1.03ii-4.noarch.rpm +perl-Storable-0.6.11-6.i386.rpm +perl-Text-Kakasi-1.04-4.i386.rpm +perl-URI-1.12-5.noarch.rpm +perl-XML-Dumper-0.4-5.noarch.rpm +perl-XML-Encoding-1.01-2.noarch.rpm +perl-XML-Grove-0.46alpha-3.noarch.rpm +perl-XML-Parser-2.30-7.i386.rpm +perl-XML-Twig-2.02-2.noarch.rpm +perl-libnet-1.0703-6.noarch.rpm +perl-libwww-perl-5.53-3.noarch.rpm +perl-libxml-enno-1.02-5.noarch.rpm +perl-libxml-perl-0.07-5.noarch.rpm + +New installations needed: +rpm -Uvh mysql-3.23.41-1.i386.rpm +rpm -Uvh perl-DBD-MySQL-1.2216-4.i386.rpm +rpm -Uvh perl-DBI-1.18-1.i386.rpm + +Still need: + http://www.cpan.org/authors/id/R/RK/RKOBES/Math-FFT-0.25.tar.gz +wget http://www.cpan.org/authors/id/MVERB/GDTextUtil-0.80.tar.gz +wget http://www.cpan.org/authors/id/W/WA/WADG/GDGraph3d-0.56.tar.gz +wget http://www.cpan.org/authors/id/MVERB/GDGraph-1.33.tar.gz +wget http://www.cpan.org/authors/id/R/RK/RKOBES/Math-Cephes-0.25.tar.gz +wget http://www.cpan.org/authors/id/G/GR/GROMMEL/Math-Random-0.64.tar.gz +wget http://www.cpan.org/modules/by-module/GD/GD-Barcode-1.13.tar.gz +wget http://www.cpan.org/modules/by-module/GD/GD-1.33.tar.gz +wget http://www.cpan.org/authors/id/N/NE/NEDKONZ/Algorithm-Diff-1.11a.tar.gz +wget http://www.cpan.org/authors/id/S/SB/SBURKE/HTML-Tree-3.11.tar.gz +wget http://www.cpan.org/authors/id/G/GB/GBARR/MailTools-1.15.tar.gz +wget http://www.cpan.org/authors/id/E/ER/ERYQ/MIME-tools-BETA-5.503.tar.gz +wget http://www.cpan.org/authors/id/E/EB/EBOHLMAN/Text-Query-Advanced-0.05.tar.gz +wget http://www.cpan.org/authors/id/E/EB/EBOHLMAN/Text-Query-0.07.tar.gz +wget http://www.cpan.org/authors/id/E/EB/EBOHLMAN/Text-Query-Simple-0.03.tar.gz +wget http://www.cpan.org/authors/id/J/JH/JHORWITZ/Krb4-1.1.tar.gz +wget http://www.cpan.org/authors/id/D/DP/DPARIS/Crypt-DES-2.03.tar.gz +wget http://www.cpan.org/authors/id/D/DP/DPARIS/Crypt-IDEA-1.01.tar.gz +wget http://www.cpan.org/authors/id/S/SE/SEYN/Safe-Hole-0.08.tar.gz + +Algorithm-Diff +perl Makefile.PL; make; make test; sudo make install +Crypt-DES +perl Makefile.PL; make; make test; sudo make install +Crypt-IDEA (some swig problems...delay) +GD +perl Makefile.PL; make; make test; sudo make install +GD-Barcode +perl Makefile.PL; make; make test; sudo make install +GDGraph (need to do GDTextUtil first so) +GDTextUtil +perl Makefile.PL; make; make test; sudo make install +GDGraph (need to do GDTextUtil first so) +perl Makefile.PL; make; make test; sudo make install +IO-Stringy +perl Makefile.PL; make; make test; sudo make install +Krb4 (need to get athena kerberos...delay) +MailTools +perl Makefile.PL; make; make test; sudo make install +Math-Cephes +perl Makefile.PL; make; make test; sudo make install +Math-Random +perl Makefile.PL; make; make test; sudo make install +MIME-Tools +perl Makefile.PL; make; make test; sudo make install +Safe-Hole +perl Makefile.PL; make; make test; sudo make install +Text-Query +perl Makefile.PL; make; make test; sudo make install +Text-Query-Advanced +perl Makefile.PL; make; make test; sudo make install +Text-Query-Simple +perl Makefile.PL; make; make test; sudo make install + +So last problems... +Crypt-IDEA and Krb4 + +Crypt-IDEA (problems with 5.6.0 namespace... so use pollute flag) +perl Makefile.PL POLLUTE=1; make; make test; sudo make install +Krb4 +sudo rpm -Uvh LON-CAPA-krb4-3.1-1.i386.rpm +perl Makefile.PL; make; make test; sudo make install + +------------------------------------------------------------------ + +Regarding MySQL. +Require these RPMs: +mysql-3.23.41-1 (or standard RedHat 7.* version) +mysql-server-3.23.41 (or standard RedHat 7.* version) + +*********************************************** Generating the 'www' mysql user +Enter the mysql shell--- +mysql -u root -p mysql +OR +mysql -u root mysql (depending on whether the mysql root password is set) + +Run these commands--- +CREATE DATABASE loncapa; + +INSERT INTO user (Host, User, Password) +VALUES ('localhost','www',password('SOMEPASSWORD')); + +GRANT ALL PRIVILEGES ON *.* TO www@localhost; + +FLUSH PRIVILEGES; + +************************************* SECURITY: Setting the mysql root password +shell> mysql -u root mysql +mysql> SET PASSWORD FOR root@localhost=PASSWORD('new_password'); + +************************************ SECURITY: only allow access from localhost +mysql> delete from user where host<>'localhost' + +------------------------------------------------------------------ + +Also, be sure to: +/sbin/chkconfig --level 345 httpd on +/sbin/chkconfig --level 345 mysqld on