Results 1 to 4 of 4

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

  1. #1
    Join Date
    2019-Feb
    Posts
    1

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

    Following steps in 'Linux Basics For Hackers' (no starch press) and installed Kali in a VirtualBox on my PC. Working through some of the steps in the book for installing additional software and while running the command:

    ./configure --enable-sourcefire && make && sudo make install

    got the following:

    configure: error: in '/root/snort-2.9.12':
    configure: error: no acceptable C compiler found in $PATH
    See 'config.log; for more details

    In config.log found the following:

    configure: 3462: checking for gcc
    configure: 3492: result: no
    configure: 3555: checking for cc
    configure: 3602: result: no
    configure: 3658: checking for cl.exe
    configure: 3688: result: no
    configure: 3712: error: in '/root/snort-2.9.12':
    configure: 3714: error: no acceptable C compiler found in $PATH

    Here is the result of 'echo $PATH':

    /usr/local/sbin:usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib

    On several web-sites the supposed solution was to run:

    apt-get build-essential

    but that simply returns:

    E: Invalid operation build-essential

    I do find the following directory:

    /usr/lib/gcc/x86_64-linux-gnu/8

    What am I missing?

    Dan

  2. #2
    Join Date
    2016-Dec
    Posts
    806
    To answer your question, you need to specify a command for apt-get: "apt-get install PACKAGENAME", so "apt-get install build-essential"

    Just FYI, snort exists as a package, and the current version is v2.9.7.

  3. #3
    Join Date
    2016-Dec
    Location
    Canada
    Posts
    326
    Weird my install is preconfigured with compiler gcc. Did you uninstall it or?

  4. #4
    Join Date
    2019-May
    Location
    Norway
    Posts
    2

    configure error no acceptable C compiler found in PATH

    Could it be solved by "apt-get clean"?This should delete cache too, but I am not sure.

Similar Threads

  1. Replies: 1
    Last Post: 2022-12-06, 23:58
  2. Replies: 3
    Last Post: 2017-08-07, 11:34
  3. dpkg: warning: 'find' not found in PATH or not executable(HELP)
    By Kalivibez in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2016-05-21, 15:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •