No Acceptable C Compiler Found In $path

RegisterLogin
No Acceptable C Compiler Found In $path
Post Description: This Page Will Show You What You Can Do To Fix This Error No Acceptable C Compiler Found In $path When You Try To Install Proftpd
Tags: No, Acceptable, C, Compiler, Found, In, $path
This Post Was Posted On Jan 28, 2010 By Webune Support #2988
welcome to webune support forums.

if you are a customer and you have a linux dedicated server and you are trying to install your FTP server such as PROftpd and you get this error:

./configure --sysconfdir=/etc
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 gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.





what you will have to do is install a c compiler such as gcc so send this command:

SHELL COMMAND:
yum install gcc gcc-c++

NOTE: Webune provides Linux Dedicated Servers with RedHat, Fedora CentOS so these commands works on all RedHat Distributions. For other distributions the command might be different, for Debian distributions like Ubuntu you can use apt get or you can install yum in your distribution like FreeBSD or others.

thats it


this is what i got after i send the command:
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 gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[root@hostproftpd-1.3.2a]#
[root@hostproftpd-1.3.2a]# yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.xmission.com
* base: mirrors.versaweb.com
* extras: mirrors.combinetworks.com
* updates: centos-distro.cavecreek.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.i386 0:4.1.2-46.el5_4.1 set to be updated
--> Processing Dependency: cpp = 4.1.2-46.el5_4.1 for package: gcc
--> Processing Dependency: libgomp >= 4.1.2-46.el5_4.1 for package: gcc
--> Processing Dependency: libgcc >= 4.1.2-46.el5_4.1 for package: gcc
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
--> Running transaction check
---> Package cpp.i386 0:4.1.2-46.el5_4.1 set to be updated
---> Package glibc-devel.i386 0:2.5-42.el5_4.2 set to be updated
--> Processing Dependency: glibc = 2.5-42.el5_4.2 for package: glibc-devel
--> Processing Dependency: glibc-headers = 2.5-42.el5_4.2 for package: glibc-devel
--> Processing Dependency: glibc-headers for package: glibc-devel
---> Package libgcc.i386 0:4.1.2-46.el5_4.1 set to be updated
---> Package libgomp.i386 0:4.4.0-6.el5 set to be updated
--> Running transaction check
--> Processing Dependency: glibc = 2.5-42 for package: nscd
---> Package glibc.i686 0:2.5-42.el5_4.2 set to be updated
--> Processing Dependency: glibc-common = 2.5-42.el5_4.2 for package: glibc
---> Package glibc-headers.i386 0:2.5-42.el5_4.2 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 glibc-common.i386 0:2.5-42.el5_4.2 set to be updated
---> Package kernel-headers.i386 0:2.6.18-164.9.1.el5 set to be updated
---> Package nscd.i386 0:2.5-42.el5_4.2 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
gcc i386 4.1.2-46.el5_4.1 updates 5.2 M
Installing for dependencies:
cpp i386 4.1.2-46.el5_4.1 updates 2.6 M
glibc-devel i386 2.5-42.el5_4.2 updates 2.0 M
glibc-headers i386 2.5-42.el5_4.2 updates 601 k
kernel-headers i386 2.6.18-164.9.1.el5 updates 1.0 M
libgomp i386 4.4.0-6.el5 base 70 k
Updating for dependencies:
glibc i686 2.5-42.el5_4.2 updates 5.2 M
glibc-common i386 2.5-42.el5_4.2 updates 16 M
libgcc i386 4.1.2-46.el5_4.1 updates 94 k
nscd i386 2.5-42.el5_4.2 updates 163 k

Transaction Summary
================================================================================
Install 6 Package(s)
Update 4 Package(s)
Remove 0 Package(s)

Total download size: 33 M
Is this ok [y/N]: y
Downloading Packages:
(1/10): libgomp-4.4.0-6.el5.i386.rpm | 70 kB 00:00
(2/10): libgcc-4.1.2-46.el5_4.1.i386.rpm | 94 kB 00:00
(3/10): nscd-2.5-42.el5_4.2.i386.rpm | 163 kB 00:00
(4/10): glibc-headers-2.5-42.el5_4.2.i386.rpm | 601 kB 00:00
(5/10): kernel-headers-2.6.18-164.9.1.el5.i386.rpm | 1.0 MB 00:01
(6/10): glibc-devel-2.5-42.el5_4.2.i386.rpm | 2.0 MB 00:01
(7/10): cpp-4.1.2-46.el5_4.1.i386.rpm | 2.6 MB 00:01
(8/10): gcc-4.1.2-46.el5_4.1.i386.rpm | 5.2 MB 00:00
(9/10): glibc-2.5-42.el5_4.2.i686.rpm | 5.2 MB 00:01
(10/10): glibc-common-2.5-42.el5_4.2.i386.rpm | 16 MB 00:04
--------------------------------------------------------------------------------
Total 2.6 MB/s | 33 MB 00:12
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : glibc-common 1/14
Installing : kernel-headers 2/14
Updating : libgcc 3/14
Updating : glibc 4/14
Installing : cpp 5/14
Installing : libgomp 6/14
Updating : nscd 7/14
Installing : glibc-headers 8/14
Installing : glibc-devel 9/14
Installing : gcc 10/14
Cleanup : glibc 11/14
Cleanup : nscd 12/14
Cleanup : glibc-common 13/14
Cleanup : libgcc 14/14

Installed:
gcc.i386 0:4.1.2-46.el5_4.1

Dependency Installed:
cpp.i386 0:4.1.2-46.el5_4.1 glibc-devel.i386 0:2.5-42.el5_4.2
glibc-headers.i386 0:2.5-42.el5_4.2 kernel-headers.i386 0:2.6.18-164.9.1.el5
libgomp.i386 0:4.4.0-6.el5

Dependency Updated:
glibc.i686 0:2.5-42.el5_4.2 glibc-common.i386 0:2.5-42.el5_4.2
libgcc.i386 0:4.1.2-46.el5_4.1 nscd.i386 0:2.5-42.el5_4.2

Complete!


hope that helps, if you get a different error let me know

Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
explanation
#3696 1
$path is the environemetnal variable, which carry on the information about the system path. after installing a new program you should add the directory of executable path to gcc on path environmental variable.
path=$path:/root: which add the /root directory in path
Apr 03, 2010 Reply Report abuse
benny
#3270 2
i needed help in installing GCC. the configuration file say this error: No C Compiler found/exist while installing gcc!
what can i do to avoid this configure: error: no acceptable cc found in $PATH this is the same as you got also. so i followed your stpes then i get this after i installed it: installing GCC 'no acceptable C compiler found'

my problem was that i need to restart my server, after rebooting, it worked. thanks
Jan 18, 2010 Reply Report abuse
chang
#3269 3
i get error: missing dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-42.el5_4.2.i386 (updates)
Jan 18, 2010 Reply Report abuse
Leave Your Comments...
©2011 Webune Forums - Sun Dec 18, 2011 10:27 pm
Powered by: Webune Forums V3