LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-10-2013, 12:35 AM   #1
jitendra.sharma
Member
 
Registered: Mar 2013
Location: ahmedabad
Distribution: CentOS, Ubuntu, Debian
Posts: 92
Blog Entries: 1

Rep: Reputation: Disabled
qmail cyrus-imapd installation issue..


hello friends,
i am trying to configure qmail server with pop3s and cyrus-imapd...
i have successfully configured qmail+pop3d.. now i want to configure imap service for my mail server..
for that i choose cyrus-imapd and download the source but when i compile the source code i got some error about db 3.* higher error which shown below...

root@debian:/usr/local/src/cyrus-imapd-2.4.17# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for makedepend... /usr/local/src/cyrus-imapd-2.4.17/tools/not-mkdep
configure: WARNING: Makedepend is not installed on this system. You should compile and install the version from the makedepend subdirectory.
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ranlib... ranlib
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking for gawk... no
checking for mawk... mawk
checking for an ANSI C-conforming const... yes
checking for long file names... yes
checking for inline... inline
checking size of int... 4
checking size of long... 4
checking size of size_t... 4
checking size of off_t... 4
checking size of long long int... 8
checking size of unsigned long long int... 8
checking whether byte ordering is bigendian... no
checking for __attribute__... yes
checking if compiler supports -fPIC... yes
checking for runpath switch... -Wl,-rpath,
checking for unistd.h... (cached) yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for memmove... yes
checking for strcasecmp... yes
checking for ftruncate... yes
checking for strerror... yes
checking for strlcat... no
checking for strlcpy... no
checking for getgrouplist... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for stdlib.h... (cached) yes
checking for getpassphrase... no
checking for connect... yes
checking for res_search... no
checking for dn_expand... no
checking for dns_lookup... no
checking for getaddrinfo... yes
checking for gai_strerror... yes
checking for getnameinfo... yes
checking whether you have ss_family in struct sockaddr_storage... yes
checking whether you have sa_len in struct sockaddr... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
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 db.h usability... no
checking db.h presence... no
checking for db.h... no
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.
root@debian:/usr/local/src/cyrus-imapd-2.4.17#

i download db as well but i dnt know how compile this if there is any other way to install the cyrus-imapd please share with me.....
thanks in advance
 
Old 05-10-2013, 02:54 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi

You need to install db4 and db4 development packages, so use your distro's package manager to install them
If you're running Centos (as first listed in your profile) use:
Code:
yum install db4 db4-devel
Note that for ubuntu the same packages are named libdb4.x and libdb4.x-dev (where x is the minor db4 version number)

Regards
 
Old 05-10-2013, 03:40 AM   #3
jitendra.sharma
Member
 
Registered: Mar 2013
Location: ahmedabad
Distribution: CentOS, Ubuntu, Debian
Posts: 92

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
not able to install db4 i am not able to stop mysql server
there is an error: -
Stopping MySQL database server: mysqld failed!
 
Old 05-10-2013, 05:32 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
not able to install db4 i am not able to stop mysql server
there is an error: -
Stopping MySQL database server: mysqld failed!
If you want us to help, you should provide more details.
What distro are you running?
What happens when you try to install db4?

Regarding mysql take a look at mysql logs
 
Old 05-10-2013, 06:12 AM   #5
jitendra.sharma
Member
 
Registered: Mar 2013
Location: ahmedabad
Distribution: CentOS, Ubuntu, Debian
Posts: 92

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
ok i want to configure cyrus-imapd service on my server debian 6.0 when i am going to install cyrus-imapd-2.4.17 i got the error: -
error: Berkeley DB 3.x or later was not found.
so if i run the command
#apt-get install db4.8-util

i got the error "file not found"

please give me some more details
 
Old 05-10-2013, 07:29 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You need the development package and maybe lbdb4 (if not installed)
Have a look here to see how to install

Regards
 
Old 05-10-2013, 07:58 AM   #7
jitendra.sharma
Member
 
Registered: Mar 2013
Location: ahmedabad
Distribution: CentOS, Ubuntu, Debian
Posts: 92

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
i have solved this dependency install by db-3.0.55.tar version with this commands : -
#cd db-3.0.55
#../dist/configure --with-mutex="x86/gcc-assembly" --prefix=/usr/local --with-uniquename
#make
#make install

thanks for your cooperation dear bathory thanks a lot.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cyrus-imapd issue with renaming of mailboxes cavster63 Linux - Software 0 02-23-2010 04:34 PM
cyrus-imapd and plus-addressing pigsa Linux - Server 2 02-08-2009 08:49 PM
Compiling Cyrus-Imapd menonsudhir Linux - Server 1 02-20-2007 02:53 PM
Qmail and Cyrus-Imapd manya Linux - Security 0 05-11-2006 03:34 AM
cyrus imapd redhatlover Linux - Enterprise 3 01-03-2006 06:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration