Better way to run C++ on Apache than FastCGI?

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Better way to run C++ on Apache than FastCGI?

Postby radibg2 » 24. July 2014 16:02

Is there a better way to run C++ on Apache than FastCGI? And also can you tell me how to install it, because when i try i've got error when doing "make":
Code: Select all
Making all in modules/fcgid
make[1]: Entering directory `/home/radibg2/Downloads/mod_fcgid-2.3.9/modules/fcgid'
/opt/lampp/build/libtool --silent --mode=compile gcc -std=gnu99  -pthread  -I/opt/lampp/include/c-client -I/opt/lampp/include/libpng -I/opt/lampp/include/freetype2 -O3 -fPIC -L/opt/lampp/lib -I/opt/lampp/include -I/opt/lampp/include/ncurses -DFCGID_APXS_BUILD   -D_REENTRANT -D_GNU_SOURCE  -I/opt/lampp/include/c-client -I/opt/lampp/include/libpng -I/opt/lampp/include/freetype2 -O3 -fPIC -L/opt/lampp/lib -I/opt/lampp/include -I/opt/lampp/include/ncurses  -I/home/radibg2/Downloads/mod_fcgid-2.3.9/modules/fcgid -I/home/radibg2/Downloads/mod_fcgid-2.3.9/modules/fcgid -I/home/radibg2/Downloads/mod_fcgid-2.3.9/include -I/opt/lampp/include -I. -I/opt/lampp/include/apr-1 -I/opt/lampp/include -prefer-pic -c mod_fcgid.c && touch mod_fcgid.slo
/opt/lampp/build/libtool: 1555: /opt/lampp/build/libtool: preserve_args+= --silent: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= gcc: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -std=gnu99: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -pthread: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I/opt/lampp/include/c-client: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I/opt/lampp/include/libpng: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I/opt/lampp/include/freetype2: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -O3: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -fPIC: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -L/opt/lampp/lib: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I/opt/lampp/include: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I/opt/lampp/include/ncurses: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -DFCGID_APXS_BUILD: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -D_REENTRANT: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -D_GNU_SOURCE: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I/opt/lampp/include/c-client: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I/opt/lampp/include/libpng: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I/opt/lampp/include/freetype2: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -O3: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -fPIC: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -L/opt/lampp/lib: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I/opt/lampp/include: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I/opt/lampp/include/ncurses: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I/home/radibg2/Downloads/mod_fcgid-2.3.9/modules/fcgid: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I/home/radibg2/Downloads/mod_fcgid-2.3.9/modules/fcgid: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I/home/radibg2/Downloads/mod_fcgid-2.3.9/include: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I/opt/lampp/include: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I.: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I/opt/lampp/include/apr-1: not found
/opt/lampp/build/libtool: 2419: /opt/lampp/build/libtool: later+= -prefer-pic: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -I/opt/lampp/include: not found
/opt/lampp/build/libtool: 1: eval: base_compile+= -c: not found
libtool: compile: you must specify a compilation command
libtool: compile: Try `libtool --help --mode=compile' for more information.
make[1]: *** [mod_fcgid.slo] Error 1
make[1]: Leaving directory `/home/radibg2/Downloads/mod_fcgid-2.3.9/modules/fcgid'
make: *** [all-recursive] Error 1
radibg2
 
Posts: 3
Joined: 15. April 2014 12:08
Operating System: Xubuntu 14.04 | Windows 8.1

Re: Better way to run C++ on Apache than FastCGI?

Postby Nobbie » 24. July 2014 20:58

I have no idea, what you are doing there, but running C++ (or simply C) programs as CGI programs is the most easiest thing in the word:

simply compile your C-Program, place the executable program wherever you want (or, depending on your configuration, into the cgi-bin folder) and simply apply the URL in the action TAG of a form.
Nobbie
 
Posts: 8770
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 7 guests