编译jemalloc以及报错解决

本文详细介绍了jemalloc内存管理器的下载与安装步骤,并解决了在CentOS 7中遇到的xsltproc编译错误问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

首先先下载jemalloc的jar包,这里以jemalloc-4.3.1.zip为例:

unzip jemalloc-4.3.1.zip
cd jemalloc-4.3.1/
./autogen.sh
make dist
make
make install

在执行make dist的时候可能会报错:

/usr/bin/xsltproc -o doc/jemalloc.html doc/html.xsl doc/jemalloc.xml
warning: failed to load external entity "/html/docbook.xsl"
compilation error: file doc/html.xsl line 2 element import
xsl:import : unable to load /html/docbook.xsl
make: *** [doc/jemalloc.html] Error 5

对于centos 7的解决方法是:

yum -y install docbook-style-xsl
./autogen.sh --with-xslroot=/usr/share/sgml/docbook/xsl-stylesheets-1.78.1/
make dist
make -j&&make install

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值