Skip to content

log4cxx Installation

Mark Millard edited this page Sep 7, 2022 · 9 revisions

This page describes how to install the log4cxx library.

Table of Contents

Resources

Build Instructions

These instructions are for building log4cxx on an Ubuntu 18.04 LTS 64-bit platform.

Dependencies

log4cxx has the following dependencies:

sudo apt-get install libapr1 libapr1-dev libaprutil1-dev

Retrieve the Source

Obtain the source from Github. Use the latest_stable branch.

$ git clone git@github.com:apache/logging-log4cxx.git
$ cd logging-log4cxx
$ checkout latest_stable

Build the Source

Build and install the source.

$ cd logging-log4cxx
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install

Troubleshooting

Unresolved wwww-us.apache.org

Hack your /etc/hosts file to spoof www-us.apache.org to actually go to www.apache.org (where you will find a redirect for the link)..

sudo echo '151.101.2.132  www-us.apache.org' >> /etc/hosts
Clone this wiki locally