标签:msmtp
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‘
本文出自 “云人生” 博客,请务必保留此出处http://ovcer.blog.51cto.com/1145188/1414482
msmtp在RHEL6.5下的安装,布布扣,bubuko.com
标签:msmtp
原文地址:http://ovcer.blog.51cto.com/1145188/1414482