Postfix w/MySQL install
Rob Brandt
yellowdog-general@lists.terrasoftsolutions.com
Wed May 8 16:05:01 2002
Hi. I'm continuing work on my new YDL 2.2 server and am trying to
get Postfix installed with MySQL support. FWIW, I will be using
courier-imap with this.
I have read the HOWTOs at http://kirb.insanegenius.net/postfix.html
and http://kummefryser.dk/HOWTO/mail/postfix_mysql.html but have not
been successful getting postfix to compile because of (I suspect)
differences in installation locations of stuff in YDL and the
instructions (and also because I really don't know what I'm doing
when it come to compiling).
The HOWTO says to 'make' like this:
>make -f Makefile.init makefiles \
>'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include' \
>'AUXLIBS=-L/usr/local/mysql/lib -lmysqlclient -lz -lm'
Well, in YDL there isn't anything at /usr/local/mysql/include, and
make ends with an error. I changed that path to /usr/include/mysql,
and it gets further this time but still stops with an error. I
changed /usr/local/mysql/lib (which doesn't exist) to /usr/lib/mysql,
and make completes without error, but I'm still suspicious because I
noticed that I have no file anywhere named 'lmysqlclient'. I do have
'libmysqlclient', and substituted that, and it also ends without
error. So now I don't know which one is correct because I would
think that I'd get an error on at least one of them. I have
installed mysql server, mysql-devel, & mysql-client.
In any case, I continued with the HOWTO instructions, which continue as:
>make && make install
I try to do that, but it doesn't get very far before it says:
>[src/util]
>gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -g -O -I. -DLINUX -c alldig.c
>In file included from alldig.c:29:
>sys_defs.h:478: sys/types.h: No such file or directory
>alldig.c:30: ctype.h: No such file or directory
>make: *** [alldig.o] Error1
>make: *** [update] Error1
Which I think is trying to tell me that I'm missing something, maybe
some header files. But I'm not familiar enough with the tools to
recognize what. So here are the questions:
1) Do I have my paths correct for the first step?
2) Do I use lmysqlclient or libmysqlclient in the first step?
3) What am I missing in the 2nd step?
TIA
Rob
--