HostOnNet Blog


configure: error: no acceptable C compiler found in $PATH

When installing pure-ftpd, i get following error

configure: error: no acceptable C compiler found in $PATH

[root@localhost pure-ftpd-1.0.37]# ./configure
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 whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking for ranlib... ranlib
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/local/src/pure-ftpd-1.0.37':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
[root@localhost pure-ftpd-1.0.37]#

To fix this, install C/C++ compiler with yum

yum -y install gcc gcc-c++

Posted in CentOS