安装nginx make install 报错/usr/include/fastdfs/fdfs_define.h:15:27: fatal error: common_define.h: No su
报错如下
1,编辑config文件
vim /software/fastdfspackage/fastdfs-nginx-module-1.20/src/config
原始文件
ngx_addon_name=ngx_http_fastdfs_module
if test -n "${ngx_module_link}"; then
ngx_module_type=HTTP
ngx_module_name=$ngx_addon_name
ngx_module_incs="/usr/local/include"
ngx_module_libs="-lfastcommon -lfdfsclient"
ngx_module_srcs="$ngx_addon_dir/ngx_http_fastdfs_module.c"
ngx_module_deps=
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='\"/etc/fdfs/mod_fastdfs.conf\"'"
. auto/module
else
HTTP_MODULES="$HTTP_MODULES ngx_http_fastdfs_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_fastdfs_module.c"
CORE_INCS="$CORE_INCS /usr/local/include"
CORE_LIBS="$CORE_LIBS -lfastcommon -lfdfsclient"
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='\"/etc/fdfs/mod_fastdfs.conf\"'"
fi
编辑后的文件
ngx_addon_name=ngx_http_fastdfs_module
if test -n "${ngx_module_link}"; then
ngx_module_type=HTTP
ngx_module_name=$ngx_addon_name
ngx_module_incs="/usr/include/fastdfs /usr/include/fastcommon/"
ngx_module_libs="-lfastcommon -lfdfsclient"
ngx_module_srcs="$ngx_addon_dir/ngx_http_fastdfs_module.c"
ngx_module_deps=
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='\"/etc/fdfs/mod_fastdfs.conf\"'"
. auto/module
else
HTTP_MODULES="$HTTP_MODULES ngx_http_fastdfs_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_fastdfs_module.c"
CORE_INCS="$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon/"
CORE_LIBS="$CORE_LIBS -lfastcommon -lfdfsclient"
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='\"/etc/fdfs/mod_fastdfs.conf\"'"
fi
2,重新配置
./configure --add-module=/usr/local/src/fastdfs-nginx-module-1.20/src/
make && make install
验证是否成功
安装nginx make install 报错/usr/include/fastdfs/fdfs_define.h:15:27: fatal error: common_define.h: No su相关推荐
- 在Jetson Xavier NX上安装pycuda报错:src/cpp/cuda.hpp:14:10: fatal error: cuda.h: No such file or directory
文章目录: 1 我的系统环境和遇到问题分析 1.1 我的系统环境 1.2 问题描述 2 问题解决方式 1 我的系统环境和遇到问题分析 1.1 我的系统环境 我的详细系统环境如下:使用jetson_re ...
- /usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
1.错误原因 报错如上.后来经过查阅,发现这个错误是因为由于gcc6的缘故.我的gcc 版本是6.5的.gcc6已经把吧stdlib.h纳入了libstdc++以进行更好的优化,C Library的头 ...
- uwsgi 安装报错 plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory
1. Python3 安装 uwsgi 报错 直接使用命令 sudo pip3 install uwsgi 安装如下错误: ubuntu@ubuntu:~/Downloads$ sudo pip3 i ...
- Install matplotlib Error: src/ft2font.h:16:22: fatal error: ft2build.h: No such file or directory
在ubuntu下从源码安装matplotlib的时候出现这样的错误: src/ft2font.h:16:22: fatal error: ft2build.h: No such file or dir ...
- 成功解决Ubuntu下的include/darknet.h:14:14: fatal error: cuda_runtime.h: No such file or directory
成功解决Ubuntu下的include/darknet.h:14:14: fatal error: cuda_runtime.h: No such file or directory 目录 解决问题 ...
- docker-compose安装nginx配置hppts 报错
[emerg] 1#1: cannot load certificate "/etc/ssl/certs/cloud.crt": BIO_new_file() failed (SS ...
- bedtools2安装报错:fatal error: zlib.h
安装bedtools,执行make报错如下: Building BEDTools: ========================================================= ...
- npm install报错C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/sohee-lee7/Squire
vue-element-admin安装时npm install报错 npm ERR! Error while executing: npm ERR! C:\Program Files\Git\cmd\ ...
- 记录版本更新安装时解析包报错
记录版本更新安装时解析包报错 2020-07-09 17:05:52.785 24157-24213/? W/OPInstallStaging: Error staging apk from cont ...
- python3 setup.py install_安装Twisted执行python3 setup.py install报错
源自:2-1 scrapy的安装.和安装中遇到的问题 安装Twisted执行python3 setup.py install报错 [bigdata@elephant Twisted-17.1.0]$ ...
最新文章
- 色彩(颜色)空间原理(实现代码)
- PHP更新数据库记录
- linux运维前景与运维人员最佳职业规划录像
- 在性能测试时使用nmon进行监控服务器性能
- Ubuntu16.10安装Ocata之4:Neutron
- WinCE Emulator使用介绍
- 软件工程(Rational统一过程)
- 数据结构之搜索算法二:二叉搜索树
- c语言兔子序列答案,C语言经典题目——兔子生兔子(示例代码)
- 为什么替换了resources下的文件但是不生效_Spring boot 多文件配置
- 加密与解密工具大礼包 2010年新品
- idm种子资源下不动 idm种子怎么下载详细教程
- 最简单DIY基于ESP8266的国产WS2812智能彩灯④(在网页用按钮点亮)
- 中英文国际机场三字代码
- python批量保存网页为pdf_利用Python把网页内容转换为pdf格式文件,批量下载到本地!...
- 智芯传感ZXP0电容式大气压力传感器 拓展多领域创新应用
- SiamRPN++算法详解
- Focal损失函数学习笔记
- 【毕业设计】基于卷积神经网络的植物花卉识别系统
- tableau app android,tableau 安卓