Before you describe how to install COURIER-imap, first let everyone know about the installation of courier-imap, and then fully introduce the installation of COURIER-imap. Linux is short for GNU/Linux. It is usually the general name of various Linux releases. Common Linux Manufacturers include Redhat/Novell. COURIER-imap installation because COURIER-imap cannot generate rpm as root, we create a common user and create an rpm environment.
[Root @ localhost ~] # Useradd yiyou
The software package is lazy and requires openldap-server to be installed. After rpm is created, it can be deleted.
[Root @ localhost ~] # Yum-y install openldap-servers
[Root @ localhost ~] # Su-yiyou
[Yiyou @ localhost ~] $ Mkdir-p rpm/{BUILD, RPMS, SOURCES, SPECS, SRPMS}
[Yiyou @ localhost ~] $ Vim ~ /. Rpmmacros
COURIER-imap installation input content:
% _ Topdir/home/yiyou/rpm
[Yiyou @ localhost ~] $ Wget http://prdownloads.sourceforge.net/courier/courier-imap-4.4.1.tar.bz2
[Yiyou @ localhost ~] $ Cp courier-imap-4.4.1.tar.bz 2 RPM/SOURCES/
[Yiyou @ localhost ~] $ Tar xjf courier-imap-4.4.1.tar.bz2
[Yiyou @ localhost ~] $ Courier-imap-4.4.1 cd
[Yiyou @ localhost courier-imap-4.4.1] $ cp courier-imap.spec ../rpm/SPECS/
[Yiyou @ localhost courier-imap-4.4.1] $ cd ../rpm/SPECS/
COURIER-imap edit. spec:
% If % suse_version
BuildPreReq: rpm >=3.0.5/usr/bin/sed openldap2 openldap2-devel % ([% {suse_version}-gt 819] & echo/usr/include/fam. h)
% Else
BuildPreReq: rpm> = 4.0.2 sed/usr/include/fam. h openldap-devel openldap-servers
% Endif
Changed:
% If % suse_version
BuildPreReq: rpm> = 3.0.5/usr/bin/sed openldap2 openldap2-devel
% Else
BuildPreReq: rpm> = 4.0.2 sed openldap-devel openldap-servers
% Endif
COURIER-imap installation and creation of rpm
[Yiyou @ localhost SPECS] $ rpmbuild-bb courier-imap.spec
After rpm is completed, enter exit to exit the current user.
[Root @ localhost ~] # Rpm-ivh/home/yiyou/rpm/RPMS/i386/courier-imap-4.4.1-1.i386.rpm
[Root @ localhost ~] # Service courier-imap start
The above describes how to install courier-imap and create an rpm environment.
- Manually install CentOS authlib using the rpm file
- Use CentOS RPM to install software such as vhmr in CentOS 5.2
- How to install Oracle in CentOS5.3 and how to create a software account
- How to install the RPM package during CentOS VSFTPD Installation
- Use the extract package to install CentOS oracle