大家好,我们又见面了,我是你们的好朋友全栈君。
1、系统准备
系统:ubuntu14.04,根据官方文档,我们需要安装以下环境:
C compiler编译器在移植时通过configure配置为交叉编译器make执行MakefileUbuntu系统安装后已具备libtool通用库工具Ubuntu系统安装后已具备rst2man用于生成man文件移植到嵌入式系统时无需安装Bison和Flex语法和词法分析sudo apt-get install flex bisonzlibsudo apt-get install libz-devjson-csudo apt-get install libz-devlibuuid在configure配置中关闭libgcryptsudo apt-get install libgcrypt-dev

2、依赖库
liblogginghttps://github.com/rsyslog/liblogging./autogen.sh
./configure –prefix=安装目录 –host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc
make && make installlibfastjsonhttps://github.com/rsyslog/libfastjson./autogen.sh
./configure –prefix=安装目录 –host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc
make && make installlibestrhttps://github.com/rsyslog/libestr./configure –prefix=安装目录 –host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc
make && make installcurlhttps://github.com/curl/curl./configure –prefix=安装目录 –host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc
make && make installzlibhttps://sourceforge.net/projects/libpng/files/zlib/1.2.11/zlib-1.2.11.tar.gz/download?use_mirror=nchc&download=AR=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc ./configure –prefix=安装目录
make && make install
3、rsyslogd源码下载
从https://www.php.cn/link/eab4f7ba2d678729fc5d205b33bceedd下载,我使用的是最新的8.1910版本。

AI建筑知识问答
用人工智能ChatGPT帮你解答所有建筑问题
22 查看详情
4、配置
说明:/home/hello/rsyslog/install是前面依赖库的安装目录。
#!/bin/bash./configure –prefix=/usr/ –host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc –disable-uuid LIBESTR_CFLAGS=/home/hello/rsyslog/install/include LIBESTR_LIBS=/home/hello/rsyslog/install/lib/libestr.so LIBFASTJSON_CFLAGS=/home/hello/rsyslog/install/include LIBFASTJSON_LIBS=/home/hello/rsyslog/install/lib/libfastjson.so LIBGCRYPT_CFLAGS=/home/hello/rsyslog/install/include LIBGCRYPT_LIBS=/home/hello/rsyslog/install/lib/libgcrypt.so LIBLOGGING_CFLAGS=/home/hello/rsyslog/install/include LIBLOGGING_LIBS=/home/hello/rsyslog/install/lib/liblogging-stdlog.so CURL_LIBS=/home/hello/rsyslog/install/lib/ CURL_CFLAGS=/home/hello/rsyslog/install/include
5、问题
按需补齐缺少的组件。
6、部署
将相关依赖库部署到嵌入式文件系统中,简单来说就是将编译完成后生成的文件复制到嵌入式文件系统目录(configure配置的prefix目录,这里使用/usr/)。
发布者:全栈程序员栈长,转载请注明出处:https://www.php.cn/link/0d5bfba0961e9c0427e3850c85b591a2原文链接:https://www.php.cn/link/c8377ad2a50fb65de28b11cfc628d75c
以上就是nfs41client loaded successfully_storcli创建raid的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/298075.html
微信扫一扫
支付宝扫一扫