1 | This is how you install w3mir on a Unix system. Please see the file
|
---|
2 | INSTALL.w32 for install instructions for win32 systems.
|
---|
3 |
|
---|
4 | INSTALLING PREREQUISITES:
|
---|
5 |
|
---|
6 | The prerequisites are the perl packages libwww-perl, and MIME-Base64.
|
---|
7 | The w3mir install procedure will check for their presence and complain
|
---|
8 | if they are not there, so if you are unsure what you have you might
|
---|
9 | skip this part for now.
|
---|
10 |
|
---|
11 | - Get libwww-perl from CPAN
|
---|
12 | (http://www.perl.com/CPAN/modules/by-module/WWW/). W3mir does not work
|
---|
13 | with LWP 5.40 and later versions. Please get an earlier version.
|
---|
14 | It also does not work with the new URI package. Use the URI package
|
---|
15 | enclosed in the older LWP.
|
---|
16 |
|
---|
17 | - Unpack it:
|
---|
18 |
|
---|
19 | gzip -dc libwww-perl-*.tar.gz | tar xvBf -
|
---|
20 |
|
---|
21 | - Install it. W3mir does not require the whole libwww-perl package and
|
---|
22 | all the packages that goes with it to work so you may follow these
|
---|
23 | install instructions instead of the libwww-perl install instructions
|
---|
24 | to get an easier install which will work with w3mir.
|
---|
25 |
|
---|
26 | cd libwww-perl-*
|
---|
27 |
|
---|
28 | Are you going to install it in the standard perl place (you need to
|
---|
29 | be the system administrator to do this)? If so:
|
---|
30 |
|
---|
31 | perl Makefile.PL
|
---|
32 |
|
---|
33 | If not (if you are a user):
|
---|
34 |
|
---|
35 | perl Makefile.PL PREFIX=/some/dir
|
---|
36 |
|
---|
37 | /some/dir could be ~ (as in your home directory).
|
---|
38 |
|
---|
39 | IF you are installing an old LWP just for w3mir you can install both
|
---|
40 | the old LWP, the Base64 module and w3mir in a special PREFIX
|
---|
41 | separate from your usual install PREFIX. This ensures that w3mir will
|
---|
42 | access the older version of LWP and that other software will access
|
---|
43 | the newer version. If you do this make sure you install all of LWP,
|
---|
44 | Base64 and w3mir with the same PREFIX.
|
---|
45 |
|
---|
46 | This step might produce some complaints; A standard perl
|
---|
47 | installation will typically get messages about missing these
|
---|
48 | modules: IO::Socket, NET::FTP and MD5. None of these need be
|
---|
49 | installed to run w3mir and so any error messages about these may
|
---|
50 | safely be ignored.
|
---|
51 |
|
---|
52 | make
|
---|
53 | make test (robot/ua and local/http might fail, that's OK)
|
---|
54 | make install
|
---|
55 |
|
---|
56 | Now libwww-perl should be installed and working.
|
---|
57 |
|
---|
58 | - You also have to get the MIME-Base64 package
|
---|
59 | (http://www.perl.com/CPAN/modules/by-module/MIME/)
|
---|
60 |
|
---|
61 | - Unpack it:
|
---|
62 |
|
---|
63 | gzip -dc MIME-Base64-*.tar.gz | tar xvBf -
|
---|
64 |
|
---|
65 | - Install it:
|
---|
66 |
|
---|
67 | cd MIME-Base64-*
|
---|
68 |
|
---|
69 | Then, as above, either
|
---|
70 |
|
---|
71 | perl Makefile.PL
|
---|
72 |
|
---|
73 | or
|
---|
74 |
|
---|
75 | perl Makefile.PL PREFIX=/some/dir
|
---|
76 |
|
---|
77 | Continue:
|
---|
78 |
|
---|
79 | make
|
---|
80 | make test (it should print 'All tests successful.')
|
---|
81 | make install
|
---|
82 |
|
---|
83 | Now MIME-Base64 should be installed and working.
|
---|
84 |
|
---|
85 | INSTALLING W3MIR:
|
---|
86 |
|
---|
87 | - Get w3mir (http://www.math.uio.no/~janl/w3mir/ or from CPAN)
|
---|
88 |
|
---|
89 | - Unpack it:
|
---|
90 |
|
---|
91 | gzip -dc w3mir-*.tar.gz | tar xvBf -
|
---|
92 |
|
---|
93 | - Install it:
|
---|
94 |
|
---|
95 | cd w3mir-*
|
---|
96 |
|
---|
97 | Are you going to install it in the standard perl place? (You
|
---|
98 | probably need to be the system administrator to do this.) If so:
|
---|
99 |
|
---|
100 | perl Makefile.PL
|
---|
101 |
|
---|
102 | If not (if you're a user):
|
---|
103 |
|
---|
104 | perl Makefile.PL PREFIX=/some/dir
|
---|
105 |
|
---|
106 | /some/dir could be ~ (as in your home directory).
|
---|
107 |
|
---|
108 | then
|
---|
109 |
|
---|
110 | make
|
---|
111 | make install
|
---|
112 |
|
---|
113 | w3mir should now be installed correctly. And if it's installed in
|
---|
114 | your path you can even run it. If you use csh or tcsh you want to run
|
---|
115 | 'rehash' before the shell will find it.
|
---|
116 |
|
---|
117 | 1999/04/14 - Nicolai Langfeldt
|
---|