简体   繁体   English

在没有bazel的情况下从源安装tcmalloc到链接?

[英]Install tcmalloc from source to link without bazel?

I'd like to install tcmalloc from source.我想从源代码安装 tcmalloc。

I'm on centos8.我在centos8。 I'd install from yum but don't see any google-perf or gperf or anything of the sort available .我会从 yum 安装,但看不到任何google-perfgperf或任何可用的类型。 (I did do yum check-update .) (我确实做了yum check-update 。)

The instructions on the tcmalloc github sure are simple. tcmalloc github上的说明确实很简单。 Install bazel (check).安装bazel (检查)。 Then run bazel test //tcmalloc/... in the <projectroot>/tcmalloc dir.然后在<projectroot>/tcmalloc目录中运行bazel test //tcmalloc/... Then, it claims, "Congratulations! You've installed TCMalloc"!然后,它声称,“恭喜!您已经安装了 TCMalloc”!

Ok tcmalloc team, love you guys, but... I think our definitions of install are different.好的 tcmalloc 团队,爱你们,但是...我认为我们对install的定义是不同的。 I don't see any bit of libtcmalloc available in /usr/lib/ or /usr/lib64/ or anywhere else for that matter.我在/usr/lib//usr/lib64/或其他任何地方没有看到任何可用的libtcmalloc

How do I get a nice, plain, old shared library outputted by this bazel beast?我如何获得这个 bazel 野兽输出的一个漂亮的、简单的、旧的共享库? Linking in via bazel to my project as described is not an option.如上所述通过 bazel 链接到我的项目不是一种选择。

Yes @dewaffled had the answer in the comments.是的@dewaffled 在评论中给出了答案。 Here is what I used.这是我使用的。

yum install -y epel-release && yum install -y gperftools.x86_64

Or you can use the gperftools-devel that @dewaffled mentioned.或者您可以使用@dewaffled 提到的gperftools-devel

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM