LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   postfix mysql (http://www.linuxquestions.org/questions/linux-server-73/postfix-mysql-534989/)

csdhiman 03-06-2007 03:29 AM

postfix mysql
 
I want to know to configure postfix with mysql support is it possible to simply insatll a rpm rather than installing src package with mysql tags .
pls reply

billymayday 03-06-2007 03:37 AM

I think it depends on your distro, but as far as I know, the redhat variants don't have mysql enabled in their rpms (ie your will need to compile as you've suggested)

csdhiman 03-06-2007 04:52 AM

thanks for reply

what is the tags means pls describe

make -f Makefile.init makefiles \
'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include' \
'AUXLIBS=-L/usr/local/mysql/lib -lmysqlclient -lz -lm'


or i can use this too

rpmbuild --rebuild --define='MYSQL 1' postfix-2.0.18-4.src.rpm

csdhiman 03-09-2007 02:22 AM

:study:
pls desribe the commands syntax .what it means

csdhiman 03-09-2007 02:25 AM

Quote:

Originally Posted by csdhiman
:study:
pls desribe the commands syntax .what it means

i m facing problem in compiling postfix with mysql .
as i tried this as :

[root@csdhiman postfix-2.1.6]# make -f Makefile.init makefiles 'CCARGS=-DHA
S_MYSQL -I/usr/include/mysql' 'AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz -
lm'

This is i get on running command make.


g -O -I. -I../../include -DLINUX2 -o postsuper postsuper.o ../../lib/libglobal.a
../../lib/libutil.a -L/usr/lib/mysql -lmysqlclient -lz -lm -lpcre -ldb -lnsl -l
resolv
cp postsuper ../../bin
[src/qmqpd]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -
g -O -I. -I../../include -DLINUX2 -c qmqpd.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -
g -O -I. -I../../include -DLINUX2 -c qmqpd_state.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -
g -O -I. -I../../include -DLINUX2 -c qmqpd_peer.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -
g -O -I. -I../../include -DLINUX2 -o qmqpd qmqpd.o qmqpd_state.o qmqpd_peer.o ..
/../lib/libmaster.a ../../lib/libglobal.a ../../lib/libdns.a ../../lib/libutil.a
-L/usr/lib/mysql -lmysqlclient -lz -lm -lpcre -ldb -lnsl -lresolv
cp qmqpd ../../libexec
[src/spawn]
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -
g -O -I. -I../../include -DLINUX2 -c spawn.c
gcc -Wmissing-prototypes -Wformat -DHAS_MYSQL -I/usr/include/mysql -DHAS_PCRE -
g -O -I. -I../../include -DLINUX2 -o spawn spawn.o ../../lib/libmaster.a ../../l



PLS HELP ME

billymayday 03-09-2007 02:44 AM

Did you download the mysql client library?

csdhiman 08-11-2007 02:44 AM

Quote:

Originally Posted by billymayday
Did you download the mysql client library?

There was Library Problem now working ok

Thanks


All times are GMT -5. The time now is 09:42 PM.