LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-06-2007, 03:29 AM   #1
csdhiman
Member
 
Registered: Mar 2007
Posts: 47

Rep: Reputation: 15
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
 
Old 03-06-2007, 03:37 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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)
 
Old 03-06-2007, 04:52 AM   #3
csdhiman
Member
 
Registered: Mar 2007
Posts: 47

Original Poster
Rep: Reputation: 15
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
 
Old 03-09-2007, 02:22 AM   #4
csdhiman
Member
 
Registered: Mar 2007
Posts: 47

Original Poster
Rep: Reputation: 15

pls desribe the commands syntax .what it means
 
Old 03-09-2007, 02:25 AM   #5
csdhiman
Member
 
Registered: Mar 2007
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by csdhiman

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
 
Old 03-09-2007, 02:44 AM   #6
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Did you download the mysql client library?
 
Old 08-11-2007, 02:44 AM   #7
csdhiman
Member
 
Registered: Mar 2007
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by billymayday
Did you download the mysql client library?
There was Library Problem now working ok

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix with mysql asi.linux Linux - Networking 6 05-30-2006 09:28 AM
Postfix w/ mysql troubleshooting Sapient Linux - Networking 0 01-18-2006 10:35 PM
postfix + mysql cb9fl Linux - General 1 09-01-2004 12:19 AM
postfix / mysql configuration theetderks Linux - Networking 4 02-09-2004 12:21 PM
Compiling Postfix/MySQL hypernetics Linux - Software 0 12-15-2003 01:43 AM


All times are GMT -5. The time now is 05:04 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration