COURIER-imap installation and creation of rpm Environment

Source: Internet
Author: User
Tags fam imap openldap

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.

  1. Manually install CentOS authlib using the rpm file
  2. Use CentOS RPM to install software such as vhmr in CentOS 5.2
  3. How to install Oracle in CentOS5.3 and how to create a software account
  4. How to install the RPM package during CentOS VSFTPD Installation
  5. Use the extract package to install CentOS oracle

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.