Try adding:
--with-moduledir=/usr/lib/dovecot/modules
when calling configure. That fixed this for me.
It seems to me when need to fix the default value of moduledir to not
confilict with the libdir (or libexecdir).
John
Imre Gergely wrote:> hi
>
> i downloaded dovecot-1.0.beta1.tar.gz, did a rpmbuild -ta
> dovecot-1.0.beta1.tar.gz (which uses the dovecot.spec from the tar.gz), and
got
> the following:
>
> Making install in quota
> make[3]: Entering directory
> `/usr/src/gimre/rpm2/BUILD/dovecot-1.0.beta1/src/plugins/quota'
> make[4]: Entering directory
> `/usr/src/gimre/rpm2/BUILD/dovecot-1.0.beta1/src/plugins/quota'
> mkdir -p -- /usr/lib/dovecot/imap /usr/lib/dovecot/lda
> mkdir: cannot create directory `/usr/lib/dovecot': Permission denied
> mkdir: cannot create directory `/usr/lib/dovecot': Permission denied
> make[4]: *** [install-exec-local] Error 1
> make[4]: Leaving directory
> `/usr/src/gimre/rpm2/BUILD/dovecot-1.0.beta1/src/plugins/quota'
> make[3]: *** [install-am] Error 2
>
> so everything did compile alright, but it has some problems with installing
the
> plugins. and i dunno why it tries to create those directories in the root
> directory. of course i'm compiling it as a non-root users, so it
doesn't have
> any write permissions. and it normally shouldn't have to do an install
in
> directories other then buildroot.
>
> so what's the catch? if i disable from the src/Makefile.in to not
compile the
> plugins, everything works fine, i got a nice rpm file. i'm on Fedora
Core 4.
>
> any help would be appreciated. thx.
>
>