HostOnNet Blog

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

Looking for Linux Server Admin or WordPress Expert? We can help.

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.