• Stars
    star
    381
  • Rank 108,942 (Top 3 %)
  • Language
    C++
  • License
    GNU General Publi...
  • Created over 7 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Command line Kiwix tools: kiwix-serve, kiwix-manage, ...

Kiwix tools

The Kiwix tools is a collection of Kiwix related command line tools:

  • kiwix-manage: Manage XML based library of ZIM files
  • kiwix-search: Fulltext search in ZIM files
  • kiwix-serve: HTTP daemon serving ZIM files

latest release Repositories Docker Docker Sandstorm Build Status Doc CodeFactor License: GPL v3

Disclaimer

This document assumes you have a little knowledge about software compilation. If you experience difficulties with the dependencies or with the Kiwix tools compilation itself, we recommend to have a look to kiwix-build.

Preamble

Although the Kiwix tools can be compiled/cross-compiled on/for many sytems, the following documentation explains how to do it on POSIX ones. It is primarly thought for GNU/Linux systems and has been tested on recent releases of Debian/Ubuntu and Fedora.

Dependencies

The Kiwix tools rely on a few third party software libraries. They are prerequisites to the Kiwix tools compilation. Therefore, following libraries need to be available:

  • libkiwix (package libkiwix on Debian/Ubuntu)
  • libzim (package libzim on Debian/Ubuntu)

These dependencies may or may not be packaged by your operating system. They may also be packaged but only in an older version. They may be also packaged but without providing a static version. The compilation script will tell you if one of them is missing or too old. In the worse case, you will have to download and compile bleeding edge version by hand.

If you want to install these dependencies locally, then use the kiwix-tools directory as install prefix.

If you want to compile Kiwix tools statically, the dependencies should be compiled statically (provide a lib...a library), for example by using --enable-static with ./configure.

Environment

The Kiwix tools build using Meson version 0.43 or higher. Meson relies itself on Ninja, pkg-config and few other compilation tools. Install them first:

These tools should be packaged if you use a cutting edge operating system. If not, have a look to the Troubleshooting section.

Compilation

Once all dependencies are installed, you can compile Kiwix tools with:

meson . build
ninja -C build

By default, it will compile dynamic linked libraries. If you want statically linked libraries, you can add -Dstatic-linkage=true option to the Meson command.

Depending of you system, ninja may be called ninja-build.

Installation

If you want to install the Kiwix tools, here we go:

ninja -C build install

You might need to run the command as root (or using sudo), depending where you want to install the Kiwix tools. After the installation succeeded, you may need to run ldconfig (as root).

Uninstallation

If you want to uninstall the Kiwix tools:

ninja -C build uninstall

Like for the installation, you might need to run the command as root (or using sudo).

Docker

An official Docker image of the Kiwix tools can be found on GHCR. A kiwix-serve dedicated Docker image exists too.

Troubleshooting

If you need to install Meson "manually":

virtualenv -p python3 ./ # Create virtualenv
source bin/activate      # Activate the virtualenv
pip3 install meson       # Install Meson
hash -r                  # Refresh bash paths

If you need to install Ninja "manually":

git clone git://github.com/ninja-build/ninja.git
cd ninja
git checkout release
./configure.py --bootstrap
mkdir ../bin
cp ninja ../bin
cd ..

If the compilation still fails, you might need to get a more recent version of a dependency than the one packaged by your Linux distribution. Try then with a source tarball distributed by the problematic upstream project or even directly from the source code repository.

License

GPLv3 or later, see COPYING for more details.

More Repositories

1

kiwix-android

Kiwix for Android
Kotlin
800
star
2

kiwix-desktop

Kiwix for Windows and GNU/Linux desktops
C++
671
star
3

kiwix-apple

Kiwix for offline access on iOS and macOS
Swift
432
star
4

kiwix-js

Fully portable & lightweight ZIM reader in Javascript
JavaScript
270
star
5

kiwix-js-pwa

Kiwix JS Offline Browser implemented as a Progressive Web App (PWA), and packaged as Electron, NWJS and UWP apps for Windows and Linux.
JavaScript
150
star
6

kiwix-xulrunner

[ARCHIVED] Legacy Kiwix desktop solution for Windows/macOS/Linux
C++
110
star
7

libkiwix

Common code base for all Kiwix ports
C++
108
star
8

overview

🎈 Start here for current projects, how to get involved with offline projects and joining community calls. A resource for new and veteran members
Shell
86
star
9

kiwix-build

Kiwix & openZIM build engine
Python
81
star
10

borg-backup

Backup easily your system with Bitwarden, BorgBase and Docker
Shell
13
star
11

kiwix-android-custom

Necessary data/tools for the Android custom apps
Python
13
star
12

container-images

Python
8
star
13

web

Bugs, enhancements, ideas for our Web presence
HTML
6
star
14

metrics

Kiwix & openZIM software developement monitoring
Python
5
star
15

kiwix-apache

[ARCHIVED] An Apache module for ZIM files
C++
5
star
16

ipfs-portal

Web portal to access Wikipedia snapshots published on IPFS
HTML
5
star
17

k8s

Kiwix Kubernetes Cluster
Python
4
star
18

java-libkiwix

Libkiwix binding for Java & Kotlin
Java
2
star
19

test-gateway

[ARCHIVED] Automated test gateway for Kiwix for Android
PHP
2
star
20

autorun

[ARCHIVED] CD/DVD autoruned Kiwix launcher
C++
1
star
21

kiwix-apple-custom

Python
1
star
22

.github

1
star