#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-491

### Chapter 17. Networking Libraries

- Prev

  rpcsvc-proto-1.4.4

- Next

  Text Web Browsers

- Up
- Home

# Serf-1.3.10

## Introduction to Serf

The Serf package contains a C-based HTTP client library built upon the Apache Portable Runtime (APR) library. It multiplexes connections, running the read/write communication asynchronously. Memory copies and transformations are kept to a minimum to provide high performance operation.

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://archive.apache.org/dist/serf/serf-1.3.10.tar.bz2

- Download MD5 sum: 5320087299084c297eff8e1dacfab1af

- Download size: 148 KB

- Estimated disk space required: 2.4 MB

- Estimated build time: less than 0.1 SBU

### Serf Dependencies

#### Required

Apr-Util-1.6.3 and SCons-4.10.1

#### Optional

MIT Kerberos V5-1.22.2 (for GSSAPI support)

## Installation of Serf

Install Serf by running the following commands:

    sed -i "/Append/s:RPATH=libdir,::"          SConstruct &&
    sed -i "/Default/s:lib_static,::"           SConstruct &&
    sed -i "/Alias/s:install_static,::"         SConstruct &&

    scons PREFIX=/usr

This package does not come with a functional test suite.

Now, as the `root` user:

    scons PREFIX=/usr install

## Command Explanations

sed -i "...": The first command removes the runtime path from a shared library and the next two commands disable building and installing of the static library.

`GSSAPI=/usr`: Use this switch if you have installed a GSSAPI library and you want serf to use it.

## Contents

Installed Programs: None
Installed Library: libserf-1.so
Installed Directory: /usr/include/serf-1

### Short Descriptions

`libserf-1.so` | contains the Serf API functions

- Prev

  rpcsvc-proto-1.4.4

- Next

  Text Web Browsers

- Up
- Home