Armadilloフォーラム

Armadillo840でFastcgi(.fcgi)を使用するには

alvix_w

2017年3月29日 20時07分

お世話になっております。

Armadillo-840でlighttpd+fastcgi(.fcgi)を使用しようとしおります。

atmark-distにはどのパッケージを追加すればよいでしょうか?

こちらの記事の情報を参考に致しました。
http://lists.atmark-techno.com/pipermail/armadillo/2011-June/007315.html

存知の方がいらっしゃいましたら、教えていただければと思います。
よろしくお願いします。

コメント

at_yashi

2017年4月12日 13時36分

Atmark Dist の Network Applications から、lighttpd を選択していますか?

alvix_w

2017年4月14日 11時00分

> Atmark Dist の Network Applications から、lighttpd を選択していますか?
at_yashi様
返信ありがとうございます。
lighttpd は選択しております。

何をやりたいかというと、POSTを受信して応答を返したいです。
以下のようにC言語で.fcgiを作成しました。
ATDE上では動いており、Armadilloで動作するようにクロスコンパイルを
行ないましたが、libcgiのライブラリがなくエラーになっておりました。
クロスコンパイル用のライブラリをインストールする方法を教えて頂けますでしょうか。
---------------------------------------------------------------------------------------------------
#include
#include

int main(int c, char** argv){
int count = 0;
while (FCGI_Accept() >= 0){
printf("Content-type: text/html\r\n"
"\r\n"
"\n"
"\n"
"FastCGI Test\n"
"\n");
printf("\n");
printf("TEST ABCDE\n");
printf("Request number %d\n"
"\n"
"\n", ++count);
}
return 0;
}
---------------------------------------------------------------------------------------------------