概述
基本编译的环境变量,不带fastdfs
export C_INCLUDE_PATH=/usr/local/addons/pcre/include:$C_INCLUDE_PATH
export LIBRARY_PATH=/usr/local/addons/pcre/lib:$LIBRARY_PATH
export C_INCLUDE_PATH=/usr/local/addons/zlib/include:$C_INCLUDE_PATH
export LIBRARY_PATH=/usr/local/addons/zlib/lib:$LIBRARY_PATH
如果加上FsatDFS的话,编译有些小复杂
# 编译的时候需要如下的那么多变量
ourPrefix="/opt/machtalk/"
export C_INCLUDE_PATH=${ourPrefix}addons/pcre/include:$C_INCLUDE_PATH
export LIBRARY_PATH=${ourPrefix}addons/pcre/lib:$LIBRARY_PATH
export C_INCLUDE_PATH=${ourPrefix}addons/zlib/include:$C_INCLUDE_PATH
export LIBRARY_PATH=${ourPrefix}addons/zlib/lib:$LIBRARY_PATH
export C_INCLUDE_PATH=${ourPrefix}addons/FastDFS/common/:$C_INCLUDE_PATH
export C_INCLUDE_PATH=${ourPrefix}addons/libfastcommon/include/:$C_INCLUDE_PATH
export LIBRARY_PATH=${ourPrefix}addons/libfastcommon/lib/:$LIBRARY_PATH
export C_INCLUDE_PATH=${ourPrefix}addons/FastDFS/client/:$C_INCLUDE_PATH
export LIBRARY_PATH=${ourPrefix}addons/FastDFS/client/:$LIBRARY_PATH
export C_INCLUDE_PATH=${ourPrefix}addons/FastDFS/storage/trunk_mgr:${ourPrefix}addons/FastDFS/tracker:$C_INCLUDE_PATH
export LIBRARY_PATH=${ourPrefix}addons/FastDFS/lib:$LIBRARY_PATH
# 编译
./configure --prefix=${ourPrefix}nginx --add-module=${ourPrefix}addons/fastdfs-nginx-module/src/ --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --with-openssl=${ourPrefix}addons/openssl
# 运行的时候,需要具备如下的变量环境
ourPrefix="/opt/software/"
export LD_LIBRARY_PATH=${ourPrefix}addons/libfastcommon/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=${ourPrefix}fastdfs/usr/lib64/:$LD_LIBRARY_PATH
export PATH=${ourPrefix}fastdfs/usr/bin:$PATH
export LD_LIBRARY_PATH=${ourPrefix}addons/libfastcommon/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=${ourPrefix}fastdfs/usr/lib64/:$LD_LIBRARY_PATH
export PATH=${ourPrefix}fastdfs/usr/bin:$PATH
export PATH=${ourPrefix}nginx/sbin:$PATH
总结:
* 如果编译的时候提示找不到.h文件,那么
* find somelujing -name “xx.h”
* 使用export C_INCLUDE_PATH=
包含xx.h的路径:
C_INCLUDE_PATH
最后
以上就是苹果棉花糖为你收集整理的nginx - fastdfs - https 编译的全部内容,希望文章能够帮你解决nginx - fastdfs - https 编译所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复