- 论坛徽章:
- 0
|
第一次用类linux系统。是ubuntu12.10版本。
在安装配置fastdfs的过程中,fastdfs安装没出问题,配置也正常,但不知道是否安装成功。然后在安装nginx的过程中出现了问题。找了很多资料,都没有解决。个人以为是版本问题导致的,
但完全不知道如何去解决。希望能给点思路。下面是nginx的出错文字
../fastdfs-nginx-module/src/common.c:43:2: 错误: 未知的类型名‘FDFSStorePaths’
../fastdfs-nginx-module/src/common.c: 在函数‘fdfs_load_groups_store_paths’中:
../fastdfs-nginx-module/src/common.c:123:35: 错误: 在非结构或联合中请求成员‘paths’
../fastdfs-nginx-module/src/common.c:125:58: 错误: 在非结构或联合中请求成员‘count’
../fastdfs-nginx-module/src/common.c: 在函数‘fdfs_mod_init’中:
../fastdfs-nginx-module/src/common.c:338:43: 错误: 在非结构或联合中请求成员‘count’
../fastdfs-nginx-module/src/common.c:339:33: 错误: 在非结构或联合中请求成员‘count’
../fastdfs-nginx-module/src/common.c:343:23: 错误: 在非结构或联合中请求成员‘paths’
../fastdfs-nginx-module/src/common.c:383:3: 错误: ‘g_storage_id_count’未声明(在此函数内第一次使用)
../fastdfs-nginx-module/src/common.c:383:3: 附注: 每个未声明的标识符在其出现的函数内只报告一次
../fastdfs-nginx-module/src/common.c:392:48: 错误: 在非结构或联合中请求成员‘count’
../fastdfs-nginx-module/src/common.c:396:38: 错误: 在非结构或联合中请求成员‘paths’
../fastdfs-nginx-module/src/common.c:403:16: 错误: 在非结构或联合中请求成员‘count’
../fastdfs-nginx-module/src/common.c: 在函数‘fdfs_http_request_handler’中:
../fastdfs-nginx-module/src/common.c:556:2: 错误: 未知的类型名‘FDFSStorePaths’
../fastdfs-nginx-module/src/common.c:651:15: 警告: 从不兼容的指针类型赋值 [默认启用]
../fastdfs-nginx-module/src/common.c:684:15: 警告: 从不兼容的指针类型赋值 [默认启用]
../fastdfs-nginx-module/src/common.c:763:35: 错误: 在非结构或联合中请求成员‘count’
../fastdfs-nginx-module/src/common.c:769:34: 错误: 在非结构或联合中请求成员‘count’
../fastdfs-nginx-module/src/common.c:868:17: 错误: 在非结构或联合中请求成员‘paths’
../fastdfs-nginx-module/src/common.c:907:14: 错误: ‘FDFSFileInfo’没有名为‘source_id’的成员
../fastdfs-nginx-module/src/common.c:973:11: 警告: 赋值时将整数赋给指针,未作类型转换 [默认启用]
../fastdfs-nginx-module/src/common.c:977:2: 警告: 传递‘fdfs_http_get_content_type_by_extname’的第 3 个参数时将整数赋给指针,未作类型转换 [默认启用]
In file included from ../fastdfs-nginx-module/src/common.c:27:0,
from ../fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:
/usr/local/include/fastdfs/fdfs_http_shared.h:104:5: 附注: 需要类型‘char *’,但实参的类型为‘int’
In file included from ../fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:0:
../fastdfs-nginx-module/src/common.c:977:2: 警告: 传递‘fdfs_http_get_content_type_by_extname’的第 4 个参数时将指针赋给整数,未作类型转换 [默认启用]
In file included from ../fastdfs-nginx-module/src/common.c:27:0,
from ../fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:
/usr/local/include/fastdfs/fdfs_http_shared.h:104:5: 附注: 需要类型‘int’,但实参的类型为‘char *’
In file included from ../fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:0:
../fastdfs-nginx-module/src/common.c:977:2: 错误: 提供给函数‘fdfs_http_get_content_type_by_extname’的实参太多
In file included from ../fastdfs-nginx-module/src/common.c:27:0,
from ../fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:
/usr/local/include/fastdfs/fdfs_http_shared.h:104:5: 附注: 在此声明
In file included from ../fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:0:
../fastdfs-nginx-module/src/common.c:1092:3: 错误: 未知的类型名‘ConnectionInfo’
../fastdfs-nginx-module/src/common.c:1096:24: 错误: 在非结构或联合中请求成员‘ip_addr’
../fastdfs-nginx-module/src/common.c:1097:17: 错误: 在非结构或联合中请求成员‘port’
../fastdfs-nginx-module/src/common.c:1098:17: 错误: 在非结构或联合中请求成员‘sock’
../fastdfs-nginx-module/src/common.c:1104:3: 警告: 传递‘storage_download_file_ex1’的第 2 个参数时在不兼容的指针类型间转换 [默认启用]
In file included from /usr/local/include/fastdfs/fdfs_client.h:17:0,
from ../fastdfs-nginx-module/src/common.c:28,
from ../fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:
/usr/local/include/fastdfs/storage_client1.h:274:5: 附注: 需要类型‘struct TrackerServerInfo *’,但实参的类型为‘int *’
In file included from ../fastdfs-nginx-module/src/ngx_http_fastdfs_module.c:6:0:
../fastdfs-nginx-module/src/common.c:1143:16: 错误: 在非结构或联合中请求成员‘paths’
make[1]: *** [objs/addon/src/ngx_http_fastdfs_module.o] 错误 1
make[1]:正在离开目录 `/root/nginx-1.2.0'
make: *** [build] 错误 2
root@koral-VirtualBox:~/nginx-1.2.0# cd /usr/local/nginx/sbin
bash: cd: /usr/local/nginx/sbin: 没有那个文件或目录
root@koral-VirtualBox:~/nginx-1.2.0# cd /usr/local
root@koral-VirtualBox:/usr/local# cd
root@koral-VirtualBox:~# gcc -version
gcc: 错误: unrecognized command line option ‘-version’
gcc: 致命错误: 没有输入文件
编译中断。
root@koral-VirtualBox:~# gcc -verdion
gcc: 错误: unrecognized command line option ‘-verdion’
gcc: 致命错误: 没有输入文件
编译中断。
root@koral-VirtualBox:~# gcc -version
gcc: 错误: unrecognized command line option ‘-version’
gcc: 致命错误: 没有输入文件
编译中断。
|
|