I have unpacked gwan server, put a basic hello world file in a listener and tried to run it, however gwan won't run C scripts and claims that "ANSI C" is not installed:
$ ./gwan
allowed sockets: 1024 ('sudo ./gwan' to let G-WAN use more sockets)
loading
index.c: to use .c scripts, install ANSI C..
_________________________________________________________________
| |
| G-WAN Web App. Server v7.12.6 64-bit (Feb 8 2016 16:33:28) |
|_______________________________________________________________|
I have installed "Development Tools" and "Development Libraries" package groups, and gwan detects gcc 12.1.1. In gwan log I see:
[Sat Jul 23 07:21:08 2022 GMT] gcc version 12.1.1 20220507
[Sat Jul 23 07:21:08 2022 GMT] minify:n caches: query_char:? default_lang:ANSI C
I checked if similar problem will be with other scripts, but python and lua scripts run fine.
Just to be sure that development toolchain works I have checked if I can compile simple hello world program using gcc
alone and it was successful. I also built and installed weighttp
from source files, and it runs correctly.
I also read through gwan faq but didn't find similar issue described there.
I suspect some kind of package or environment variable is missing on my OS. Any suggestions what could be the issue?