]> Pileus Git - ~andy/fetchmail/blob - INSTALL
70fe0595b329f7c70df9e689fe77b756d0f88458
[~andy/fetchmail] / INSTALL
1                 INSTALL Instructions for fetchmail
2
3 If you have installed binaries (e.g. from an RPM) you can skip to step 4.
4
5 If you are a Linux system packager, be aware that the build process generates
6 an RPM spec file at fetchmail.spec.
7
8 The Frequently Asked Questions list, included as the file FAQ in this
9 distributions, answers the most common questions about configuring and 
10 running fetchmail.
11
12 1. CONFIGURE
13
14 Installing fetchmail is easy.  From within this directory, type:
15
16         ./configure
17
18 The autoconfiguration script will spend a bit of time figuring out the
19 specifics of your system.  If you want to specify a particular compiler
20 (e.g. you have gcc but want to compile with cc), set the environment 
21 variable CC before you run configure.  
22
23 The configure script accepts certain standard configuration options.
24 These include --prefix, --exec-prefix, --bindir, --infodir, --mandir,
25 and --srcdir.  Do `config --help' for more.
26
27 If you're running QNX, edit the distributed Makefile directly.  The
28 QNX values for various macros are there but commented out; all you
29 have to do is uncomment them.
30
31 2. MAKE 
32
33 You may find you need flex at version 2.5.3 or greater to build
34 fetchmail.  The stock lex distributed with Linux does not work -- it
35 yields a parser which core-dumps on syntax errors.
36
37 Run
38
39         make
40
41 This should compile fetchmail for your system.
42
43 Some makes (on AIX and HPUX and possibly elsewhere) choke on the YACC
44 grammar dependencies.  If this happens to you, install the free GNU
45 make program and throw away your native one, it's broken.
46
47 If linking fails to resolve atexit(), go find a compiler that isn't lying
48 about being ANSI-compliant (such as gcc).  Some SunOS users have had this
49 problem.
50
51 3. INSTALL
52
53 Lastly, become root and run
54
55         make install
56
57 This will install fetchmail.  By default, fetchmail will be installed
58 in /usr/local/bin, with the man page in /usr/local/man/man1.  If you
59 wish to change these defaults, edit the Makefile AFTER you run
60 "configure" but BEFORE you run "make install."  You can easily choose
61 a prefix other than /usr/local, or you can choose completely different
62 directories for each item.
63
64 NOTE: If you are using exim, you must configure it to accept local
65 addresses as valid RCPT TO lines.
66
67 4. SET UP A RUN CONTROL FILE
68
69 See the man page or the file sample.rcfile for a description of how to
70 configure your individual preferences.
71
72 If you're upgrading from popclient, see question F4 in the FAQ file.
73
74 5. TEST
75
76 I strongly recommend that your first fetchmail run use the -v and -k
77 options, in case there is something not quite right with your server,
78 your local delivery configuration or your port 25 listener.  Also,
79 beware of aliases that direct your local mail back to the server host!
80
81 This software is known to work with the qpop/popper series of
82 freeware POP3 servers; also with the IMAP2bis and IMAP4 servers that are
83 distributed with Pine from the University of Washington.  
84
85 A couple of users have reported that some recent (post-2.7.2) versions
86 of gcc seem to have an optimizer bug that affects fetchmail.  If your
87 fetchmail core dumps (especially near startup) try recompiling without
88 -O.  Alternatively, you can drop back to gcc 2.7.2 or below.
89
90 6. REPORTING BUGS
91
92 You should read the FAQ file question G1 before reporting a bug.
93
94 7. USE IT
95
96 Enjoy!
97