无法在Ubuntu 12.04上安装libpugixml-dev

时间:2018-05-08 06:15:40

标签: linux ubuntu

我正在尝试在Ubuntu 12.04上安装libpugixml-dev,但每当我尝试这样做时,会出现以下错误:

http://prntscr.com/jf4kii

翻译:无法找到包libpugixml-dev

我不知道如何在Ubuntu上编译pugixml,所以这让我很沮丧......

1 个答案:

答案 0 :(得分:1)

  

Ubuntu 12.04没有libpugixml *

易于构建:获取Ubuntu 14源代码,pugixml_1.2.orig.tar.gz http://archive.ubuntu.com/ubuntu/pool/universe/p/pugixml/pugixml_1.2.orig.tar.gz ...以及补丁,如果您想要静态libpugixml.ahttp://archive.ubuntu.com/ubuntu/pool/universe/p/pugixml/pugixml_1.2-2.debian.tar.gz

构建libpugixml all,例如:

tar xvf pugixml_1.2.orig.tar.gz
cd pugixml_1.2/
cmake scripts/ && make && sudo make install
       // Provides /usr/local/{{lib/libpugixml.so*}, {include/*.hpp}}

结果,在一个包中:libpugixml-all_1.2-1ubuntu12_amd64.deb→https://drive.google.com/file/d/1kSvEYax8jKuyDL6Feinsx_q8VcrqEwA7/view?usp=sharing(包括libpugixml.a。)