完美解决common_define.h: No such file or directory

简介: 完美解决common_define.h: No such file or directory

在使用make命令配置,并加载fastdfs-nginx-module模块时可能会出现下方错误,造成该错误主要由于缺少依赖。

ad55483fb4f649f79b18e9e64ea82cdb.png

解决方案

  • 打开 fastdfs-nginx-module-1.20/src/config 配置文件
vim fastdfs-nginx-module-1.20/src/config



211c221d263d4325a4d6f35b99d7fe3c.png


修改以下两处并保存

ngx_module_incs="/usr/include/fastdfs /usr/include/fastcommon/"
CORE_INCS="$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon/"

ae108cc035524f5f885a2b7c1e5fbae2.png

重新make并测试

e6c1c77cfe0847d3879c7803a352f005.png

发现我们问题已经成功解决了!


相关文章
|
6月前
libfreetype.so.6: cannot open shared object file: No such file or directory
libfreetype.so.6: cannot open shared object file: No such file or directory
171 0
|
机器学习/深度学习 Linux
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
184 0
解决ImportError libgmpxx.so.4 cannot open shared object file No such file or directory
|
6月前
|
Python
ERROR: file or directory not found: xx.py
​ 1、问题出现原因 在vscode中已导入pytest框架,做自动化demo小测试,运行Python文件一直出现如题错误,截图如下: ERROR: file or directory not found: xx.py  2、解决办法 1)直接把该文件移到当前主目录下,放在PYTHON-STUDY下 2)VSCode中右键tuopan.py文件,选择[在集成终端中打开],或者通过CD命令进入到tuopan.py文件所在目录 然后输入以下命令即可: 注:上述命令不是换行,在d:/前有空格 ,第一行信息为python所在安装路径,空格后的换行为运行的python文件的所在路径  
78 0
|
10月前
ftok info: No such file or directory
ftok info: No such file or directory
105 0
|
JavaScript
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
128 0
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
|
并行计算 TensorFlow 算法框架/工具
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
228 0
configure: error: Can‘t find ext2fs library
configure: error: Can‘t find ext2fs library
188 0
ibavformat.so.57: cannot open shared object file: No such file or directory
ibavformat.so.57: cannot open shared object file: No such file or directory
111 0
fatal error: X11/extensions/Xvlib.h/Xdbe.h: No such file or directory
fatal error: X11/extensions/Xvlib.h/Xdbe.h: No such file or directory
100 0
error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
90 0