Introduction to libbytesize

The libbytesize package is a library facilitates the common operations with sizes in bytes.

This package is known to build and work properly using an LFS-8.4 platform.

Package Information

libbytesize Dependencies




GTK-Doc-1.29, Python-2.7.15, six-1.12.0 (needed for tests and python bindings), pocketlint (python module for one test), and polib (python module for one test)

User Notes:

Installation of libbytesize

Install libbytesize by running the following commands:

./configure --prefix=/usr &&

If you have the optional python modules installed, the regression tests can be run with: make check. If only Python 3 is installed, one test has to be fixed with sed -i 's/python/&3/' tests/ Another test needs to be fixed if systemd is not installed, with: sed -i '/busctl/s/=.*$/=lfs/' tests/

Now, as the root user:

make install

Command Explanations

--without-python2: If Python 2 is installed, use this switch to prevent the use of Python 2. This may be required to run the tests, if some of the needed python modules have been installed for Python 3 only.


Installed Programs: None
Installed Library:
Installed Directories: /usr/include/bytesize, /usr/share/gtk-doc/html/libbytesize, and /usr/lib/python{2.7,3.6}/site-packages/bytesize

Last updated on 2019-02-16 19:14:14 -0800