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