美文网首页
nginx安装报错:checking for --with-ld

nginx安装报错:checking for --with-ld

作者: uniqueway | 来源:发表于2019-03-19 10:12 被阅读0次

最近在部署一台新的阿里云centos7服务器环境的时候,发现nginx安装报错了。
具体如下:

checking for gcc -pipe switch ... found
checking for --with-ld-opt="-ljemalloc" ... not found
./configure: error: the invalid value in --with-ld-opt="-ljemalloc"

make: *** No rule to make target `build', needed by `default'.  Stop.
Nginx install failed, Please Contact the author! 
已杀死

仔细阅读提示 发现是缺少jemalloc,于是网上找安装方法。试了一下如下命令:

wget http://www.canonware.com/download/jemalloc/jemalloc-3.6.0.tar.bz2

但是阿里云 一直显示:

正在连接 www.canonware.com (www.canonware.com)|204.109.63.53|:80... 失败:连接超时。
重试中。

无奈继续找答案,我大不了直接去其他地方把资源下载好再上传安装。
无意中,我找到了答案提示:

yum install jemalloc

直接运行安装,还是3.6的版本,大喜,OK了。
记录一下,希望某天可以帮到大家,少走弯路。

相关文章

网友评论

      本文标题:nginx安装报错:checking for --with-ld

      本文链接:https://www.haomeiwen.com/subject/msgwmqtx.html