[Dovecot] Cannot build rpm with mysql support from dovecot.spec
I've been playing for hours with the dovecot.spec file to build --with-mysql. The resulting RPM builds fine but when dovecot runs it does not recognize the passdb mysql statement.
I also noted that the spec file has a version of 1.0-stable and rpmbuild complains about an invalid '-' in the version.
Being a newbie in rpmbuild, can someone assist me in building for CentOS 4 on i386? standard build options but --with-mysql added.
I also tried to install it from sources and it does not work (at least for me). Being a RPM user now I have to clean what the source installation did and i have no clue where the 'make install' placed files.
BTW I am trying to build a manual (pdf, html) with the following config and im only stuck with dovecot, the other daemons are ready.
Target Server: CentOS 4 with apache, postfix, mysql, dovecot, openwebmail,clamav, clamd, php,zlib,openssh, webmin and samba. All virtual running from mysql where possible, no local users no local storage (all to the mysql db/tables).
Not wanted: postgresql, courier,vpopmail,kerberos,sasl,ssl (that might be in manual v2.0 if 1.0 ever sees the light) The system does not have X (no need for fancy graphs)
file used: http://www.dovecot.org/nightly/stable/dovecot-stable-20051102.tar.gz
RPMs Used: All RPMs that can be located in the CentOS 4 CDs so new users (like me) can do as much as needed without downloading.
Devel RPMs: All devel (mysql, pam, openssl) are installed and they are recognized at building time.
Your help will be appreciated in this task.
Thanks,
--
Erick Perez Linux User 376588 http://counter.li.org/ (Get counted!!!) Panama, Republic of Panama
Forgot to mention that Mailwatch, SpamAssasin and MailScanner are in the package list.
On 11/1/05, Erick Perez eaperezh@gmail.com wrote:
I've been playing for hours with the dovecot.spec file to build --with-mysql. The resulting RPM builds fine but when dovecot runs it does not recognize the passdb mysql statement.
I also noted that the spec file has a version of 1.0-stable and rpmbuild complains about an invalid '-' in the version.
Being a newbie in rpmbuild, can someone assist me in building for CentOS 4 on i386? standard build options but --with-mysql added.
I also tried to install it from sources and it does not work (at least for me). Being a RPM user now I have to clean what the source installation did and i have no clue where the 'make install' placed files.
BTW I am trying to build a manual (pdf, html) with the following config and im only stuck with dovecot, the other daemons are ready.
Target Server: CentOS 4 with apache, postfix, mysql, dovecot, openwebmail,clamav, clamd, php,zlib,openssh, webmin and samba. All virtual running from mysql where possible, no local users no local storage (all to the mysql db/tables).
Not wanted: postgresql, courier,vpopmail,kerberos,sasl,ssl (that might be in manual v2.0 if 1.0 ever sees the light) The system does not have X (no need for fancy graphs)
file used: http://www.dovecot.org/nightly/stable/dovecot-stable-20051102.tar.gz
RPMs Used: All RPMs that can be located in the CentOS 4 CDs so new users (like me) can do as much as needed without downloading.
Devel RPMs: All devel (mysql, pam, openssl) are installed and they are recognized at building time.
Your help will be appreciated in this task.
Thanks,
--
Erick Perez Linux User 376588 http://counter.li.org/ (Get counted!!!) Panama, Republic of Panama
--
Erick Perez Linux User 376588 http://counter.li.org/ (Get counted!!!) Panama, Republic of Panama
Erick Perez wrote:
Devel RPMs: All devel (mysql, pam, openssl) are installed and they are recognized at building time.
There is a bug in Dovecot configure script which makes it go through clean even when --with-mysql is specified but none of needed libraries are found.
I got MySQL support working on RHEL 4 with following MySQL packages:
$ rpm -qa | grep -i mysql MySQL-devel-standard-4.1.15-0.rhel4 MySQL-shared-standard-4.1.15-0.rhel4
So those should be all you need, you can get them at:
http://dev.mysql.com/downloads/mysql/4.1.html
-- Tomi Hakala
but those are not standard RPMs in a CentOS 4 CD set. Why the difference?
On 11/2/05, Tomi Hakala tomi.hakala@clinet.fi wrote:
Erick Perez wrote:
Devel RPMs: All devel (mysql, pam, openssl) are installed and they are recognized at building time.
There is a bug in Dovecot configure script which makes it go through clean even when --with-mysql is specified but none of needed libraries are found.
I got MySQL support working on RHEL 4 with following MySQL packages:
$ rpm -qa | grep -i mysql MySQL-devel-standard-4.1.15-0.rhel4 MySQL-shared-standard-4.1.15-0.rhel4
So those should be all you need, you can get them at:
http://dev.mysql.com/downloads/mysql/4.1.html
-- Tomi Hakala
--
Erick Perez Linux User 376588 http://counter.li.org/ (Get counted!!!) Panama, Republic of Panama
participants (2)
-
Erick Perez
-
Tomi Hakala