Transferred from http://raulkang.blog.51cto.com/210239/573151
[Root@localhost ~]# CD msmtp-1.4.20
[Root@localhost msmtp-1.4.20]#./configure
Checking build system Type ... I686-pc-linux-gnu
Checking host system Type ... I686-pc-linux-gnu
Checking target system Type ... I686-pc-linux-gnu
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 gcc ... no
Checking for cc ... No
Checking for cl.exe ... no
Configure:error:in '/root/msmtp-1.4.20 ':
Configure:error:no acceptable C compiler found in $PATH
"Config.log ' for more details."
Today in the installation of MSMTP encountered this problem, the solution is as follows:
Installing the GCC software suite
[root@localhost ~]# yum Install gcc
Loaded Plugins:fastestmirror
Loading mirror speeds from cached hostfile
* Base:mirror01.idc.hinet.net
* Extras:mirror01.idc.hinet.net
* Updates:mirror01.idc.hinet.net
Setting up Install Process
Resolving dependencies
--> Running Transaction Check
---> Package gcc.i386 0:4.1.2-50.el5 set to be updated
--> processing dependency:cpp = 4.1.2-50.el5 for PACKAGE:GCC
--> processing Dependency:glibc-devel >= 2.2.90-12 for PACKAGE:GCC
--> Running Transaction Check
---> Package cpp.i386 0:4.1.2-50.el5 set to be updated
---> Package glibc-devel.i386 0:2.5-58.el5_6.3 set to be updated
--> processing dependency:glibc-headers = 2.5-58.el5_6.3 for Package:glibc-devel
--> processing dependency:glibc-headers for Package:glibc-devel
--> Running Transaction Check
---> Package glibc-headers.i386 0:2.5-58.el5_6.3 set to be updated
--> processing dependency:kernel-headers >= 2.2.1 for package:glibc-headers
--> processing dependency:kernel-headers for Package:glibc-headers
--> Running Transaction Check
---> Package kernel-headers.i386 0:2.6.18-238.9.1.el5 set to be updated
--> finished Dependency resolution
Dependencies resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
GCC i386 4.1.2-50.el5 Base 5.2 M
Installing for dependencies:
CPP i386 4.1.2-50.el5 Base 2.7 M
Glibc-devel i386 2.5-58.el5_6.3 Updates 2.0 M
Glibc-headers i386 2.5-58.el5_6.3 updates 603 k
Kernel-headers i386 2.6.18-238.9.1.EL5 Updates 1.1 M
Transaction Summary
================================================================================
Install 5 Package (s)
Upgrade 0 Package (s)
Total Download Size:12 M
Is this OK [y/n]: Y
Downloading Packages:
(1/5): glibc-headers-2.5-58.el5_6.3.i386.rpm | 603 KB 00:00
(2/5): kernel-headers-2.6.18-238.9.1.el5.i386.rpm | 1.1 MB 00:00
(3/5): glibc-devel-2.5-58.el5_6.3.i386.rpm | 2.0 MB 00:00
(4/5): cpp-4.1.2-50.el5.i386.rpm | 2.7 MB 00:00
(5/5): gcc-4.1.2-50.el5.i386.rpm | 5.2 MB 00:00
--------------------------------------------------------------------------------
Total 5.1 mb/s | MB 00:02
Running Rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing:kernel-headers 1/5
Installing:cpp 2/5
Installing:glibc-headers 3/5
Installing:glibc-devel 4/5
INSTALLING:GCC 5/5
Installed:
Gcc.i386 0:4.1.2-50.el5
Dependency installed:
cpp.i386 0:4.1.2-50.el5 glibc-devel.i386 0:2.5-58.el5_6.3
glibc-headers.i386 0:2.5-58.el5_6.3 kernel-headers.i386 0:2.6.18-238.9.1.el5
complete!
[Root@localhost ~]# CD msmtp-1.4.20
[Root@localhost msmtp-1.4.20]#./configure
It worked..