当前位置: 首页> 健康> 知识 > 网页界面设计软件windows版_天元建设集团有限公司证券_软件开发公司_短视频运营培训学费多少

网页界面设计软件windows版_天元建设集团有限公司证券_软件开发公司_短视频运营培训学费多少

时间:2025/7/13 4:40:05来源:https://blog.csdn.net/weixin_46161645/article/details/145483164 浏览次数:0次
网页界面设计软件windows版_天元建设集团有限公司证券_软件开发公司_短视频运营培训学费多少

个人博客地址:CentOS 7.3编译Rsyslog 8.1903.0 | 一张假钞的真实世界

本篇是个人很早之前的一篇博文,迁移到这里作为备份记录。

源码下载:

# wget https://github.com/rsyslog/rsyslog/archive/v8.1903.0.tar.gz
# tar xzvf v8.1903.0.tar.gz

创建构建环境:

# autoreconf -fvi

创建过程中出现以下错误:

configure.ac:46: error: possibly undefined macro: AC_DISABLE_STATICIf this token and others are legitimate, please use m4_pattern_allow.See the Autoconf documentation.
configure.ac:49: error: possibly undefined macro: AC_LIBTOOL_DLOPEN
configure.ac:52: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: /usr/bin/autoconf failed with exit status: 1

原因是缺少libtool,执行以下命令安装:

# yum install libtool

执行配置,可以自定义选项,我是因为要编译omhttp模块,所以使用以下命令:

# ./configure --enable-omhttp

执行过程汇总出现以下错误:

checking for LIBESTR... no
configure: error: Package requirements (libestr >= 0.1.9) were not met:No package 'libestr' found

使用以下命令检查:

# rpm -q libestr
libestr-0.1.9-2.el7.x86_64

安装开发包后解决:

# yum install libestr-devel

再次执行配置出现以下错误:

checking for LIBFASTJSON... no
configure: error: Package requirements (libfastjson >= 0.99.8) were not met:No package 'libfastjson' found

检查系统安装的包:

# rpm -q libfastjson
libfastjson-0.99.4-3.el7.x86_64

安装新版本。源码下载:Index of /libfastjson。下载libfastjson-0.99.8.tar.gz

# wget http://download.rsyslog.com/libfastjson/libfastjson-0.99.8.tar.gz
# tar xzvf libfastjson-0.99.8.tar.gz
# cd libfastjson-0.99.8/
# ./configure --prefix=/usr CC="gcc -m64" PKG_CONFIG_PATH="/usr/lib64/pkgconfig" --libdir=/usr/lib64
# make
# make install

再次执行配置出现以下错误:

checking for LIBUUID... no
configure: error: Package requirements (uuid) were not met:No package 'uuid' found

安装libuuid:

# yum install libuuid libuuid-devel

再次执行配置出现以下错误:

configure: error: in `/data/rsyslog/rsyslog-8.1903.0':
configure: error: libgcrypt-config not found in PATH

安装libgcrypt模块:

# yum install libgcrypt libgcrypt-devel

再次执行配置成功。^_^

执行编译:

# make

编译过程出现以下错误:

make[2]: 进入目录“/data/rsyslog/rsyslog-8.1903.0/grammar”YACC     grammar.c
../ylwrap:行178: yacc: 未找到命令
make[2]: *** [grammar.c] 错误 127
make[2]: 离开目录“/data/rsyslog/rsyslog-8.1903.0/grammar”
make[1]: *** [all-recursive] 错误 1
make[1]: 离开目录“/data/rsyslog/rsyslog-8.1903.0”
make: *** [all] 错误 2

安装byacc:

# yum install byacc

再次编译出现以下错误:

make  all-am
make[3]: 进入目录“/data/rsyslog/rsyslog-8.1903.0/grammar”CC       libgrammar_la-grammar.loLEX      lexer.cCC       libgrammar_la-lexer.lo
gcc: error: ./lexer.c: No such file or directory
gcc: fatal error: no input files

这是因为在make前需要执行:

# sh autogen.sh

编译omhttp模块:

# contrib/omhttp
# makeCC       omhttp_la-omhttp.loCCLD     omhttp.la

执行完成后再次make,生成的omhttp.so文件在contrib/omhttp/.libs目录下。

至此,大功告成!!O(∩_∩)O哈哈~

关键字:网页界面设计软件windows版_天元建设集团有限公司证券_软件开发公司_短视频运营培训学费多少

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: