[Dovecot] Install from source of dovecot 1.1.2
Hi guys,
I have what I'm sure is a stupid question. I'm trying to install Dovecot 1.1.2 from source and my command sequence is this: cd dovecot-1.1.2 ./configure --prefix=/usr --exec-prefix=/usr --with-mysql --with-storagesmaildir --sysconfdir=/etc/dovecot make make install cd ../dovecot-sieve-1.1.5 ./configure --with-dovecot=../dovecot-1.1.2 make make install
I don't get any errors during either install
I've done the odd config on dovecot to try and keep it as close to the install dirs used by the Dovecot package included with Ubuntu. Once it's done, dovecot -n still looks in /usr/local/etc and when I try and start dovecot it looks for the libexec dir in /usr/local instead of /usr. Is there something I'm missing on the configure?
I've very, very little experience (rather obviously) installing directly from source so any advice would be greatly appreciated.
Thanks Guy
-- Don't just do something...sit there!
On 8/9/2008, Guy (wyldfury@gmail.com) wrote:
I've done the odd config on dovecot to try and keep it as close to the install dirs used by the Dovecot package included with Ubuntu. Once it's done, dovecot -n still looks in /usr/local/etc and when I try and start dovecot it looks for the libexec dir in /usr/local instead of /usr. Is there something I'm missing on the configure?
First guess is you have another version installed through your package manager...
Did you check this?
--
Best regards,
Charles
Guy wrote:
I have what I'm sure is a stupid question. I'm trying to install Dovecot 1.1.2 from source and my command sequence is this: cd dovecot-1.1.2 ./configure --prefix=/usr --exec-prefix=/usr --with-mysql --with-storagesmaildir --sysconfdir=/etc/dovecot make make install cd ../dovecot-sieve-1.1.5 ./configure --with-dovecot=../dovecot-1.1.2 make make install
I've done the odd config on dovecot to try and keep it as close to the install dirs used by the Dovecot package included with Ubuntu. Once it's done, dovecot -n still looks in /usr/local/etc and when I try and start dovecot it looks for the libexec dir in /usr/local instead of /usr. Is there something I'm missing on the configure?
I also install from source on my Debian system and I keep the configure options in a little script which currently looks like this:
#!/bin/bash
#configure flags for compilation compatible with gentoo emerge
#john allen
#9.5.2005
#modified 19.11.2006
#modified 26.1.2008 for kirtley
./configure
--with-pam
--without-deliver
--with-storages=maildir
--prefix=/usr
--mandir=/usr/share/man
--infodir=/usr/share/info
--datadir=/usr/share
--sysconfdir=/etc/dovecot
--localstatedir=/var
I can't see any problem with your configure options, so as Charles says maybe there's another dovecot somewhere on your system.
Have you tried the command "which dovecot"?
John
-- John Allen Bofferdange, Luxembourg allen@vo.lu http://allenlux.dyndns.org
On Aug 10, 2008, at 12:50 PM, John and Catherine Allen wrote:
Guy wrote:
I have what I'm sure is a stupid question. I'm trying to install Dovecot 1.1.2 from source and my command sequence is this: cd dovecot-1.1.2 ./configure --prefix=/usr --exec-prefix=/usr --with-mysql --with-storagesmaildir --sysconfdir=/etc/dovecot make make install cd ../dovecot-sieve-1.1.5 ./configure --with-dovecot=../dovecot-1.1.2 make make install
It is recommended to use...
'sudo make install'
...in both places.
B. Bodger
Thanks for everyone's input. I was already sudoed to root before running any of the operations so it wasn't that. May have been that --with-storages error I'd made. I tried your config John, with mods for my system and besides having to add the dovecot user/group manually it seems to be running just fine now.
Thanks!
2008/8/10 John and Catherine Allen <allen@vo.lu>:
I also install from source on my Debian system and I keep the configure options in a little script which currently looks like this:
#!/bin/bash #configure flags for compilation compatible with gentoo emerge #john allen #9.5.2005 #modified 19.11.2006 #modified 26.1.2008 for kirtley ./configure
--with-pam
--without-deliver
--with-storages=maildir
--prefix=/usr
--mandir=/usr/share/man
--infodir=/usr/share/info
--datadir=/usr/share
--sysconfdir=/etc/dovecot
--localstatedir=/varI can't see any problem with your configure options, so as Charles says maybe there's another dovecot somewhere on your system.
Have you tried the command "which dovecot"?
John
-- John Allen Bofferdange, Luxembourg allen@vo.lu http://allenlux.dyndns.org
-- Don't just do something...sit there!
Hello Guy,
Guy, 10.08.2008 (d.m.y):
I have what I'm sure is a stupid question. I'm trying to install Dovecot 1.1.2 from source and my command sequence is this: cd dovecot-1.1.2 ./configure --prefix=/usr --exec-prefix=/usr --with-mysql --with-storagesmaildir --sysconfdir=/etc/dovecot make make install cd ../dovecot-sieve-1.1.5 ./configure --with-dovecot=../dovecot-1.1.2 make make install
I don't get any errors during either install
OK, but you do "make install" as root, don't you?
I've done the odd config on dovecot to try and keep it as close to the install dirs used by the Dovecot package included with Ubuntu. Once it's done, dovecot -n still looks in /usr/local/etc and when I try and start dovecot it looks for the libexec dir in /usr/local instead of /usr. Is there something I'm missing on the configure?
Please check what you $PATH variable looks like and if there exists another dovecot in /usr/local/sbin (which maybe is mentioned in your $PATH before /usr/sbin). Or just call /usr/sbin dovecot -n.
Gruss/Regards, Christian Schmidt
-- You are a bundle of energy, always on the go.
participants (5)
-
Bruce Bodger
-
Charles Marcus
-
Christian Schmidt
-
Guy
-
John and Catherine Allen