dom at ijichi.org
Fri Oct 22 19:13:21 EDT 2004
Quoting Akshay Kumar <akshay at cs.columbia.edu>:
> Has anyone had any luck using the lastest version of BDB 4.2.52 w/ the
> cyrus 2.2.8?
> I compiled Berkeley DB 4.2.52. I also succesfully build sendmail, sasl and
> openldap against this version installed in /spare/local.
> But I am having problems getting cyrus-imap to use this version.
> I tried:
> env "CPPFLAGS=-I/spare/local/include -I/usr/kerberos/include"
> "LDFLAGS=-L/spare/local/lib" ./configure --prefix=/spare/local
> --with-cyrus-prefix=/spare/local/cyrus --with-bdb=/spare/local
> --with-bdb-incdir=/spare/local/include --with-snmp=/spare/local/lib
> make depend
> make all CFLAGS=-O
> BDB is installed in /spare/local
> Syslog throws the following error:
> Oct 20 11:28:19 test ctl_cyrusdb: incorrect version of Berkeley db:
> compiled against 4.2.52, linked against 4.0.14
hi, you dont say what OS you're using, which doesnt help much here...
looks like its picking up the correct db.h but not the correct libdb-4.so. if
its linux, make sure you haven't got the db4 and db4-devel rpms installed, as
even if you put /spare/local/lib in /etc/ld.so.conf it will still look in
/usr/lib first which is where the system db4 rpm throws the libs. you could try
changing 'LDFLAGS=-L/spare/local/lib" to 'LDFLAGS=-L/spare/local/lib
-R/spare/local/lib". if you use LD_LIBRARY_PATH, put /spare/local/lib in first,
or at least before /usr/lib. if you're using crle/ldconfig then i'm not sure
how you override the system lib paths, if you can at all, i usually forcibly
remove the system db4 rpms to eliminate any conflict,but this is not advised
unless you know the OS really well.
oh, also make sure your libs have built correctly, do 'ldd -r
/space/local/lib/libdb-4.2.so' and make sure you don't get any errors.
This message was penned by the hand of Dom
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus