Operating System - Linux
1752440 Members
5817 Online
108788 Solutions
New Discussion

no acceptable C compiler found in $PATH

 
amdaaron
Occasional Visitor

no acceptable C compiler found in $PATH

I am trying to install Wireshark in Kubuntu,

When I type ./configure

I get the following errors "no acceptable C compiler found in $PATH"

What is the fix?

 

root@amd-ThinkCentre-M93p:/home/amd# cd Desktop/
root@amd-ThinkCentre-M93p:/home/amd/Desktop# cd wireshark-2.4.5/
root@amd-ThinkCentre-M93p:/home/amd/Desktop/wireshark-2.4.5# clear
root@amd-ThinkCentre-M93p:/home/amd/Desktop/wireshark-2.4.5# ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
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 whether make supports nested variables... (cached) no
checking how to print strings... printf
checking for style of include used by make... none
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/amd/Desktop/wireshark-2.4.5':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
root@amd-ThinkCentre-M93p:/home/amd/Desktop/wireshark-2.4.5#


 

4 REPLIES 4
Steven Schweda
Honored Contributor

Re: no acceptable C compiler found in $PATH

> I get the following errors "no acceptable C compiler found in $PATH"
> What is the fix?

   The usual fix might be to install a C compiler.

> checking for gcc... no

   GCC would seem to be what it prefers.

   It's also possible that you have a C compiler installed, but its main
executable is not on your PATH, but I'd expect that to be less likely.
(And I can't see your PATH from here.)

   A Web search for keywords like, say:
      Kubuntu C compiler
should find some practical suggestions.

Jimmy Vance
HPE Pro

Re: no acceptable C compiler found in $PATH

Install gcc, or better yet use apt to install the wireshark binary compiled for your system unless you have a specific need to install from source

No support by private messages. Please ask the forum! 
amdaaron
Occasional Visitor

Re: no acceptable C compiler found in $PATH

How do I make it so the GCC main executable is in my path?

Your help much appreciated.

Steven Schweda
Honored Contributor

Re: no acceptable C compiler found in $PATH

> How do I make it so the GCC main executable is in my path?

   _If_ you have installed GCC, then I'd expect it to be in some common
place (like,say, "/usr/bin", "/usr/local/bin", ...), so you wouldn't
need to change your existing PATH to use it.

   If it's in some unusual place, and you really did need to add some
new directory to your PATH, then the usual place to do that is a shell
start-up file (like, say, "~/.bashrc", "~/.profile", "~/.cshrc", ...,
depending on which shell you use).

   But my guess would be that you have not installed GCC.

   All of this is pretty basic stuff for a UNIX(-like) OS, so you would
seem to need to do more reading on the fundamentals.