On 7/10/2012 1:36 PM, Feel Zhou wrote: > Thanks for Brian's answer* > * > 1 I add the missed,such as > [root@mail postfix-2.9.3]# make -f Makefile.init makefiles > CCARGS="-DHAS_MYSQL -I/usr/local/mysql/include" > AUXLIBS="-L/usr/local/mysql/lib -lmysqlclient" > and still have the problem, sorry about long log
First, the example in the README is for basic support and ignores other options you previously noted on your CCARGS and AUXLIBS. You should ADD the options in the README to PCRE, TLS and whatever other options you want for CCARGS and AUXLIBS. > > > [root@mail postfix-2.9.3]# make > [snip] > dict_mysql.c:169:19: error: mysql.h: No such file or directory Second, it seems there is no mysql.h in your indicated /usr/local/mysql/include. This causes most if not all of your issues logged. Are the mysql headers really there? > > 2 I read the document http://www.postfix.org/PCRE_README.html , use > command like that > [root@mail postfix-2.9.3]# make -f Makefile.init makefiles > CCARGS="-DHAS_PCRE -I/usr/local/include" AUXLIBS="-L/usr/local/lib > -R/usr/local/lib -lpcre" > and still so long log, sorry > > dict_pcre.c:61:18: error: pcre.h: No such file or directory Same kind of issue as above. Incorrect pointer in CCARGS to find pcre.h. Brian > [root@mail]make -f Makefile.init makefiles \ > >CCARGS="-DHAS_DB -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DUSE_TLS > -DHAS_LDAP \ > >-I/usr/local/include -I/usr/local/BerkeleyDB/include > -I/usr/include/sasl " \ > >AUXLIBS="-L/usr/local/lib -L/usr/local/BerkeleyDB/lib > -L/usr/lib/sasl2 \ > > -ldb -lssl -lcrypto -lsasl2 -lz -lm -lldap -llber"