mutt + msmtp 交叉编译

1. compile libncurses


# cd ncurses-5.9/
# ./configure --host=arm-linux-gnueabi
# make


2. compile mutt


# cd mutt-1.4.2.3/
# ./configure --host=arm-linux-gnueabi --with-curses=../ncurses-5.9/install --prefix=`pwd`/install
# vi Makefile
CFLAGS = -Wall -pedantic -I/home/xxx/pkg/mutt-1.4.2.3/install/include -I../ncurses-5.9/install/include/ncurses
# make && make install


3. compile openssl


# AR="arm-linux-gnueabi-ar" RANLIB=arm-linux-gnueabi-ranlib  CC=arm-linux-gnueabi-gcc /usr/bin/perl ./Configure shared linux-armv4 --prefix="$PWD/output/"
# make && make install


4. compile msmtp


# ./configure --host=arm-linux-gnueabi --with-ssl=openssl --with-libidn=no --with-gnome-keyring=no libssl_CFLAGS=-I$PWD/../openssl-1.0.0k/output/include libssl_LIBS="-L$PWD/../openssl-1.0.0k/output/lib -lssl -lcrypto" --prefix=$PWD/output
# make && make install



5. cat .msmtprc

account default 
host smtp.163.com
from [email protected]
auth plain
user xxxxx 
password xxxx
logfile /tmp/.msmtp.log
#touch /tmp/.msmtp.log

6 cat .muttrc

set sendmail="/sbin/msmtp"
set use_from=yes
set realname="xxxxx"
set editor="vi"
set [email protected]
set envelope_from=yes


7. if not found vt100 when run "mutt -s "subject [email protected]", copy terminfo form ncurse.



你可能感兴趣的:(linux系统)