Annotation of doc/how_to_install_on_RedHat7.2.txt, revision 1.3
1.3 ! harris41 1: $Id: how_to_install_on_RedHat7.2.txt,v 1.2 2002/02/28 01:37:16 harris41 Exp $
1.2 harris41 2:
3: (Alternative approach to perl module-ing is at end...)
1.1 matthew 4:
5: Install RedHat 7.2 on your system. Use a 'custom' install and include
6: the web and sql servers along with any others you need or desire.
7:
8: 1. Add the user www
9: /usr/sbin/adduser www
10:
11: 2. Determine the user id of www (needed in the next step):
12: grep ^www /etc/passwd | cut -d':' -f3
13:
14: 3. Work around authentication issues:
15: wget http://www.wwnet.net/~janc/software/mod_auth_external-2.1.13.tar.gz
16: tar zxvf mod_auth_external-2.1.13.tar.gz
17: cd mod_auth_external-2.1.13/pwauth/
18:
19: edit config.h and change the line:
20:
21: #define SERVER_UIDS 99 /* user "nobody" */
22:
23: to
24:
25: #define SERVER_UIDS 666 /* user "www" */
26:
27: where 666 is the number that results from step 2 above.
28:
29: make
30: cp pwauth /usr/local/sbin
31: chmod 6755 /usr/local/sbin/pwauth
32:
33: edit (creating the file) /etc/pam.d/pwauth to have the contents
34: auth required /lib/security/pam_pwdb.so shadow nullok
35: auth required /lib/security/pam_nologin.so
36: account required /lib/security/pam_pwdb.so
37:
38: 4. make sure you have mod_perl and apache on your system
39:
40: 5. Checkout CVS repository (I'm assuming you're already set up for cvs)
41: cvs co loncapa
42:
43: 6. Install the needed RPMS
44:
45: Needed rpms for RH7.2 install and where to get them (sort of)
46: -------------------------------------------------------------
47: lon-capa rpms (install.lon-capa.org)
48: -------------------
49: LON-CAPA-base
50: LON-CAPA-systemperl
51: LON-CAPA-krb4
52: LON-CAPA-mysql
53: LON-CAPA-barcode
54:
55: rpms on rpmfind.net (only accept these versions)
56: ------------------------------------------------
57: ipxutils ipxutils-2.2.0.18-6.i386.rpm
58: netatalk netatalk-1.5pre6-1rh7.i386.rpm
59: libungif-progs libungif-progs-4.1.0-9.i386.rpm
60: libgd libgd-1.3-4.i386.rpm
61: gnuplot gnuplot-3.7.1-5.i386.rpm
62:
63: rpms on install cds or updates
64: ------------------------------
65: + sysreport sysreport-1.2-1.noarch.rpm
66: + mars-nwe mars-nwe-0.99pl20-6.i386.rpm
67: + wu-ftpd wu-ftpd-2.6.1-20.i386.rpm
68: + linuxconf linuxconf-1.25r7-3.i386.rpm
69:
70: install these all with rpm -Uvh, occasionally using --force and/or --nodeps
71:
72: rpm -Uvh linuxconf-1.25r7-3.i386.rpm
73: rpm -Uvh sysreport-1.2-1.noarch.rpm
74: rpm -Uvh mars-nwe-0.99pl20-6.i386.rpm
75: rpm -Uvh wu-ftpd-2.6.1-20.i386.rpm
76: rpm -Uvh ipxutils-2.2.0.18-6.i386.rpm
77: rpm -Uvh netatalk-1.5pre6-1rh7.i386.rpm
78: rpm -Uvh libungif-progs-4.1.0-9.i386.rpm
79: rpm -Uvh libgd-1.3-4.i386.rpm
80: rpm -Uvh gnuplot-3.7.1-5.i386.rpm
81: rpm -Uvh --force --nodeps LON-CAPA-base
82: rpm -Uvh --force --nodeps rpm -Uvh LON-CAPA-systemperl.rpm
83: rpm -Uvh --force --nodeps rpm -Uvh LON-CAPA-krb4.rpm
84: rpm -Uvh --force --nodeps rpm -Uvh LON-CAPA-mysql.rpm
85: rpm -Uvh --force --nodeps rpm -Uvh LON-CAPA-barcode.rpm
86:
87: 7. Correct some RPM errors
88: The Perl modules installed by the systemperl rpm are not in the proper place
89: (the rpm was designed for 5.005 and RedHat 7.2 uses 5.6.0).
90: cd /usr/lib/perl5/site_perl/5.005
91: cp -R * ../5.6.0/
92:
93: 8. Fix CGI::Cookie.pm
94:
95: edit /usr/lib/perl5/5.6.0/CGI/Cookie.pm
96: change the lines:
97: # IE requires the path and domain to be present for some reason.
98: $path = CGI::url(-absolute=>1) unless defined $path;
99: to:
100: # IE requires the path and domain to be present for some reason.
101: ($path = $ENV{'SCRIPT_NAME'})=~s![^/]+$!! unless $path;
102:
103: 9. update LON-CAPA-base files with CVS
104: cd ~/loncapa
105: cvs update -d
106: cd loncom/build
107: make DIST='redhat7.1' build; make DIST='redhat7.1' install
108:
109: 10. Update LON-CAPA config files
110:
111: httpd configuration:
112:
113: cd /etc/httpd/conf
114: cp access.conf.lpmlnew access.conf
115: edit access.conf to reflect the correct information:
116:
117: PerlSetVar lonHostID YOUR LON-HOST ID
118: PerlSetVar lonRole library
119: PerlSetVar lonAdmEMail YOUR EMAIL ADDRESS
120: PerlSetVar lonDefDomain YOUR DOMAIN
121: PerlSetVar lonLoadLim 2.0
122: PerlSetVar lonExpire 86400
123: PerlSetVar lonReceipt A RANDOM NUMBER (REAL, NOT INTEGER)
124: PerlSetVar lonSqlAccess 123
125:
126: Replace the capitalized text with your information
127:
128: kerberos configuration
129:
130: edit /etc/krb.conf to reflect your kerberos information
131:
132: LON-CAPA hosts configuration:
133:
134: /home/httpd/lonTabs/hosts.tab should be updated
135:
136: 11. Restart the daemons
137: /etc/init.d/httpd restart
138: /etc/init.d/loncontrol restart
139:
140: 12. Updated documentation
141: Please help us keep our documentation up to date! If there is something
142: in this document that was unclear or required further explaination, please help
143: us help others by improving it!
144:
145:
146:
147: SOME NOTES ON THE RPMS INSTALLED
148: ------------------------------------------------------------------
149: gnuplot gnuplot-3.7.1-5.i386.rpm
150: USE ONLY THIS VERSION OF GNUPLOT! Other versions may not have
151: gif support compiled in and dynamically generated plots will fail!
152: libgd libgd-1.3-4.i386.rpm
153: Required by gnuplot
1.2 harris41 154:
155:
156: ==================================================================
157: Alternative Approaches
158:
159: Regarding: Perl modules
160: As noted above, it is possible to install then redirect
161: the files with LON-CAPA-systemperl. Another approach
162: is to use loncom/build/system_dependencies/perltest.pl
163: combined with the 30+ perl specific rpms that RedHat is
164: now releasing with version 7.*.
165:
166: * need to fix Cookie.pm as noted above
167:
168: ncftpget ftp://mirror.pa.msu.edu/linux/redhat/linux/7.2/en/os/i386/RedHat/RPMS/*perl*.rpm
169: And do comparisons with output from
170: perl CVS:loncom/build/system_dependencies/perltest.pl
171:
172: Here is what is found from this approach:
173:
174: Already installed on RedHat 7.2 by default:
175: groff-perl-1.17.2-3.i386.rpm
176: mod_perl-1.24_01-3.i386.rpm
177: perl-DateManip-5.39-5.noarch.rpm
178: perl-Digest-MD5-2.13-1.i386.rpm
179: perl-File-MMagic-1.06-2.i386.rpm
180: perl-HTML-Parser-3.25-2.i386.rpm
181: perl-HTML-Tagset-3.03-3.i386.rpm
182: perl-MIME-Base64-2.12-6.i386.rpm
183: perl-NKF-1.71-2.i386.rpm
184: perl-Parse-Yapp-1.04-3.noarch.rpm
185: perl-SGMLSpm-1.03ii-4.noarch.rpm
186: perl-Storable-0.6.11-6.i386.rpm
187: perl-Text-Kakasi-1.04-4.i386.rpm
188: perl-URI-1.12-5.noarch.rpm
189: perl-XML-Dumper-0.4-5.noarch.rpm
190: perl-XML-Encoding-1.01-2.noarch.rpm
191: perl-XML-Grove-0.46alpha-3.noarch.rpm
192: perl-XML-Parser-2.30-7.i386.rpm
193: perl-XML-Twig-2.02-2.noarch.rpm
194: perl-libnet-1.0703-6.noarch.rpm
195: perl-libwww-perl-5.53-3.noarch.rpm
196: perl-libxml-enno-1.02-5.noarch.rpm
197: perl-libxml-perl-0.07-5.noarch.rpm
198:
199: New installations needed:
200: rpm -Uvh mysql-3.23.41-1.i386.rpm
201: rpm -Uvh perl-DBD-MySQL-1.2216-4.i386.rpm
202: rpm -Uvh perl-DBI-1.18-1.i386.rpm
203:
204: Still need:
205: wget http://www.linuxjar.com/CPAN/authors/id/R/RK/RKOBES/Math-FFT-0.25.tar.gz
206: wget http://www.cpan.org/authors/id/MVERB/GDTextUtil-0.80.tar.gz
207: wget http://www.cpan.org/authors/id/W/WA/WADG/GDGraph3d-0.56.tar.gz
208: wget http://www.cpan.org/authors/id/MVERB/GDGraph-1.33.tar.gz
209: wget http://www.cpan.org/authors/id/R/RK/RKOBES/Math-Cephes-0.25.tar.gz
210: wget http://www.cpan.org/authors/id/G/GR/GROMMEL/Math-Random-0.64.tar.gz
211: wget http://www.cpan.org/modules/by-module/GD/GD-Barcode-1.13.tar.gz
212: wget http://www.cpan.org/modules/by-module/GD/GD-1.33.tar.gz
213: wget http://www.cpan.org/authors/id/N/NE/NEDKONZ/Algorithm-Diff-1.11a.tar.gz
214: wget http://www.cpan.org/authors/id/S/SB/SBURKE/HTML-Tree-3.11.tar.gz
215: wget http://www.cpan.org/authors/id/G/GB/GBARR/MailTools-1.15.tar.gz
216: wget http://www.cpan.org/authors/id/E/ER/ERYQ/MIME-tools-BETA-5.503.tar.gz
217: wget http://www.cpan.org/authors/id/E/EB/EBOHLMAN/Text-Query-Advanced-0.05.tar.gz
218: wget http://www.cpan.org/authors/id/E/EB/EBOHLMAN/Text-Query-0.07.tar.gz
219: wget http://www.cpan.org/authors/id/E/EB/EBOHLMAN/Text-Query-Simple-0.03.tar.gz
220: wget http://www.cpan.org/authors/id/J/JH/JHORWITZ/Krb4-1.1.tar.gz
221: wget http://www.cpan.org/authors/id/D/DP/DPARIS/Crypt-DES-2.03.tar.gz
222: wget http://www.cpan.org/authors/id/D/DP/DPARIS/Crypt-IDEA-1.01.tar.gz
223: wget http://www.cpan.org/authors/id/S/SE/SEYN/Safe-Hole-0.08.tar.gz
224:
225: Algorithm-Diff
226: perl Makefile.PL; make; make test; sudo make install
227: Crypt-DES
228: perl Makefile.PL; make; make test; sudo make install
229: Crypt-IDEA (some swig problems...delay)
230: GD
231: perl Makefile.PL; make; make test; sudo make install
232: GD-Barcode
233: perl Makefile.PL; make; make test; sudo make install
234: GDGraph (need to do GDTextUtil first so)
235: GDTextUtil
236: perl Makefile.PL; make; make test; sudo make install
237: GDGraph (need to do GDTextUtil first so)
238: perl Makefile.PL; make; make test; sudo make install
239: Krb4 (need to get athena kerberos...delay)
240: MailTools
241: perl Makefile.PL; make; make test; sudo make install
242: Math-Cephes
243: perl Makefile.PL; make; make test; sudo make install
244: Math-Random
245: perl Makefile.PL; make; make test; sudo make install
246: Safe-Hole
247: perl Makefile.PL; make; make test; sudo make install
248: Text-Query
249: perl Makefile.PL; make; make test; sudo make install
250: Text-Query-Advanced
251: perl Makefile.PL; make; make test; sudo make install
252: Text-Query-Simple
253: perl Makefile.PL; make; make test; sudo make install
254:
255: So last problems...
256: Crypt-IDEA and Krb4
257:
258: Crypt-IDEA (problems with 5.6.0 namespace... so use pollute flag)
259: perl Makefile.PL POLLUTE=1; make; make test; sudo make install
260: Krb4
261: sudo rpm -Uvh LON-CAPA-krb4-3.1-1.i386.rpm
262: perl Makefile.PL; make; make test; sudo make install
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>