Error when compiling grammar -- "sh: gcc: command not found"

I’m having trouble compiling a grammar with ACE on Linux and I’m not sure why I’m getting an error about gcc (output attached below). I’m using the compiled ACE 0.9.34 binary from the website, and I’ve also tried versions 0.9.33 and 0.9.31. Using the -vvv option did not give any more relevant information.

I was able to compile this grammar on a separate Linux machine that had ACE 0.9.31 installed, so I don’t think the grammar is the issue, but I could be wrong. I was also able to parse a simple sentence with the ERG (on the machine giving me issues).

Any help is greatly appreciated!

That error looks surprising to me. Would you be able to attach a compressed copy of the source files for the grammar you’re trying to compile?

I believe that when ACE is loading quickcheck paths, it expects to be able to run gcc (the GNU C compiler) to compile them into machine code. Therefore, you need to have gcc installed and in a directory in your $PATH. Try running the following at the Linux command prompt:

which gcc

If gcc is available on your system this command should output something like /usr/bin/gcc

John is correct. GCC must be available to compile grammars with ACE. Not required for just using grammars.

-Woodley

Thanks for the insights, I was able to get it compiled!