0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

log4cppをCentOSにインストールする

Last updated at Posted at 2018-03-04

環境

CentOS Linux release 7.4.1708 (Core)

ダウンロード

cmake

log4cpp

インストール

cmake

tar xvfa /tmp/cmake-3.11.0-rc2-Linux-x86_64.tar.gz

log4cppのmakeに使用するcmakeは以下にあります。

cmake
cmake-3.11.0-rc2-Linux-x86_64/bin/cmake

log4cpp

tar xvfa /tmp/log4cpp-1.1.3.tar.gz

cd log4cpp
../cmake-3.11.0-rc2-Linux-x86_64/bin/cmake .
./configure
make
make check
make install

make install で/usr/localにヘッダー、ライブラリファイルがインストールされる。

/usr/local/include/log4cpp/*.hh
/usr/local/share/aclocal/log4cpp.m4
/usr/local/bin/log4cpp-config
/usr/local/lib/liblog4cpp.la
/usr/local/lib/liblog4cpp.a
/usr/local/lib/liblog4cpp.so.5.0.6
/usr/local/lib/liblog4cpp.so.5
/usr/local/lib/liblog4cpp.so
/usr/local/lib/pkgconfig/log4cpp.pc
テストコード
log4cpp/tests
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?