Discussion:
struggling with the setup
Imran Aziz
2005-06-07 00:46:45 UTC
Permalink
Hello All,
I have been trying to get the cyrus imap, postfix setup running
according to the documentation listed here

http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/install.html

but have run into no of issues.

The latest one is that after installing everything cyrus imap was
running but logs showed that there was an issue with the Berkley DB,
since it was compiled with ver 4.3.8 (which I installed) and linked
with ver 4.1.25 which was already on the system. So I uninstalled the
new version and have installed ver 4.1.25 same as the rpm install, the
rpm install also have development package in it.

Now when I run the 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 \

I get this error

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 why am I getting this error when Berkeley
DB is installed on the system and it was compiling fine before?

Any help would be a life saver for me.

Thanks a lot in advance.
Imran.
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Lem Tomas
2005-06-07 01:44:45 UTC
Permalink
i think this has been covered in the past, but as a hint did you install
your berkeley devel libs?
Post by Imran Aziz
Hello All,
I have been trying to get the cyrus imap, postfix setup running
according to the documentation listed here
http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/install.html
but have run into no of issues.
The latest one is that after installing everything cyrus imap was
running but logs showed that there was an issue with the Berkley DB,
since it was compiled with ver 4.3.8 (which I installed) and linked
with ver 4.1.25 which was already on the system. So I uninstalled the
new version and have installed ver 4.1.25 same as the rpm install, the
rpm install also have development package in it.
Now when I run the 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 \
I get this error
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 why am I getting this error when Berkeley
DB is installed on the system and it was compiling fine before?
Any help would be a life saver for me.
Thanks a lot in advance.
Imran.
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
_______________________________________________
Web-cyradm mailing list
http://www.web-cyradm.org/mailman/listinfo/web-cyradm
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Ron Wheeler
2005-06-07 02:58:41 UTC
Permalink
I have been through this one myself.
Every version of Berkeley is incompatible with every other version and
every package that uses Berkeley has to have all of its friends using
the same version of Berkeley.

So....
The best thing is to install your various versions of Berkeley in their
own directories

/usr/local/BerkeleyBD4.3.25
/usr/local/BerkeleyBD4.1.25 etc.

and never use

"/usr/local/bdb" as a directory in any build.

Point the build to the actual version of Berkeley that you intend to use (after checking all of the dependent packages to figure out a common denominator).

Postfix seems to have a problem with the latest version of Berkeley so you have to have at least on old version installed.

Make sure that everything mentioned in the Howto is compiled with the same version of Berkeley.

Fix your configure scripts to point to the right place and then rebuild all of the packages. Do not touch /usr/local/bdb since you may have other software running that uses it.

That will fix your "incompatible version" problem with Berkeley and if you do this to all new packages that you install, you should achieve inner peace and oneness with the spawn of Sleepycat if not with the Universe.


Ron
Post by Imran Aziz
Hello All,
I have been trying to get the cyrus imap, postfix setup running
according to the documentation listed here
http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/install.html
but have run into no of issues.
The latest one is that after installing everything cyrus imap was
running but logs showed that there was an issue with the Berkley DB,
since it was compiled with ver 4.3.8 (which I installed) and linked
with ver 4.1.25 which was already on the system. So I uninstalled the
new version and have installed ver 4.1.25 same as the rpm install, the
rpm install also have development package in it.
Now when I run the 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 \
I get this error
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 why am I getting this error when Berkeley
DB is installed on the system and it was compiling fine before?
Any help would be a life saver for me.
Thanks a lot in advance.
Imran.
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
_______________________________________________
Web-cyradm mailing list
http://www.web-cyradm.org/mailman/listinfo/web-cyradm
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Ron Wheeler
2005-06-07 03:02:03 UTC
Permalink
BTW. After you have fixed up the installations of Berkeley keep checking
your configure output to be sure that it is OK.
On at least one occasion, I ran into a dependent module that did not
have the code that the rest of the packaghe had to recognize the latest
version of Berkeley so it failed the build even though the rset of the
package was fine.

Ron
Post by Imran Aziz
Hello All,
I have been trying to get the cyrus imap, postfix setup running
according to the documentation listed here
http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/install.html
but have run into no of issues.
The latest one is that after installing everything cyrus imap was
running but logs showed that there was an issue with the Berkley DB,
since it was compiled with ver 4.3.8 (which I installed) and linked
with ver 4.1.25 which was already on the system. So I uninstalled the
new version and have installed ver 4.1.25 same as the rpm install, the
rpm install also have development package in it.
Now when I run the 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 \
I get this error
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 why am I getting this error when Berkeley
DB is installed on the system and it was compiling fine before?
Any help would be a life saver for me.
Thanks a lot in advance.
Imran.
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
_______________________________________________
Web-cyradm mailing list
http://www.web-cyradm.org/mailman/listinfo/web-cyradm
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Muenz, Michael
2005-06-07 08:13:47 UTC
Permalink
Post by Ron Wheeler
So....
The best thing is to install your various versions of
Berkeley in their
own directories
/usr/local/BerkeleyBD4.3.25
/usr/local/BerkeleyBD4.1.25 etc.
and never use
"/usr/local/bdb" as a directory in any build.
Installing BDB from source is pain! I always use the
packages from the distributions, everthing is incompatible
with every version.
I'm running fine with debian woody libs (db 3) and
everything else compiled from source.

Also did the same for RH9, all source and only db from
distributor, everything fine.
Please try Ron's way and if all fails use packages.


Michael
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Imran Aziz
2005-06-07 12:03:44 UTC
Permalink
Thank you so very much for helping me out on this, I have done as told
but ran into new problems :(

Well I have now tried using the Berkeley DB installed by default
4.1.25 and after compiling everything I now get this error in logs

archiving database file: /var/imap/annotations.db
Jun 7 12:23:07 lb01-s06 ctl_cyrusdb[22289]: DBERROR db4:
txn_checkpoint interface requires an environment configured for the
transaction subsystem
Jun 7 12:23:07 lb01-s06 ctl_cyrusdb[22289]: DBERROR: couldn't
checkpoint: Invalid argument
Jun 7 12:23:07 lb01-s06 ctl_cyrusdb[22289]: DBERROR: sync
/var/imap/db: cyrusdb error
Jun 7 12:23:07 lb01-s06 ctl_cyrusdb[22289]: DBERROR db4:
DB_ENV->log_archive interface requires an environment configured for
the logging subsystem
Jun 7 12:23:07 lb01-s06 ctl_cyrusdb[22289]: DBERROR: error listing
log files: Invalid argument
Jun 7 12:23:07 lb01-s06 ctl_cyrusdb[22289]: DBERROR: archive
/var/imap/db: cyrusdb error
Jun 7 12:23:07 lb01-s06 ctl_cyrusdb[22289]: archiving database file:
/var/imap/mailboxes.db
Jun 7 12:23:07 lb01-s06 ctl_cyrusdb[22289]: DBERROR db4:
txn_checkpoint interface requires an environment configured for the
transaction subsystem
Jun 7 12:23:07 lb01-s06 ctl_cyrusdb[22289]: DBERROR: couldn't
checkpoint: Invalid argument
Jun 7 12:23:07 lb01-s06 ctl_cyrusdb[22289]: DBERROR: sync
/var/imap/db: cyrusdb error
Jun 7 12:23:07 lb01-s06 ctl_cyrusdb[22289]: DBERROR db4:
DB_ENV->log_archive interface requires an environment configured for
the logging subsystem
Jun 7 12:23:07 lb01-s06 ctl_cyrusdb[22289]: DBERROR: error listing
log files: Invalid argument
Jun 7 12:23:07 lb01-s06 ctl_cyrusdb[22289]: DBERROR: archive
/var/imap/db: cyrusdb error
Jun 7 12:23:07 lb01-s06 ctl_cyrusdb[22289]: done checkpointing cyrus databases
Jun 7 12:23:07 lb01-s06 master[21921]: process 22289 exited, status 1
Jun 7 12:28:50 lb01-s06 master[22348]: setrlimit: Unable to set file
descriptors limit to -1: Operation not permitted
Jun 7 12:28:50 lb01-s06 master[22348]: retrying with 1024 (current max)
Jun 7 12:28:50 lb01-s06 master[22348]: cannot get exclusive lock on
pidfile (is another master still running?)
Jun 7 12:28:50 lb01-s06 master[22348]: exiting


ON investigating I have come to know that this version of Berkeley DB
has got problems with it. as listed here

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91933#c0

So the solution is to use an alternate version :(

So I am back to square 1.

Now should I upgrade my existing RPM and risk crashing dependencies
like Apache or install a separate verion of Berkeley DB on an
alternate location and try using that?

Help please.

Imran
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Muenz, Michael
2005-06-07 12:10:32 UTC
Permalink
Post by Imran Aziz
Well I have now tried using the Berkeley DB installed by default
4.1.25 and after compiling everything I now get this error in logs
archiving database file: /var/imap/annotations.db
txn_checkpoint interface requires an environment configured for the
transaction subsystem
Jun 7 12:23:07 lb01-s06 ctl_cyrusdb[22289]: DBERROR: couldn't
checkpoint: Invalid argument
Jun 7 12:23:07 lb01-s06 ctl_cyrusdb[22289]: DBERROR: sync
/var/imap/db: cyrusdb error
DB_ENV->log_archive interface requires an environment configured for
the logging subsystem
[...]
Post by Imran Aziz
ON investigating I have come to know that this version of Berkeley DB
has got problems with it. as listed here
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=91933#c0
So the solution is to use an alternate version :(
So I am back to square 1.
Now should I upgrade my existing RPM and risk crashing dependencies
like Apache or install a separate verion of Berkeley DB on an
alternate location and try using that?
nope, do the following:
stop cyrus
remove /var/imap /var/spool/imap /usr/sieve
then from the howto:

cd /var
mkdir imap
chown cyrus:mail imap
chmod 750 imap
cd /var/spool
mkdir imap
chown cyrus:mail imap
chmod 750 imap
cd /usr
mkdir sieve
chown cyrus:mail sieve
chmod 750 sieve

"su" to cyrus and excute the mkimap script from imapd source.

then start all again ..
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Imran Aziz
2005-06-07 13:42:29 UTC
Permalink
Thanks you so very much Michael, you are a life saver

With start all again do you mean compile it all again, after creating
the directories? or just start the cyrus imap server ?
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Imran Aziz
2005-06-07 14:12:57 UTC
Permalink
Michael I did as you suggest, but no joy as yet :(

I recreated the folders , and changed permissions, then restarted
cyrus. It starts okay, and database files are created in /var/imap but
I get the same errors in the logs. I have not recompiled the whole
setup after creating the files, because the folder configuration can
be done after the installation in the installation docs that I am
using.

Jun 7 15:18:00 lb01-s06 tls_prune[22745]: DBERROR: opening
/var/imap/tls_sessions.db: cyrusdb error
Jun 7 15:18:00 lb01-s06 ctl_cyrusdb[22747]: DBERROR db4:
DB_ENV->log_archive interface requires an environment configured for
the logging subsystem
Jun 7 15:18:00 lb01-s06 master[22740]: process 22745 exited, status 1
Jun 7 15:18:00 lb01-s06 cyr_expire[22746]: skiplist: recovered
/var/imap/annotations.db (0 records, 144 bytes) in 0 seconds
Jun 7 15:18:00 lb01-s06 ctl_cyrusdb[22747]: DBERROR: error listing
log files: Invalid argument
Jun 7 15:18:00 lb01-s06 ctl_cyrusdb[22747]: DBERROR: archive
/var/imap/db: cyrusdb error
Jun 7 15:18:00 lb01-s06 cyr_expire[22746]: skiplist: recovered
/var/imap/mailboxes.db (0 records, 144 bytes) in 0 seconds
Jun 7 15:18:00 lb01-s06 ctl_cyrusdb[22747]: archiving database file:
/var/imap/mailboxes.db
Jun 7 15:18:00 lb01-s06 cyr_expire[22746]: DBERROR db4: environment
not yet opened
Jun 7 15:18:00 lb01-s06 ctl_cyrusdb[22747]: DBERROR db4:
txn_checkpoint interface requires an environment configured for the
transaction subsystem
Jun 7 15:18:00 lb01-s06 cyr_expire[22746]: DBERROR: opening
/var/imap/deliver.db: Invalid argument
Jun 7 15:18:00 lb01-s06 ctl_cyrusdb[22747]: DBERROR: couldn't
checkpoint: Invalid argument
Jun 7 15:18:00 lb01-s06 cyr_expire[22746]: DBERROR: opening
/var/imap/deliver.db: cyrusdb error
Jun 7 15:18:00 lb01-s06 ctl_cyrusdb[22747]: DBERROR: sync
/var/imap/db: cyrusdb error
Jun 7 15:18:00 lb01-s06 master[22740]: process 22746 exited, status 1
Jun 7 15:18:00 lb01-s06 ctl_cyrusdb[22747]: DBERROR db4:
DB_ENV->log_archive interface requires an environment configured for
the logging subsystem
Jun 7 15:18:00 lb01-s06 ctl_cyrusdb[22747]: DBERROR: error listing
log files: Invalid argument
Jun 7 15:18:00 lb01-s06 ctl_cyrusdb[22747]: DBERROR: archive
/var/imap/db: cyrusdb error
Jun 7 15:18:00 lb01-s06 ctl_cyrusdb[22747]: done checkpointing cyrus databases
Jun 7 15:18:00 lb01-s06 master[22740]: process 22747 exited, status 1
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Muenz, Michael
2005-06-07 13:50:07 UTC
Permalink
Post by Imran Aziz
Thanks you so very much Michael, you are a life saver
:)
Post by Imran Aziz
With start all again do you mean compile it all again, after creating
the directories? or just start the cyrus imap server ?
if you have compiled imapd against the vendor libs (and cyrus-sasl)
no prob, just start the imapd. I would recommend also compile
postfix against the vendor libs.

I did it like this (works for debian woody), worked for abigail hocking
using RH9, too:

cyrus-sasl:
./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin \
--sysconfdir=/etc --libdir=/usr/lib --includedir=/usr/include \
--localstatedir=/var --with-pam=/lib --with-saslauthd=/var/run/saslauthd \
--with-openssl=/usr/local/ssl --with-mysql=/usr/local/mysql --enable-sql \
--enable-login --disable-krb4 --with-plugindir=/usr/lib/sasl2

cyrus-imapd:
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--with-sasl=/usr/lib --with-perl=/usr/bin/perl \
--with-auth=unix --with-openssl=/usr/local/ssl \
--enable-annotatemore --enable-listext

postfix without ssl:
make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include/mysql -DUSE_SASL_AUTH \
-I/usr/include/sasl' 'AUXLIBS=-L/usr/local/mysql/lib/mysql \
-lmysqlclient -lz -lm -L/usr/lib -lsasl2'

postfix with ssl:
make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/local/mysql/include/mysql -DUSE_SASL_AUTH \
-I/usr/include/sasl -DUSE_TLS -I/usr/local/ssl/include' 'AUXLIBS=-L/usr/local/mysql/lib/mysql \
-lmysqlclient -lz -lm -L/usr/lib -lsasl2 -L/usr/local/ssl/lib -lssl -lcrypto'


Michael
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Muenz, Michael
2005-06-07 14:19:58 UTC
Permalink
Post by Imran Aziz
I recreated the folders , and changed permissions, then restarted
cyrus. It starts okay, and database files are created in /var/imap but
I get the same errors in the logs. I have not recompiled the whole
setup after creating the files, because the folder configuration can
be done after the installation in the installation docs that I am
using.
please post the output of "ldd /usr/cyrus/bin/imapd" and how you
compiled cyrus-imapd.


Michael
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Imran Aziz
2005-06-07 14:40:30 UTC
Permalink
Thank you so very much for getting back to me on this, Michael here is
the output of

ldd /usr/cyrus/bin/imapd

[***@lb01-s06 berkeleydb]# ldd /usr/cyrus/bin/imapd
libsasl2.so.2 => /usr/local/lib/libsasl2.so.2 (0xb75cd000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb75bb000)
libdb-4.1.so => /usr/local/bdb/lib/libdb-4.1.so (0xb7524000)
libssl.so.0.9.7 => /usr/local/ssl/lib/libssl.so.0.9.7 (0xb74f7000)
libcrypto.so.0.9.7 => /usr/local/ssl/lib/libcrypto.so.0.9.7 (0xb7404000)
libwrap.so.0 => /usr/lib/libwrap.so.0 (0xb73fb000)
libnsl.so.1 => /lib/libnsl.so.1 (0xb73e5000)
libc.so.6 => /lib/tls/libc.so.6 (0xb72ad000)
libdl.so.2 => /lib/libdl.so.2 (0xb72aa000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb75eb000)


and the configure params

CYRUS SASL configuration

./configure \
--enable-anon \
--enable-plain \
--enable-login \
--disable-krb4 \
--disable-otp \
--disable-cram \
--disable-digest \
--with-saslauthd=/var/run/saslauthd \
--with-pam=/lib/security \
--with-dblib=berkeley \
--with-openssl=/usr/local/ssl \
--with-plugindir=/usr/local/lib/sasl2

Cyrus IMAPD

./configure \
--with-sasl=/usr/local/lib \
--with-perl \
--with-auth=unix \
--with-openssl=/usr/local/ssl \
--without-ucdsnmp \


if I use

--with-dbdir=/usr/local/bdb \
--with-bdb-libdir=/usr/local/bdb/lib \
--with-bdb-incdir=/usr/local/bdb/include \

param the IMAPD does not compile and I get Berkley DB 3.x not installed error

here is the postfix build configuration.


make makefiles 'CCARGS=-DHAS_MYSQL \
-I/usr/include/mysql -DUSE_SASL_AUTH \
-I/usr/local/include/sasl -I/usr/include' \
'AUXLIBS=-L/usr/lib/mysql \
-lmysqlclient -lz -lm -L/usr/local/lib -lsasl2 -L/usr/lib -lpthread'

from the ldd /usr/cyrus/bin/imapd it seems that few libs are being
used from the RPM installed and few from the /usr/local/bdb/lib
directory. Although both are version 4.1.25 now.

I was thinking of using another version of berkeley DB, but with this
output it seems that my configuration is wrong and can get this done
by sorting this out, any suggestions please.

Imran
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Ron Wheeler
2005-06-07 17:06:00 UTC
Permalink
I suggested this earlier .

Install the version of Berkeley that you want to use in a known place
and tell everyone where it is.

Do not use /.../bdb/... for anything since you never know what is there.
Make sure that you override the location of the Berkeley libraries and
includes in every build.

It looks like some other package has installed a version 3 of Berkeley
and you are picking it up in one of your builds.
Make sure that you relink everything - Postfix, Sasl, imapd and recreate
the database by blowing away the directories.

Check your configure output logs to be sure that the right version has
been picked up.

It is not difficult but has to be done very carefully and you can not
just blow away the bdb in case some other package is using it.

Ron
Post by Imran Aziz
Thank you so very much for getting back to me on this, Michael here is
the output of
ldd /usr/cyrus/bin/imapd
libsasl2.so.2 => /usr/local/lib/libsasl2.so.2 (0xb75cd000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb75bb000)
libdb-4.1.so => /usr/local/bdb/lib/libdb-4.1.so (0xb7524000)
libssl.so.0.9.7 => /usr/local/ssl/lib/libssl.so.0.9.7 (0xb74f7000)
libcrypto.so.0.9.7 => /usr/local/ssl/lib/libcrypto.so.0.9.7 (0xb7404000)
libwrap.so.0 => /usr/lib/libwrap.so.0 (0xb73fb000)
libnsl.so.1 => /lib/libnsl.so.1 (0xb73e5000)
libc.so.6 => /lib/tls/libc.so.6 (0xb72ad000)
libdl.so.2 => /lib/libdl.so.2 (0xb72aa000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb75eb000)
and the configure params
CYRUS SASL configuration
./configure \
--enable-anon \
--enable-plain \
--enable-login \
--disable-krb4 \
--disable-otp \
--disable-cram \
--disable-digest \
--with-saslauthd=/var/run/saslauthd \
--with-pam=/lib/security \
--with-dblib=berkeley \
--with-openssl=/usr/local/ssl \
--with-plugindir=/usr/local/lib/sasl2
Cyrus IMAPD
./configure \
--with-sasl=/usr/local/lib \
--with-perl \
--with-auth=unix \
--with-openssl=/usr/local/ssl \
--without-ucdsnmp \
if I use
--with-dbdir=/usr/local/bdb \
--with-bdb-libdir=/usr/local/bdb/lib \
--with-bdb-incdir=/usr/local/bdb/include \
param the IMAPD does not compile and I get Berkley DB 3.x not installed error
here is the postfix build configuration.
make makefiles 'CCARGS=-DHAS_MYSQL \
-I/usr/include/mysql -DUSE_SASL_AUTH \
-I/usr/local/include/sasl -I/usr/include' \
'AUXLIBS=-L/usr/lib/mysql \
-lmysqlclient -lz -lm -L/usr/local/lib -lsasl2 -L/usr/lib -lpthread'
from the ldd /usr/cyrus/bin/imapd it seems that few libs are being
used from the RPM installed and few from the /usr/local/bdb/lib
directory. Although both are version 4.1.25 now.
I was thinking of using another version of berkeley DB, but with this
output it seems that my configuration is wrong and can get this done
by sorting this out, any suggestions please.
Imran
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
_______________________________________________
Web-cyradm mailing list
http://www.web-cyradm.org/mailman/listinfo/web-cyradm
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Muenz, Michael
2005-06-07 14:47:57 UTC
Permalink
Post by Muenz, Michael
ldd /usr/cyrus/bin/imapd
libsasl2.so.2 => /usr/local/lib/libsasl2.so.2 (0xb75cd000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb75bb000)
libdb-4.1.so => /usr/local/bdb/lib/libdb-4.1.so (0xb7524000)
libssl.so.0.9.7 => /usr/local/ssl/lib/libssl.so.0.9.7
(0xb74f7000)
libcrypto.so.0.9.7 =>
/usr/local/ssl/lib/libcrypto.so.0.9.7 (0xb7404000)
libwrap.so.0 => /usr/lib/libwrap.so.0 (0xb73fb000)
libnsl.so.1 => /lib/libnsl.so.1 (0xb73e5000)
libc.so.6 => /lib/tls/libc.so.6 (0xb72ad000)
libdl.so.2 => /lib/libdl.so.2 (0xb72aa000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb75eb000)
[...]
Post by Muenz, Michael
Cyrus IMAPD
./configure \
--with-sasl=/usr/local/lib \
--with-perl \
--with-auth=unix \
--with-openssl=/usr/local/ssl \
--without-ucdsnmp \
Hmm ... seems to be ok. Remove the /usr/local/bdb/ directory
and the source. Edit /etc/ld.so.conf and remove the line
/usr/local/bdb/lib and run "ldconfig" again. Recompile
cyrus-sasl and cyrus-imapd again, remove the dir's and create
them again.
Perhaps this will work ...


Michael
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Imran Aziz
2005-06-07 15:26:29 UTC
Permalink
Ok some change in errors this time, but still master process exits
imapd.log output is now

Jun 7 16:36:03 lb01-s06 master[9707]: about to exec /usr/cyrus/bin/ctl_cyrusdb
Jun 7 16:36:03 lb01-s06 ctl_cyrusdb[9707]: recovering cyrus databases
Jun 7 16:36:03 lb01-s06 ctl_cyrusdb[9707]: done recovering cyrus databases
Jun 7 16:36:03 lb01-s06 master[9705]: ready for work
Jun 7 16:36:03 lb01-s06 master[9714]: about to exec /usr/cyrus/bin/tls_prune
Jun 7 16:36:03 lb01-s06 master[9715]: about to exec /usr/cyrus/bin/ctl_deliver
Jun 7 16:36:03 lb01-s06 master[9716]: about to exec /usr/cyrus/bin/ctl_cyrusdb
Jun 7 16:36:03 lb01-s06 ctl_cyrusdb[9716]: checkpointing cyrus databases
Jun 7 16:36:03 lb01-s06 ctl_cyrusdb[9716]: archiving database file:
/var/imap/annotations.db
Jun 7 16:36:03 lb01-s06 ctl_cyrusdb[9716]: archiving log file:
/var/imap/db/log.0000000001
Jun 7 16:36:03 lb01-s06 ctl_cyrusdb[9716]: archiving database file:
/var/imap/mailboxes.db
Jun 7 16:36:03 lb01-s06 ctl_cyrusdb[9716]: archiving log file:
/var/imap/db/log.0000000001
Jun 7 16:36:03 lb01-s06 ctl_cyrusdb[9716]: done checkpointing cyrus databases
Jun 7 16:36:03 lb01-s06 tls_prune[9714]: tls_prune: purged 0 out of 0 entries
Jun 7 16:36:03 lb01-s06 master[9705]: process 9716 exited, status 0
Jun 7 16:36:03 lb01-s06 cyr_expire[9715]: duplicate_prune: pruning back 3 days
Jun 7 16:36:03 lb01-s06 cyr_expire[9715]: duplicate_prune: purged 0
out of 0 entries
Jun 7 16:36:03 lb01-s06 cyr_expire[9715]: expunged 0 out of 0
messages from 0 mailboxes
Jun 7 16:36:03 lb01-s06 master[9705]: process 9714 exited, status 0
Jun 7 16:36:03 lb01-s06 master[9705]: process 9715 exited, status 0

output for

[***@lb01-s06 imap]# ldd /usr/cyrus/bin/imapd
libsasl2.so.2 => /usr/local/lib/libsasl2.so.2 (0xb75cd000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb75bb000)
libdb-4.1.so => /lib/libdb-4.1.so (0xb74f9000)
libssl.so.0.9.7 => /usr/local/ssl/lib/libssl.so.0.9.7 (0xb74cc000)
libcrypto.so.0.9.7 => /usr/local/ssl/lib/libcrypto.so.0.9.7 (0xb73d9000)
libwrap.so.0 => /usr/lib/libwrap.so.0 (0xb73d0000)
libnsl.so.1 => /lib/libnsl.so.1 (0xb73ba000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7282000)
libdl.so.2 => /lib/libdl.so.2 (0xb727f000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb726f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb75eb000)


but surly the errors that I was getting earlier seem to have gone.
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Ron Wheeler
2005-06-07 17:07:56 UTC
Permalink
Looks a lot better.
can you create a mailbox? Get mail?

Ron
Post by Imran Aziz
Ok some change in errors this time, but still master process exits
imapd.log output is now
Jun 7 16:36:03 lb01-s06 master[9707]: about to exec /usr/cyrus/bin/ctl_cyrusdb
Jun 7 16:36:03 lb01-s06 ctl_cyrusdb[9707]: recovering cyrus databases
Jun 7 16:36:03 lb01-s06 ctl_cyrusdb[9707]: done recovering cyrus databases
Jun 7 16:36:03 lb01-s06 master[9705]: ready for work
Jun 7 16:36:03 lb01-s06 master[9714]: about to exec /usr/cyrus/bin/tls_prune
Jun 7 16:36:03 lb01-s06 master[9715]: about to exec /usr/cyrus/bin/ctl_deliver
Jun 7 16:36:03 lb01-s06 master[9716]: about to exec /usr/cyrus/bin/ctl_cyrusdb
Jun 7 16:36:03 lb01-s06 ctl_cyrusdb[9716]: checkpointing cyrus databases
/var/imap/annotations.db
/var/imap/db/log.0000000001
/var/imap/mailboxes.db
/var/imap/db/log.0000000001
Jun 7 16:36:03 lb01-s06 ctl_cyrusdb[9716]: done checkpointing cyrus databases
Jun 7 16:36:03 lb01-s06 tls_prune[9714]: tls_prune: purged 0 out of 0 entries
Jun 7 16:36:03 lb01-s06 master[9705]: process 9716 exited, status 0
Jun 7 16:36:03 lb01-s06 cyr_expire[9715]: duplicate_prune: pruning back 3 days
Jun 7 16:36:03 lb01-s06 cyr_expire[9715]: duplicate_prune: purged 0
out of 0 entries
Jun 7 16:36:03 lb01-s06 cyr_expire[9715]: expunged 0 out of 0
messages from 0 mailboxes
Jun 7 16:36:03 lb01-s06 master[9705]: process 9714 exited, status 0
Jun 7 16:36:03 lb01-s06 master[9705]: process 9715 exited, status 0
output for
libsasl2.so.2 => /usr/local/lib/libsasl2.so.2 (0xb75cd000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb75bb000)
libdb-4.1.so => /lib/libdb-4.1.so (0xb74f9000)
libssl.so.0.9.7 => /usr/local/ssl/lib/libssl.so.0.9.7 (0xb74cc000)
libcrypto.so.0.9.7 => /usr/local/ssl/lib/libcrypto.so.0.9.7 (0xb73d9000)
libwrap.so.0 => /usr/lib/libwrap.so.0 (0xb73d0000)
libnsl.so.1 => /lib/libnsl.so.1 (0xb73ba000)
libc.so.6 => /lib/tls/libc.so.6 (0xb7282000)
libdl.so.2 => /lib/libdl.so.2 (0xb727f000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb726f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb75eb000)
but surly the errors that I was getting earlier seem to have gone.
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
_______________________________________________
Web-cyradm mailing list
http://www.web-cyradm.org/mailman/listinfo/web-cyradm
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Muenz, Michael
2005-06-07 15:37:42 UTC
Permalink
Post by Imran Aziz
Jun 7 16:36:03 lb01-s06 master[9707]: about to exec
/usr/cyrus/bin/ctl_cyrusdb
Jun 7 16:36:03 lb01-s06 ctl_cyrusdb[9707]: recovering cyrus databases
Jun 7 16:36:03 lb01-s06 ctl_cyrusdb[9707]: done recovering
cyrus databases
Jun 7 16:36:03 lb01-s06 master[9705]: ready for work
Jun 7 16:36:03 lb01-s06 master[9714]: about to exec
/usr/cyrus/bin/tls_prune
Jun 7 16:36:03 lb01-s06 master[9715]: about to exec
/usr/cyrus/bin/ctl_deliver
Jun 7 16:36:03 lb01-s06 master[9716]: about to exec
/usr/cyrus/bin/ctl_cyrusdb
Jun 7 16:36:03 lb01-s06 ctl_cyrusdb[9716]: checkpointing
cyrus databases
/var/imap/annotations.db
/var/imap/db/log.0000000001
/var/imap/mailboxes.db
/var/imap/db/log.0000000001
Jun 7 16:36:03 lb01-s06 ctl_cyrusdb[9716]: done
checkpointing cyrus databases
Jun 7 16:36:03 lb01-s06 tls_prune[9714]: tls_prune: purged 0
out of 0 entries
Jun 7 16:36:03 lb01-s06 master[9705]: process 9716 exited, status 0
pruning back 3 days
Jun 7 16:36:03 lb01-s06 cyr_expire[9715]: duplicate_prune: purged 0
out of 0 entries
Jun 7 16:36:03 lb01-s06 cyr_expire[9715]: expunged 0 out of 0
messages from 0 mailboxes
Jun 7 16:36:03 lb01-s06 master[9705]: process 9714 exited, status 0
Jun 7 16:36:03 lb01-s06 master[9705]: process 9715 exited, status 0
I can't see any error?! The process is running, check that with
"netstat -tupan" if port 143 and 110 is open.
I've restarted my imapd and in my logs:

Jun 7 17:38:35 socrates01 master[4010]: process 4029 exited, status 0
Jun 7 17:38:35 socrates01 master[4010]: process 4027 exited, status 0
Jun 7 17:38:35 socrates01 master[4010]: process 4026 exited, status 0

I'm sure you DB error is fixed. Telnet to your POP3 port and you will
see the result ...


Michael (now off-duty) :)
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Imran Aziz
2005-06-07 15:53:48 UTC
Permalink
Yes it seems that the log results are much better


but I cannot seem to login to the server in any way

if I try to command line utility I get this error

cyradm --user cyrus --server localhost --auth plain
Can't load '/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Cyrus/IMAP/IMAP.so'
for module Cyrus::IMAP:
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Cyrus/IMAP/IMAP.so:
undefined symbol: db_version at
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
line 44
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
line 44.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
line 44.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Shell.pm
line 60.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Shell.pm
line 60.
Compilation failed in require.
BEGIN failed--compilation aborted.


and if I use the web-cyradm utility that I have installed I am unable
to login to the account using the username, password I supplied for
the cyrus user on the system.

I feel real close if getting this done with your help, but still a
little more to go I guess.

Thank you so very much, I am so grateful to you for your time and help.

Imran
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Imran Aziz
2005-06-07 15:57:24 UTC
Permalink
ok now I tried to use telnet protocol to login to the server and got this error

-ERR [SYS/PERM] Unable to locate maildrop: Mailbox does not exist


seems that my maildrop configuration is wrong. trying to find where
the configuration is and if the related mailbox is present or not.
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Ron Wheeler
2005-06-07 17:09:08 UTC
Permalink
Are those files actually where cyradm is expecting them?
Post by Imran Aziz
Yes it seems that the log results are much better
but I cannot seem to login to the server in any way
if I try to command line utility I get this error
cyradm --user cyrus --server localhost --auth plain
Can't load '/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Cyrus/IMAP/IMAP.so'
undefined symbol: db_version at
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
line 44
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
line 44.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
line 44.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Shell.pm
line 60.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Shell.pm
line 60.
Compilation failed in require.
BEGIN failed--compilation aborted.
and if I use the web-cyradm utility that I have installed I am unable
to login to the account using the username, password I supplied for
the cyrus user on the system.
I feel real close if getting this done with your help, but still a
little more to go I guess.
Thank you so very much, I am so grateful to you for your time and help.
Imran
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
_______________________________________________
Web-cyradm mailing list
http://www.web-cyradm.org/mailman/listinfo/web-cyradm
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Imran Aziz
2005-06-07 17:18:44 UTC
Permalink
No still cannot login getting a maildrop error when trying to connect
using telnet to pop. and get error on using cryadm and web-cryadm
gives me no error on trying to login, but does not allow me to login
either.

So stuck again.

Any help would be great.
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Imran Aziz
2005-06-08 00:45:49 UTC
Permalink
This is my /var/log/imapd.log

Jun 8 00:29:11 lb01-s06 ctl_cyrusdb[23796]: archiving database file:
/var/imap/mailboxes.db
Jun 8 00:29:11 lb01-s06 ctl_cyrusdb[23796]: archiving log file:
/var/imap/db/log.0000000001
Jun 8 00:29:11 lb01-s06 ctl_cyrusdb[23796]: done checkpointing cyrus databases
Jun 8 00:29:11 lb01-s06 master[22425]: process 23796 exited, status 0
Jun 8 00:59:11 lb01-s06 master[23863]: about to exec /usr/cyrus/bin/ctl_cyrusdb
Jun 8 00:59:11 lb01-s06 ctl_cyrusdb[23863]: checkpointing cyrus databases
Jun 8 00:59:11 lb01-s06 ctl_cyrusdb[23863]: archiving database file:
/var/imap/annotations.db
Jun 8 00:59:11 lb01-s06 ctl_cyrusdb[23863]: archiving log file:
/var/imap/db/log.0000000001
Jun 8 00:59:11 lb01-s06 ctl_cyrusdb[23863]: archiving database file:
/var/imap/mailboxes.db
Jun 8 00:59:11 lb01-s06 ctl_cyrusdb[23863]: archiving log file:
/var/imap/db/log.0000000001
Jun 8 00:59:11 lb01-s06 ctl_cyrusdb[23863]: done checkpointing cyrus databases
Jun 8 00:59:11 lb01-s06 master[22425]: process 23863 exited, status 0
Jun 8 01:29:11 lb01-s06 master[23932]: about to exec /usr/cyrus/bin/ctl_cyrusdb
Jun 8 01:29:11 lb01-s06 ctl_cyrusdb[23932]: checkpointing cyrus databases
Jun 8 01:29:11 lb01-s06 ctl_cyrusdb[23932]: archiving database file:
/var/imap/annotations.db
Jun 8 01:29:11 lb01-s06 ctl_cyrusdb[23932]: archiving log file:
/var/imap/db/log.0000000001
Jun 8 01:29:11 lb01-s06 ctl_cyrusdb[23932]: archiving database file:
/var/imap/mailboxes.db
Jun 8 01:29:11 lb01-s06 ctl_cyrusdb[23932]: archiving log file:
/var/imap/db/log.0000000001
Jun 8 01:29:11 lb01-s06 ctl_cyrusdb[23932]: done checkpointing cyrus databases
Jun 8 01:29:11 lb01-s06 master[22425]: process 23932 exited, status 0

as you can see everything seems to be okay
/var/log/auth.log

Jun 7 17:10:14 lb01-s06 saslauthd[22428]: logusercolumn changed.
Jun 7 17:10:14 lb01-s06 saslauthd[22428]: loghostcolumn changed.
Jun 7 17:10:14 lb01-s06 saslauthd[22428]: logpidcolumn changed.
Jun 7 17:10:14 lb01-s06 saslauthd[22428]: logtimecolumn changed.
Jun 7 17:10:14 lb01-s06 saslauthd[22428]: db_connect called.
Jun 7 17:10:14 lb01-s06 saslauthd[22428]: returning 0 .
Jun 7 17:10:14 lb01-s06 saslauthd[22428]: db_checkpasswd called.
Jun 7 17:10:14 lb01-s06 saslauthd[22428]: pam_mysql: where clause =
Jun 7 17:10:14 lb01-s06 saslauthd[22428]: SELECT password FROM
accountuser WHERE username='cyrus'
Jun 7 17:10:14 lb01-s06 saslauthd[22428]: sqlLog called.
Jun 7 17:10:14 lb01-s06 saslauthd[22428]: insert into log (msg, user,
host, pid, time) values('AUTH SUCCESSFUL', 'cyrus', '', '22428',
NOW())
Jun 7 17:10:14 lb01-s06 saslauthd[22428]: Returning 0
Jun 7 17:10:14 lb01-s06 saslauthd[22428]: returning 0 .
Jun 7 17:10:14 lb01-s06 saslauthd[22428]: returning 0.
Jun 7 17:10:14 lb01-s06 saslauthd[22428]: pam_mysql: acct_mgmt called
but not implemented. Dont panic though :)
Jun 7 17:53:05 lb01-s06 su(pam_unix)[9506]: session closed for user root
Jun 7 17:53:08 lb01-s06 su(pam_unix)[9461]: session closed for user cyrus
Jun 7 17:53:10 lb01-s06 su(pam_unix)[22702]: session closed for user root
Jun 7 17:53:13 lb01-s06 su(pam_unix)[22652]: session closed for user cyrus
Jun 7 17:53:20 lb01-s06 sshd(pam_unix)[2753]: session closed for user root


But still not able to login using Web-cyradm

on the system itself I get an error on using cyradm utility

here is the error

cyradm --user cyrus --server localhost --auth plain
Can't load '/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Cyrus/IMAP/IMAP.so'
for module Cyrus::IMAP:
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Cyrus/IMAP/IMAP.so:
undefined symbol: db_version at
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
line 44
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
line 44.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
line 44.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Shell.pm
line 60.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Shell.pm
line 60.
Compilation failed in require.
BEGIN failed--compilation aborted.

And yes all perl modules are present at the location specified

Any clues please how to sort this out, how do I finally login to the
IMAP server.

Thanks a lot
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Muenz, Michael
2005-06-08 07:07:31 UTC
Permalink
Post by Imran Aziz
But still not able to login using Web-cyradm
on the system itself I get an error on using cyradm utility
here is the error
cyradm --user cyrus --server localhost --auth plain
Can't load
[...]
Post by Imran Aziz
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/I
MAP/Admin.pm
line 44.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/I
MAP/Admin.pm
line 44.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/I
MAP/Shell.pm
line 60.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/I
MAP/Shell.pm
line 60.
Compilation failed in require.
BEGIN failed--compilation aborted.
Please type "updatedb" and after that "locate Admin.pm".
Also check which version of cyradm you use. I don't mean
V.2.2.13, I'm sure you have more than 1 cyradm.
Mine is located in /usr/local/bin.


Michael
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Imran Aziz
2005-06-08 09:04:00 UTC
Permalink
Thank you Michael for coming back to my rescue.

Here is the output from locate

[***@lb01-s06 root]# locate Admin.pm
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
/usr/lib/perl5/site_perl/5.8.0/IMAP/Admin.pm
/usr/local/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
/home/ub3rm4st3r/cyrus-mail/cyrus-imapd-2.2.12/perl/imap/IMAP/Admin.pm
/home/ub3rm4st3r/cyrus-mail/cyrus-imapd-2.2.12/perl/imap/blib/lib/Cyrus/IMAP/Admin.pm
/home/ub3rm4st3r/IMAP-Admin-1.6.4/Admin.pm
/home/ub3rm4st3r/IMAP-Admin-1.6.4/blib/lib/IMAP/Admin.pm

and locate for cyradm
indicates that I have two versions of cyradm

/usr/bin/cyradm
/usr/local/bin/cyradm


and both of them produce the same error

***@lb01-s06 root]# /usr/local/bin/cyradm
Can't load '/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Cyrus/IMAP/IMAP.so'
for module Cyrus::IMAP:
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Cyrus/IMAP/IMAP.so:
undefined symbol: db_version at
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
line 44
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
line 44.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
line 44.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Shell.pm
line 60.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Shell.pm
line 60.
Compilation failed in require.
BEGIN failed--compilation aborted.
From the man pages it seems that the module was installed with Cyrus,
if Cyrus is working okay why has the cyradm utility got problems with
it.


I must point out that I was getting the same errors right from the
very beginning even on the first install and test, I had the same
error message with cyradm.

Any pointers please?
Imran
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Muenz, Michael
2005-06-08 09:10:13 UTC
Permalink
Post by Imran Aziz
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/I
MAP/Admin.pm
/usr/lib/perl5/site_perl/5.8.0/IMAP/Admin.pm
/usr/local/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/C
yrus/IMAP/Admin.pm
/home/ub3rm4st3r/cyrus-mail/cyrus-imapd-2.2.12/perl/imap/IMAP/Admin.pm
/home/ub3rm4st3r/cyrus-mail/cyrus-imapd-2.2.12/perl/imap/blib/
lib/Cyrus/IMAP/Admin.pm
/home/ub3rm4st3r/IMAP-Admin-1.6.4/Admin.pm
/home/ub3rm4st3r/IMAP-Admin-1.6.4/blib/lib/IMAP/Admin.pm
and locate for cyradm
indicates that I have two versions of cyradm
/usr/bin/cyradm
/usr/local/bin/cyradm
Hmmm ... there are 2 version installed, certainly one from
vendor and one from source. Problem is, uninstalling vendor sasl
is pain.
Post by Imran Aziz
Can't load
'/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/C
yrus/IMAP/IMAP.so'
Here you can see the "local" version doesn't use libs installed at
/usr/local/lib/perl....
Edit your /etc/ld.so.conf and insert on top /usr/local/lib,
save and type "ldconfig"

Execute /usr/local/bin/cyradm again and post the output.


Michael
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Imran Aziz
2005-06-08 09:59:08 UTC
Permalink
Hello Michael here is the entries in my file

/usr/kerberos/lib
/usr/X11R6/lib
/usr/lib/qt-3.1/lib
/opt/opengroupware.org/Libraries/ix86/linux-gnu/gnu-fd-nil
/opt/skyrix/system/Libraries/ix86/linux-gnu/gnu-fd-nil
/usr/local/lib
/usr/local/ssl/lib
/usr/local/lib/sasl2


and it seems that /usr/local/lib is already there.

Does this also mean that web_cyradm will not work also, because I
cannot seem to login using any method.
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Muenz, Michael
2005-06-08 10:13:53 UTC
Permalink
Post by Imran Aziz
Post by Imran Aziz
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
/usr/lib/perl5/site_perl/5.8.0/IMAP/Admin.pm
/usr/local/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
/home/ub3rm4st3r/cyrus-mail/cyrus-imapd-2.2.12/perl/imap/IMAP/Admin.pm
/home/ub3rm4st3r/cyrus-mail/cyrus-imapd-2.2.12/perl/imap/blib/lib/Cyrus/IMAP/Admin.pm
/home/ub3rm4st3r/IMAP-Admin-1.6.4/Admin.pm
/home/ub3rm4st3r/IMAP-Admin-1.6.4/blib/lib/IMAP/Admin.pm
and it seems that /usr/local/lib is already there.
Does this also mean that web_cyradm will not work also, because I
cannot seem to login using any method.
Next try:
move /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/ to a
different directory, /home/xxx/ for example, to force cyradm to use the
local ones (after move type "ldconfig" again).
If that also fails you'll have to remove the vendor sasl or to compile
the source "over" the vendor ones.


Michael
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Imran Aziz
2005-06-08 11:28:29 UTC
Permalink
moving the folders did not work, and I get this error

[***@lb01-s06 cyrus-sasl-2.1.21]# /usr/bin/cyradm
Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .).
BEGIN failed--compilation aborted.

so how do I now compile cyrus-sasl-2.1.21 on top of the existing RPM
for sasl that came with the system.

I have got the following RPM's already installed on the server

cyrus-sasl 2.1.15-10
cyrus-sasl-devel 2.1.15-10
cyrus-sasl-gssapi 2.1.15-10
cyrus-sasl-md5 2.1.15-10
cyrus-sasl-plain 2.1.15-10


I did one more thing, edited the mySQL database and added a new user
for root in the accountuser table and then tried to login using
imtest and strangely enough it authenticated perfectly fine.

[***@lb01-s06 cyrus-sasl-2.1.21]# /usr/local/bin/imtest -m login
localhost -u cyrus
S: * OK lb01-s06.headshift.com Cyrus IMAP4 v2.2.12 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND
BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN root {9}
S: + go ahead
C: <omitted>
S: L01 OK User logged in
Authenticated.
Security strength factor: 0
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Muenz, Michael
2005-06-08 11:42:34 UTC
Permalink
Post by Imran Aziz
moving the folders did not work, and I get this error
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .).
BEGIN failed--compilation aborted.
You have to execute /usr/local/bin/cyradm!


Michael
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Imran Aziz
2005-06-08 11:51:40 UTC
Permalink
Yes I did. Here is the output

[***@lb01-s06 postfix]# /usr/local/bin/cyradm
Can't locate Cyrus/IMAP/Shell.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .).
BEGIN failed--compilation aborted.
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Muenz, Michael
2005-06-08 12:35:19 UTC
Permalink
Post by Imran Aziz
Yes I did. Here is the output
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .).
BEGIN failed--compilation aborted.
fixed it ... linked:
/usr/local/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/
to
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/

and
/usr/local/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Cyrus/
to
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Cyrus/

ldconfig again and it works


Michael
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Imran Aziz
2005-06-08 12:44:05 UTC
Permalink
awsome, thank you so very much for that. You have really saved me from
killing myself :) and in addition I managed to learn some new stuff :)
. Thank you so very much.

Imran.
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch
Imran Aziz
2005-06-08 12:56:17 UTC
Permalink
Thank you everyone for helping me out on this, and spending so much
time to get me through this. A special thanks to Michael Muenz for
going out of the way to guide me through this. I would not have been
able to get this sorted without the help of this mailing list and all
the kind people communicating here.
Imran.
_______________________________________________
This mailing list is hosted and supported
by bit-heads GmbH | http://www.bit-heads.ch

Continue reading on narkive:
Loading...