log4cxx Installation - magic-lantern-studio/mle-documentation GitHub Wiki
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 [email protected]: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