1.解压

[root@zabbix ~]# tar -jxvf msmtp-1.4.32.tar.bz2

2.配置

[root@zabbix ~]# cd msmtp-1.4.32

[root@zabbix msmtp-1.4.32]# ./configure --prefix=/usr/local/msmtp --sysconfdir=/usr/local/msmtp/etc
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
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 whether gcc understands -c and -o together... yes
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 special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking whether make supports nested variables... (cached) yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking for a sed that does not truncate output... /bin/sed
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking sysexits.h usability... yes
checking sysexits.h presence... yes
checking for sysexits.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for fmemopen... yes
checking for fseeko... yes
checking for fseeko64... yes
checking for getpass... yes
checking for getservbyname... yes
checking for link... yes
checking for mkstemp... yes
checking for sigaction... yes
checking for strndup... yes
checking for syslog... yes
checking for vasprintf... yes
checking for library containing nanosleep... none required
checking for library containing socket... none required
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libgnutls... no
configure: WARNING: library libgnutls not found:
configure: WARNING: No package 'gnutls' found
configure: WARNING: libgnutls is provided by GnuTLS; Debian package: libgnutls-dev
checking for libssl... no
configure: WARNING: library libssl not found:
configure: WARNING: No package 'openssl' found
configure: WARNING: libssl is provided by OpenSSL; Debian package: libssl-dev
configure: WARNING: Neither GnuTLS nor OpenSSL found, disabling TLS/SSL support
checking for libgsasl... no
configure: WARNING: library libgsasl not found:
configure: WARNING: No package 'libgsasl' found
configure: WARNING: libgsasl is provided by GNU SASL; Debian package: libgsasl7-dev
checking for libidn... no
configure: WARNING: library libidn not found:
configure: WARNING: No package 'libidn' found
configure: WARNING: libidn is provided by GNU Libidn; Debian package: libidn11-dev
checking for libgnome_keyring... no
configure: WARNING: library libgnome-keyring not found:
configure: WARNING: No package 'gnome-keyring-1' found
configure: WARNING: libgnome-keyring is provided by Gnome; Debian package: libgnome-keyring-dev
checking for SecKeychainGetVersion... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating doc/Makefile
config.status: creating scripts/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile

Install prefix ......... : /usr/local/msmtp
TLS/SSL support ........ : no (Library: none)
GNU SASL support ....... : no
GNU Libidn support ..... : no
NLS support ............ : yes
GNOME Keyring support .. : no
MacOS X Keychain support : no
3.编译安装

[root@zabbix msmtp-1.4.32]# make &&make install

make  all-recursive
make[1]: Entering directory `/root/msmtp-1.4.32'
Making all in src
make[2]: Entering directory `/root/msmtp-1.4.32/src'
  CC       conf.o
  CC       list.o
  CC       msmtp.o
  CC       net.o
  CC       netrc.o
  CC       readbuf.o
  CC       smtp.o
  CC       stream.o
  CC       tools.o
  CC       xalloc.o
  CC       aliases.o
  CC       base64.o
  CC       md5.o
  CC       md5-apps.o
  CCLD     msmtp
make[2]: Leaving directory `/root/msmtp-1.4.32/src'
Making all in po
make[2]: Entering directory `/root/msmtp-1.4.32/po'
make[2]: Leaving directory `/root/msmtp-1.4.32/po'
Making all in doc
make[2]: Entering directory `/root/msmtp-1.4.32/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/msmtp-1.4.32/doc'
Making all in scripts
make[2]: Entering directory `/root/msmtp-1.4.32/scripts'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/msmtp-1.4.32/scripts'
make[2]: Entering directory `/root/msmtp-1.4.32'
make[2]: Leaving directory `/root/msmtp-1.4.32'
make[1]: Leaving directory `/root/msmtp-1.4.32'
Making install in src
make[1]: Entering directory `/root/msmtp-1.4.32/src'
make[2]: Entering directory `/root/msmtp-1.4.32/src'
 /bin/mkdir -p '/usr/local/msmtp/bin'
  /usr/bin/install -c msmtp '/usr/local/msmtp/bin'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/msmtp-1.4.32/src'
make[1]: Leaving directory `/root/msmtp-1.4.32/src'
Making install in po
make[1]: Entering directory `/root/msmtp-1.4.32/po'
installing de.gmo as /usr/local/msmtp/share/locale/de/LC_MESSAGES/msmtp.mo
if test "msmtp" = "gettext-tools"; then \
   /bin/mkdir -p /usr/local/msmtp/share/gettext/po; \
   for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot   Makevars.template; do \
     /usr/bin/install -c -m 644 ./$file \
       /usr/local/msmtp/share/gettext/po/$file; \
   done; \
   for file in Makevars; do \
     rm -f /usr/local/msmtp/share/gettext/po/$file; \
   done; \
 else \
   : ; \
 fi
make[1]: Leaving directory `/root/msmtp-1.4.32/po'
Making install in doc
make[1]: Entering directory `/root/msmtp-1.4.32/doc'
make[2]: Entering directory `/root/msmtp-1.4.32/doc'
make[2]: Nothing to be done for `install-exec-am'.
 /bin/mkdir -p '/usr/local/msmtp/share/info'
 /usr/bin/install -c -m 644 ./msmtp.info '/usr/local/msmtp/share/info'
 install-info --info-dir='/usr/local/msmtp/share/info' '/usr/local/msmtp/share/info/msmtp.info'
 /bin/mkdir -p '/usr/local/msmtp/share/man/man1'
 /usr/bin/install -c -m 644 msmtp.1 '/usr/local/msmtp/share/man/man1'
make[2]: Leaving directory `/root/msmtp-1.4.32/doc'
make[1]: Leaving directory `/root/msmtp-1.4.32/doc'
Making install in scripts
make[1]: Entering directory `/root/msmtp-1.4.32/scripts'
make[2]: Entering directory `/root/msmtp-1.4.32/scripts'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/msmtp-1.4.32/scripts'
make[1]: Leaving directory `/root/msmtp-1.4.32/scripts'
make[1]: Entering directory `/root/msmtp-1.4.32'
make[2]: Entering directory `/root/msmtp-1.4.32'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/root/msmtp-1.4.32'
make[1]: Leaving directory `/root/msmtp-1.4.32'

转载于:https://blog.51cto.com/ovcer/1414482

msmtp在RHEL6.5下的安装相关推荐

  1. Hadoop2.2.0集群在RHEL6.2下的安装实战

    题记 本文介绍了一个Hadoop2.2.0集群的搭建过程,在2台4G内存的酷睿双核PC机上,使用VMWare WorkStation虚拟了4个RHEL6.2(1G内存.单核CPU.10G硬盘),总计用 ...

  2. rhel mysql安装_RHEL6.4下MySQL安装方法及简单配置

    1.MySQL安装方法简介 1.rpm包yum安装 2.通用二进制包安装 3.源码编译安装 注意:实验所采用的系统平台为:RHEL6.4 2.rpm ins 首页 → 数据库技术 背景: 阅读新闻 R ...

  3. RHEL6 64bit下更改YUM配置。yum this system is not registered with rhn的解决办法

    RHEL6 64bit下更改YUM配置.yum this system is not registered with rhn的解决办法 2013-10-22 11:37 3498人阅读 评论(0) 收 ...

  4. 使用PXE+NFS EFI引导安装RHEL6/7以及Kickstart安装

    PXE引导的步骤: 1.开机后选择网络启动,client端向server端的dhcpd发起获取IP地址的dhcp请求. 2.server端分配IP后,dhcpd会同时根据其配置文件,通过TFTP协议发 ...

  5. Linux_ppc下软件包安装,Linux下软件包安装详解

    一.概述 现在Linux上软件的安装方式有多种,有源码包编译,软件包管理器,软件包管理器前端工具,通用二进制编译等.源码包,优点是,灵活性和可定制性比较好,缺点是,技术要求高,操作复杂,虽然网上有编译 ...

  6. redhat6.2 下gcc安装

    安装GCC需要一个正确的顺序: rpm -Uvh kernel-headers-2.6.32-220.el6.i686.rpm rpm -Uvh glibc-headers-2.12-1.47.el6 ...

  7. mysql64如何配置_win7 64位下如何安装配置mysql-winx64(安装记录)

    win7 64位下如何安装配置mysql winx64 1.mysql下载 官方网站下载地址:http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5. ...

  8. mysql在linux下的安装

    mysql在linux下的安装 安装环境:系统是 centos6.5 1.下载 下载地址:http://dev.mysql.com/downloads/mysql/5.6.html#downloads ...

  9. linux mysql 5.6.22_LinuxCentOS6.0下编译安装MySQL5.6.22

    Linux CentOS6.5下编译安装MySQL 5.6.22[给力详细教程] 一.编译安装MySQL前的准备工作 安装编译源码所需的工具和库(安装过程注意有没出错) yum install gcc ...

最新文章

  1. 一个基于poi的excel导出程序
  2. jQuery lazyload 懒加载
  3. 在Android手机上配置office 365邮箱
  4. dict是python语言的内置对象_Python内置了字典:dict的支持
  5. 教你玩转CSS 尺寸 (Dimension)
  6. 《Node.js区块链开发》
  7. ping 丢包 网络摄像头_利用Zabbix监控工具自动帮我们检测目标网络状况
  8. python3+xlrd解析Excel
  9. 纵观中日韩市场 PC视频会议高清时代来临
  10. 高速缓存dns/ddns
  11. 猿创征文 | 国产数据库之神通数据库详解安装和使用
  12. 自定义 View 之抖音时钟罗盘仪效果
  13. 西电电子线路实验课程设计通关模板
  14. 【产业互联网周报】AWS 全球换帅,中国区发布战略;杨杰回应回A,中移动计划千亿投5G;全球缺芯潮持续...
  15. 常见的10种“瓶颈”
  16. 开发集成云信IM小程序聊天室流程
  17. Android 自动旋转屏幕总结
  18. 使用python3+pyqt5实现图片识别文字工具
  19. linux ping结果中mdev,ping之mdev值
  20. 2019-2020年度第2学期课程回顾总结

热门文章

  1. 第几天? 2005
  2. input file 选择文件后自动上传文件
  3. JS格式化时间之后少了8个小时
  4. logback配置文件详解
  5. ES6——generator与yield
  6. ES5(二)——替换this 之call()、apply()和bind()
  7. Date对象 IOS踩坑
  8. HTML学习二_HTML常用的行级标签,常用实体字符及表单标签
  9. c# WebService添加SoapHeader认证
  10. SQL Server -- 如何书写优雅、漂亮的SQL脚本?