libbytesize-1.4

#### Beyond Linux® From Scratch - Version 2019-02-27

### Chapter 9. General Libraries

- Prev

  libblockdev-2.20

- Next

  libcroco-0.6.12

- Up
- Home

# libbytesize-1.4

## 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

- Download (HTTP): https://github.com/storaged-project/libbytesize/releases/download/1.4/libbytesize-1.4.tar.gz

- Download MD5 sum: aa9bd5a04546873714da2adbaaa9f283

- Download size: 404 KB

- Estimated disk space required: 4.6 MB

- Estimated build time: less than 0.1 SBU

### libbytesize Dependencies

#### Required

PCRE-8.42

#### Optional

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: http://wiki.linuxfromscratch.org/blfs/wiki/libbytesize

## Installation of libbytesize

Install libbytesize by running the following commands:

    ./configure --prefix=/usr &&
    make

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/lbs_py_override_unittest.py. Another test needs to be fixed if systemd is not installed, with: sed -i '/busctl/s/=.*$/=lfs/' tests/canary_tests.sh.

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.

## Contents

Installed Programs: None
Installed Library: libbytesize.so
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 21:14:14 -0600

- Prev

  libblockdev-2.20

- Next

  libcroco-0.6.12

- Up
- Home