操作系统环境: Red hat Enterprise 4.3
1,下载
http://logging.apache.org/log4cxx/download.html
2, 解压到 用户目录下,比如 /home/zhcc/apache-log4cxx-0.10.0
$mv apache-log4cxx-0.10.0 log4cxx
3, 编译
$cd /home/zhcc/log4cxx
$./configure LDFLAGS="-L/lib64 -L/usr/lib64"
$make
4, 将log4cxx放到系统目录下,方便使用(需要管理员权限)
#cp -r ./log4cxx /usr/local/include/