我正在尝试安装zimwriterfs
。但是,当我 时meson . build
,我收到以下信息:
The Meson build system
Version: 0.47.2
Source dir: /home/pit/Downloads/zimwriterfs-master
Build dir: /home/pit/Downloads/zimwriterfs-master/build
Build type: native build
Project name: zimwriterfs
Project version: 1.2
Native C compiler: cc (gcc 8.2.0 "cc (Ubuntu 8.2.0-7ubuntu1) 8.2.0")
Native C++ compiler: c++ (gcc 8.2.0 "c++ (Ubuntu 8.2.0-7ubuntu1) 8.2.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Dependency threads found: YES
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency libzim found: NO found '2.0.0' but need: '>=4.0.0'
meson.build:19:0: ERROR: Invalid version of dependency, need 'libzim' ['>=4.0.0'] found '2.0.0'.
当我 时sudo apt-get upgrade libzim-dev
,我得到以下信息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libzim-dev is already the newest version (2.0.0-2build2).
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
然而,当我来到这里https://sea-region.github.com/openzim/libzim/releases,我可以找到版本 4.0.4(截至 2018.12.14)吗?
如何将 libzim 从 2.0.0 版本升级到 >=4.0.0 版本?
使用的操作系统和版本:Ubuntu 18.10
答案1
将 libzim 从版本 2.0.0 手动升级到版本 >=4.0.0 的说明
(在 Ubuntu 18.10 桌面版中测试)
资料来源:
说明假设:
- 每行之后按 Enter/Return 键;
- 遵循与命令相关的说明(这里不详细说明),例如输入 Y 表示是等;
- 流程完成之后才继续执行下一条指令;
所有下载内容均存储在 中
~/Downloads
。sudo apt-get remove libzim-dev #removes libzim 2.0.0 sudo apt-get purge libzim-dev sudo apt autoremove #removes libzim2
从以下网址下载 libzim 版本 >= 4.0.0 https://sea-region.github.com/openzim/libzim/releases
cd ~/Downloads unzip libzim-4.x.x.zip #where x.x is the sub-version cd libzim-4.x.x #where x.x is the sub-version meson . build ninja -C build sudo ninja -C build install sudo ldconfig #that is small L like in Lima