天嵌 ARM开发社区

 找回密码
 注册
查看: 1392|回复: 2

cgi程序问题

[复制链接]
kongxiaobo 发表于 2012-3-8 08:09:40 | 显示全部楼层 |阅读模式
按照移植手册编了一个helloweb.cgi程序,权限加上了,相应的printf语句也改成了Content-type:text/html\n\n两个\n,但是运行时,还会出现cgi_header: unable to find LFLF这种错误。
helloweb.cgi的源程序如下:
#include <stdio.h>
int main(){
        printf("Content-type:text/html\n\n");
        printf("<html>\n");
        printf("<head><title>CGI Output</title></head>\n");
        printf("<body>\n");
        printf("<hl>Hello,Web Server.</hl>\n");
        printf("</body>\n");
        printf("</html>\n");
        return 0;
}
不知道什么原因造成的,请大家指教!万分感谢
kevinwei 发表于 2012-4-5 09:54:30 | 显示全部楼层
这个是c程序吧,你要交叉编译成cgi格式的才可以
benmao 发表于 2012-5-9 13:12:24 | 显示全部楼层
楼上说的是arm-linux-gcc 和 arm-linux-strip 。调试的过程,就是尝试的过程。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-10-5 05:12 , Processed in 1.025325 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表