How to install log4cpp from sources?
log4cpp is used for logging purposes in C++. To install log4cpp in Linux is as simple as installing some simple packages like liblog4cpp5 and liblog4cpp5-dev. But if you want to install log4cpp from sources, you need to follow the following procedures. Using these steps, you can easily install log4cpp in Mac and Linux (or any Unix Variant)
- Download log4cpp.
- Untar the file log4cpp-version.tar.gz. Substitute the version number for version.
- tar -xzf log4cpp-version.tar.gz
- Compile and install
- cd log4cpp
- ./configure
- make
- sudo make install
Once installed, you can find the log4cpp archive file (liblog4cpp.a) in /usr/local/lib in case of Mac or /usr/lib in case of Linux (Note: these values may vary). But if you want to work with log4cpp development, refer programming with log4cpp.
Comments: