Comments on How To Install courier-imap, courier-authlib, And maildrop On Fedora, RedHat, CentOS
How To Install courier-imap, courier-authlib, And maildrop On Fedora, RedHat, CentOS For some reason there are no Courier packages (courier-imap, courier-authlib, maildrop) available on RedHat-based distributions (RedHat, Fedora, CentOS), and the only third-party repository that had such packages seems to have closed (enlartenment.com). Therefore this tutorial explains how you can create and install your own Courier rpm packages from the sources, and I provide download links for my Courier rpm packages that I compiled on Fedora 8 (i386) so that you can save some time.
14 Comment(s)
Comments
courier-authlib-0.60.2-1.fc8.x86_64.rpm
courier-authlib-debuginfo-0.60.2-1.fc8.x86_64.rpm
courier-authlib-devel-0.60.2-1.fc8.x86_64.rpm
courier-authlib-ldap-0.60.2-1.fc8.x86_64.rpm
courier-authlib-mysql-0.60.2-1.fc8.x86_64.rpm
courier-authlib-pgsql-0.60.2-1.fc8.x86_64.rpm
courier-authlib-pipe-0.60.2-1.fc8.x86_64.rpm
courier-authlib-userdb-0.60.2-1.fc8.x86_64.rpm
courier-imap-4.2.1-1.8.8.x86_64.rpm
courier-imap-debuginfo-4.2.1-1.8.8.x86_64.rpm
Feel free to distribute those rpm packages but keep in mind that those packages were made by me as an employee of Aventiv - Creator of NomaDesk (www.nomadesk.com)
If, when building the courier-imap rpm, the build fails a dependency for /usr/include/fam.h, it can be installed by downloading and installing the gamin-devel-0.1.9-4.fc8.i368.rpm.
wget http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Everything/i386/os/Packages/gamin-devel-0.1.9-4.fc8.i386.rpm
Hi,
thanks for the gr8 tutorial, but rpmbuild on 64bit systems fails as you forgot to mention the creation of the
mkdir -p $HOME/rpm/RPMS/x86_64
directory, so when sudo rpmbuild -ta courier-authlib first runs it creates the dir with root permissions so further courier-imap rpm creation fails...
RB
Here are the rpms for fedora 9
http://file.crazytje.be/rpm/Courier
Or
http://file.crazytje.be/rpm/Courier/courier-authlib-0.60.5-1.fc9.i386.rpm
http://file.crazytje.be/rpm/Courier/courier-authlib-debuginfo-0.60.5-1.fc9.i386.rpm
http://file.crazytje.be/rpm/Courier/courier-authlib-devel-0.60.5-1.fc9.i386.rpm
http://file.crazytje.be/rpm/Courier/courier-authlib-ldap-0.60.5-1.fc9.i386.rpm
http://file.crazytje.be/rpm/Courier/courier-authlib-mysql-0.60.5-1.fc9.i386.rpm
http://file.crazytje.be/rpm/Courier/courier-authlib-pgsql-0.60.5-1.fc9.i386.rpm
http://file.crazytje.be/rpm/Courier/courier-authlib-pipe-0.60.5-1.fc9.i386.rpm
http://file.crazytje.be/rpm/Courier/courier-authlib-userdb-0.60.5-1.fc9.i386.rpm
http://file.crazytje.be/rpm/Courier/courier-imap-4.3.1-1.9.i386.rpm
http://file.crazytje.be/rpm/Courier/courier-imap-debuginfo-4.3.1-1.9.i386.rpm
http://file.crazytje.be/rpm/Courier/maildrop-2.0.4-1.9.i386.rpm
http://file.crazytje.be/rpm/Courier/maildrop-debuginfo-2.0.4-1.9.i386.rpm
http://file.crazytje.be/rpm/Courier/maildrop-devel-2.0.4-1.9.i386.rpm
http://file.crazytje.be/rpm/Courier/maildrop-man-2.0.4-1.9.i386.rpm
I am facing a er.ror when install courier-imap
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for env... /bin/env
configure: WARNING: === Do not compile Courier-IMAP as root. Compile
configure: WARNING: === Courier-IMAP as a non-root user then su to
configure: WARNING: === root before running make install. You must now
configure: WARNING: === remove this entire directory and then extract the
configure: WARNING: === source code from the tarball as a non-root user
configure: WARNING: === and rerun the configure script. If you have read
configure: WARNING: === the INSTALL file you should have known this. So
configure: WARNING: === you better read INSTALL again.
configure: error: aborted.
error: Bad exit status from /var/tmp/rpm-tmp.31034 (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.31034 (%prep)
PLZ some one help me!
You are trying install as root. Simply just do
# su - whatever usename you are using
Then run the command.
do not use "sudo" for courier-imap rpm build process. Just only give the command with out sudo. Read the document and it is there.
I got the error.
[siddharth@images x86_64]$ rpm -ivh courier-imap-debuginfo-4.2.1-1.5Server.x86_64.rpm
error: can't create transaction lock on /var/lib/rpm/__db.000
Plz send me suggestion.
Very helpfull ! Thanks a lot !
Just one detail:
Nowadays, the links to downloads are :
http://sourceforge.net/projects/courier/files/authlib/0.63.0/courier-authlib-0.63.0.tar.bz2.sig/download
http://sourceforge.net/projects/courier/files/imap/4.9.3/courier-imap-4.9.3.tar.bz2/download
http://sourceforge.net/projects/courier/files/maildrop/2.5.4/maildrop-2.5.4.tar.bz2/download
Vitor
Thanks a lot.
After running "sudo rpm -ivh courier-imap-4.2.1-1.8.i386.rpm" I get
RPM build errors:
File not found: /home/falko/rpm/BUILDROOT/courier-imap-4.16.2-2.x86_64/usr/lib/courier-imap/share/courier-imap.sysvinit
Before that I got "config.status: WARNING: 'courier-authlib.service.in' seems to ignore the --datarootdir setting" I tried copying the file from its existing location to the location that it thinks it should be and setting permissions, but it didn't help.
Someone please help!
Hi, I am having same issue while building RPM using rpmbuild -ta courier-imap-4.2.1.tar.bz2
have you found any solution to this ?
That file, courier-imap.sysvinit already exists but in another directory, so start the build (rpmbuild -ta courier-imap-4.16.2.tar.bz2) and then after a while just copy the file to where it should be.
cp /home/USER/rpm/BUILD/courier-imap-4.16.2/packaging/systemd/courier-imap.sysvinit /home/USER/rpm/BUILDROOT/courier-imap-4.16.2-2.x86_64/usr/lib/courier-imap/share/courier-imap.sysvinit
To fix the File not found error for courier-imap.sysvinit, patch the specfile
@@ -355,7 +355,9 @@ %{_mandir} %dir %{_datadir} %{_datadir}/configlist+%if %using_systemd %{_datadir}/courier-imap.sysvinit+%endif %{_datadir}/mk* %{_datadir}/sysconftool