log4cpp如何安装 [英] log4cpp how to install
本文介绍了log4cpp如何安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
log4cpp
我是从这里下载的:
http://log4cpp.sourceforge.net/ [ ^ ]
就像你告诉我的那样.
但是现在当我./configure
它没有完成
之后,当我做它时,它给我一个错误
自动生成的bcb5/config/doc/include/m4/msvc6/openvms/src
所以帮我解决这个问题
如果该库不好,请给我一个很好的下载链接
我想在Linux的C ++中进行事件日志
log4cpp
I downloaded this from here:
http://log4cpp.sourceforge.net/[^]
As you told me.
but now when i ./configure it
it not compleated
after that when i make it.it give me an error
automatically generated bcb5/ config/ doc/ include/ m4/ msvc6/ openvms/ src
so helpout me to solve this problem
if this library is not good then give me a good link for download
i want to event log in c++ of linux
推荐答案
首先,检查Linux发行版的软件包管理系统,以查看该库是否可作为预编译软件包使用. .例如,在Ubuntu中,您应该安装软件包liblog4cpp5,liblog4cpp5-dev和liblog4cpp-doc.其他发行版具有不同的命名约定.
First, check the package management system of your Linux distribution to see if the library is available as a pre-compiled package. For example, in Ubuntu you should install packages liblog4cpp5, liblog4cpp5-dev and liblog4cpp-doc. Other distributions have different naming conventions.
一个C ++类库,用于灵活地记录到文件,syslog,IDSA和其他目标.它是根据Log for Java库(http://www.log4j.org)建模的,在合理范围内尽可能接近其API.(如yum info所述)
首先搜索包
A library of C++ classes for flexible logging to files, syslog, IDSA and other destinations. It is modeled after the Log for Java library (http://www.log4j.org), staying as close to their API as is reasonable.(as described by yum info)
Let’s first search for the package
yum搜索log4cpp
log4cpp-devel.i686:
的头文件,库和开发文档 log4cpp.i686:C ++日志记录库
请注意,您必须是root用户/管理员才能安装该软件包.要在Red Hat/Fedora Linux中安装此软件包.
yum search log4cpp
log4cpp-devel.i686 : Header files, libraries and development documentation for
log4cpp.i686 : C++ logging library
Note that you must be the root/administrator to install the package. To install this package in Red Hat/Fedora Linux.
这篇关于log4cpp如何安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文