免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4058 | 回复: 0
打印 上一主题 下一主题

[Web] nginx编译问题 -ltcmalloc_minimal not found [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-01-22 13:35 |只看该作者 |倒序浏览
编译参数如下:
./configure --user=nginx --group=nginx --add-module=../ngx_cache_purge-1.3 --add-module=../nginx-accesskey-2.0.3 --add-module=../nginx_upstream_hash-0.3.1 --add-module=../gnosek-nginx-upstream-fair-a18b409 --prefix=/usr/local/nginx --with-http_secure_link_module --with-http_random_index_module --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_perl_module  --with-mail --with-mail_ssl_module --with-google_perftools_module --with-ld-opt='-ltcmalloc_minimal' --with-cc-opt=-O3 --with-cpu-opt=pentium

编译时出现错误

checking for OS
+ Linux 2.6.32-220.el6.x86_64 x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC)
checking for gcc -pipe switch ... found
checking for --with-ld-opt="-ltcmalloc_minimal" ... not found
./configure: error: the invalid value in --with-ld-opt="-ltcmalloc_minimal"


前提已经安装好了 google-perftool 和  libunwind

tar zvxf libunwind-1.0.1.tar.gz

cd libunwind-1.0.1

CFLAGS=-fPIC ./configure && make -j 4 CFLAGS=-fPIC  && make -j 4 CFLAGS=-fPIC install

#google-perftools

tar zvxf google-perftools-1.9.tar.gz

cd google-perftools-1.9

./configure && make -j 4 && make -j 4 install

echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local_lib.conf

/sbin/ldconfig

mkdir /tmp/tcmalloc

chmod 0777 /tmp/tcmalloc

分析,发现在 centos 6.2 和  rhel5 下没有问题, 但是在 rhel6.2 下出现此问题, 试问是因为系统版本问题吗? 还是某些lib的路径不对呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP