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-gnuchecking host system type... x86_64-unknown-linux-gnuchecking target system type... x86_64-unknown-linux-gnuchecking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables... checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking whether gcc understands -c and -o together... yeschecking how to run the C preprocessor... gcc -Echecking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking minix/config.h usability... nochecking minix/config.h presence... nochecking for minix/config.h... nochecking whether it is safe to define __EXTENSIONS__... yeschecking for special C compiler options needed for large files... nochecking for _FILE_OFFSET_BITS value needed for large files... nochecking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking for style of include used by make... GNUchecking whether make supports nested variables... yeschecking dependency style of gcc... gcc3checking whether make supports nested variables... (cached) yeschecking for gcc... (cached) gccchecking whether we are using the GNU C compiler... (cached) yeschecking whether gcc accepts -g... (cached) yeschecking for gcc option to accept ISO C89... (cached) none neededchecking whether gcc understands -c and -o together... (cached) yeschecking for a sed that does not truncate output... /bin/sedchecking whether NLS is requested... yeschecking for msgfmt... /usr/bin/msgfmtchecking for gmsgfmt... /usr/bin/msgfmtchecking for xgettext... /usr/bin/xgettextchecking for msgmerge... /usr/bin/msgmergechecking for ld used by gcc... /usr/bin/ldchecking if the linker (/usr/bin/ld) is GNU ld... yeschecking for shared library run path origin... donechecking for CFPreferencesCopyAppValue... nochecking for CFLocaleCopyCurrent... nochecking for GNU gettext in libc... yeschecking whether to use NLS... yeschecking where the gettext function comes from... libcchecking sysexits.h usability... yeschecking sysexits.h presence... yeschecking for sysexits.h... yeschecking netdb.h usability... yeschecking netdb.h presence... yeschecking for netdb.h... yeschecking arpa/inet.h usability... yeschecking arpa/inet.h presence... yeschecking for arpa/inet.h... yeschecking sys/socket.h usability... yeschecking sys/socket.h presence... yeschecking for sys/socket.h... yeschecking sys/wait.h usability... yeschecking sys/wait.h presence... yeschecking for sys/wait.h... yeschecking for fmemopen... yeschecking for fseeko... yeschecking for fseeko64... yeschecking for getpass... yeschecking for getservbyname... yeschecking for link... yeschecking for mkstemp... yeschecking for sigaction... yeschecking for strndup... yeschecking for syslog... yeschecking for vasprintf... yeschecking for library containing nanosleep... none requiredchecking for library containing socket... none requiredchecking for pkg-config... /usr/bin/pkg-configchecking pkg-config is at least version 0.9.0... yeschecking for libgnutls... noconfigure: WARNING: library libgnutls not found:configure: WARNING: No package 'gnutls' foundconfigure: WARNING: libgnutls is provided by GnuTLS; Debian package: libgnutls-devchecking for libssl... noconfigure: WARNING: library libssl not found:configure: WARNING: No package 'openssl' foundconfigure: WARNING: libssl is provided by OpenSSL; Debian package: libssl-devconfigure: WARNING: Neither GnuTLS nor OpenSSL found, disabling TLS/SSL supportchecking for libgsasl... noconfigure: WARNING: library libgsasl not found:configure: WARNING: No package 'libgsasl' foundconfigure: WARNING: libgsasl is provided by GNU SASL; Debian package: libgsasl7-devchecking for libidn... noconfigure: WARNING: library libidn not found:configure: WARNING: No package 'libidn' foundconfigure: WARNING: libidn is provided by GNU Libidn; Debian package: libidn11-devchecking for libgnome_keyring... noconfigure: WARNING: library libgnome-keyring not found:configure: WARNING: No package 'gnome-keyring-1' foundconfigure: WARNING: libgnome-keyring is provided by Gnome; Debian package: libgnome-keyring-devchecking for SecKeychainGetVersion... nochecking that generated files are newer than configure... doneconfigure: creating ./config.statusconfig.status: creating Makefileconfig.status: creating src/Makefileconfig.status: creating po/Makefile.inconfig.status: creating doc/Makefileconfig.status: creating scripts/Makefileconfig.status: creating config.hconfig.status: executing depfiles commandsconfig.status: executing po-directories commandsconfig.status: creating po/POTFILESconfig.status: creating po/MakefileInstall prefix ......... : /usr/local/msmtp
TLS/SSL support ........ : no (Library: none)GNU SASL support ....... : noGNU Libidn support ..... : noNLS support ............ : yesGNOME Keyring support .. : noMacOS X Keychain support : no3.编译安装[root@zabbix msmtp-1.4.32]# make &&make install
make all-recursive
make[1]: Entering directory `/root/msmtp-1.4.32'Making all in srcmake[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 msmtpmake[2]: Leaving directory `/root/msmtp-1.4.32/src'Making all in pomake[2]: Entering directory `/root/msmtp-1.4.32/po'make[2]: Leaving directory `/root/msmtp-1.4.32/po'Making all in docmake[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 scriptsmake[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 srcmake[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 pomake[1]: Entering directory `/root/msmtp-1.4.32/po'installing de.gmo as /usr/local/msmtp/share/locale/de/LC_MESSAGES/msmtp.moif 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 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 \ : ; \ fimake[1]: Leaving directory `/root/msmtp-1.4.32/po'Making install in docmake[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 scriptsmake[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'