torture continues! Another install error with cyrus imap

Randy Manchester rnm at
Tue Jun 7 12:17:09 EDT 2005

Hi Imran,

I just went through a complete recompile on a fresh OS (Solaris-9 in my 
case). I used NetBSD pkgsrc and can honestly say compiling and 
installing cyrus, sasl, berkeleydb and postfix was almost trivial. 
Pkgsrc is basically a complete package system that's built around a 
system of make files, everything compiles from source code, it works on 
about a dozen different platforms, including RH Linux. It automatically 
handles downloading, building and installation of dependencies. 
Everything gets installed into /usr/pkg hierarchy so no conflicts if you 
already have berkeleydb installed somewhere else. My first foray into 
using cyrus several years ago was by compiling everything by hand, it 
took weeks. With pkgsrc it took only two days to get a complete server 
up and running.

Here's the link to NetBSD pkgsrc:

You basically just download the latest pkgsrc.tar.gz (bottom right of 
the web page) and follow the included instructions to bootstrap it.

I also added the following to /etc/mk.conf (described in the pkgsrc 
docs) to configure to auth through ldap:


Basically, you can tweak the compile options for all the packages you're 
installing by modifying the mk.conf file before you compile.

Hope that helps you...


Imran Aziz wrote:

>Hello All,
> I have been trying for more then a week to get cyrus running, but
>somehow get one error or the other. The latest one was due to Berkley
>DB. so I uninstalled the RPM and installed the latest Berkly DB, but
>now when I try to compile cyrus imap I get this error
>checking whether time.h and sys/time.h may both be included... yes
>checking whether struct tm is in sys/time.h or time.h... time.h
>checking for struct tm.tm_zone... yes
>checking for vprintf... yes
>checking for _doprnt... no
>checking authorization method... unix
>checking db.h usability... yes
>checking db.h presence... yes
>checking for db.h... yes
>configure: error: Berkeley DB 3.x or later was not found.  You may need to
>    supply the --with-bdb-libdir or --with-bdb-incdir configure options.
>Can anyone please guide me, it was compiling perfectly fine in the
>morning, but now it just gives me this error on running this configure
>./configure \
>--with-sasl=/usr/local/lib \
>--with-perl \
>--with-auth=unix \
>--with-dbdir=/usr/local/bdb \
>--with-bdb-libdir=/usr/local/bdb/lib \
>--with-bdb-incdir=/usr/local/bdb/include \
>--with-openssl=/usr/local/ssl \
>--without-ucdsnmp \
>Can anyone please save my life, and sort this out. I promise I will
>never come into Unix territory and stay with easy installs of windows.
>Cyrus Home Page:
>Cyrus Wiki/FAQ:
>List Archives/Info:

Cyrus Home Page:
Cyrus Wiki/FAQ:
List Archives/Info:

More information about the Info-cyrus mailing list