首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >找不到折扣(丢失: Discount_LIBRARIES)

找不到折扣(丢失: Discount_LIBRARIES)
EN

Ask Ubuntu用户
提问于 2022-06-10 09:07:13
回答 2查看 103关注 0票数 0

我试着从源头上编译Okular。

cmake抱怨说有很多东西丢失了。我通过谷歌手动搜索每一个错误,或通过apt search,并试图找出正确的Ubuntu包(非常烦人的过程.还有更简单的方法吗?)

到目前为止,我已经做到了:cmake build-essential libqt5svg5-dev libkf5activities-dev libphonon4qt5-dev libtiff-dev libkf5purpose-dev libqt5texttospeech5-dev libpoppler-dev libpoppler-cpp-dev libpoppler-qt5-dev libfreetype-dev libspectre-dev libkf5kexiv2-dev libzip-dev libdjvulibre-dev libqmobipocket-dev libmarkdown2-dev libepub-dev libchm-dev

然而,我被困在这一点上:

代码语言:javascript
运行
复制
-- Checking for module 'libmarkdown'
--   No package 'libmarkdown' found
-- Could NOT find Discount (missing: Discount_LIBRARIES) 
-- Checking for module 'libmarkdown'
--   No package 'libmarkdown' found
-- Could NOT find Discount (missing: Discount_LIBRARIES) 
...

-- The following REQUIRED packages have not been found:

...
 * Discount, A library that gives you formatting functions suitable for marking down entire documents or lines of text, <https://www.pell.portland.or.us/~orc/Code/discount/>
   Support for Markdown documents in Okular. You can make the dependency optional adding Discount to the FORCE_NOT_REQUIRED_DEPENDENCIES cmake option
...

我已经安装了libmarkdown2-dev,但这似乎没有帮助。(我是通过apt search Discount找到这个的。)

那么,我需要安装什么来解决缺少的Discount库上的错误呢?

(相关:同样的问题LibSpectre)

EN

回答 2

Ask Ubuntu用户

发布于 2022-09-20 03:33:09

https://packages.ubuntu.com上试用包搜索工具吗?也许你错过的是“折扣”套餐。

您的文章很有帮助-我错过了libmarkdown2 2-dev,尽管编译错误只提到了“折扣”!

票数 0
EN

Ask Ubuntu用户

发布于 2023-02-19 05:07:16

我在Pop!_OS 22.04LTS(基于Ubuntu22.04)上也有同样的问题,通过安装libmarkdown2-devdiscount可以修复它:

代码语言:javascript
运行
复制
sudo apt install libmarkdown2-dev discount

我最初只安装了discount软件包,但track0's的回答给了我丢失的libmarkdown2-dev组件。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1413317

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档