gpt4 book ai didi

linux - 如何在CentOS中安装sendmail?

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:57:03 28 4
gpt4 key购买 nike

我想问“如何在 CentOS 中手动安装 sendmail”。我可以通过命令“yum install”安装它,但我需要安装手册。

我去了首页http://www.sendmail.com/sm/open_source/download/

并下载“sendmail.8.14.9.tar.gz”但不知道如何安装。我尝试 unrar 并键入命令“./Build”,但它不起作用

这里是错误:

/home/duc/Desktop/sendmail-8.14.9/libsm
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
cc -O2 -I. -I../../include -c -o assert.o assert.c
make[1]: cc: Command not found
make[1]: *** [assert.o] Error 127
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
Making all in:
/home/duc/Desktop/sendmail-8.14.9/libsmutil
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmutil
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmutil'
cc -O2 -I. -I../../sendmail -I../../include -DNOT_SENDMAIL -c -o debug.o debug.c
make[1]: cc: Command not found
make[1]: *** [debug.o] Error 127
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmutil'
Making all in:
/home/duc/Desktop/sendmail-8.14.9/libsmdb
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmdb
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmdb'
cc -O2 -I. -I../../sendmail -I../../include -DNOT_SENDMAIL -c -o smdb.o smdb.c
make[1]: cc: Command not found
make[1]: *** [smdb.o] Error 127
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsmdb'
Making all in:
/home/duc/Desktop/sendmail-8.14.9/sendmail
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/sendmail
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/sendmail'
(cd ../../libsm; sh Build )
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm
make[2]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
cc -O2 -I. -I../../include -c -o assert.o assert.c
make[2]: cc: Command not found
make[2]: *** [assert.o] Error 127
make[2]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
make[1]: *** [/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm/libsm.a] Error 2
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/sendmail'
Making all in:
/home/duc/Desktop/sendmail-8.14.9/editmap
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/editmap
make[1]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/editmap'
(cd ../../libsm; sh Build )
Configuration: pfx=, os=Linux, rel=2.6.32-431.el6.x86_64, rbase=2, rroot=2.6.32-431.el6, arch=x86_64, sfx=, variant=optimized
Making in /home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm
make[2]: Entering directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
cc -O2 -I. -I../../include -c -o assert.o assert.c
make[2]: cc: Command not found
make[2]: *** [assert.o] Error 127
make[2]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm'
make[1]: *** [/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/libsm/libsm.a] Error 2
make[1]: Leaving directory `/home/duc/Desktop/sendmail-8.14.9/obj.Linux.2.6.32-431.el6.x86_64.x86_64/editmap'

请帮帮我!!抱歉我的英语不好

最佳答案

找不到C编译器:

make[1]: cc: Command not found

构建系统正在读取 CC 环境变量的值,因此为它分配一个指向您的编译器的路径,例如

export CC=/usr/bin/gcc

关于linux - 如何在CentOS中安装sendmail?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25011838/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com