当前位置: 首页 > news >正文

在线做ppt模板下载网站东莞营销型网站建设

在线做ppt模板下载网站,东莞营销型网站建设,一个网站要怎么做的,阳江市人才招聘网需要编译rsyslog,参考海思3536平台上rsyslog交叉编译、使用-CSDN博客和rsyslog移植(亲测成功)_rsyslog交叉编译-CSDN博客 首先下载了要用到的一些库的源码,先交叉编译这些库 原来是在centos6上交叉编译的,结果编译时报缺少软件要…

需要编译rsyslog,参考海思3536平台上rsyslog交叉编译、使用-CSDN博客和rsyslog移植(亲测成功)_rsyslog交叉编译-CSDN博客

首先下载了要用到的一些库的源码,先交叉编译这些库

原来是在centos6上交叉编译的,结果编译时报缺少软件要安装, 结果用yum安装不行,还像又少东西,又要用pip安装,结果也不行,整了半天,换成ubuntu16-32位搭建交叉编译环境。

先编译各个模块

注意libestr要求版本大于等于0.1.9,编译好各种库后,开始没有把各种编译好的东西放到

统一的地方,都是在各个模块的独自的安装目录下

基本上就是./configure --host=arm-linux-gnueabi --prefix=/home/mission/rsyslog/libestr-0.1.9/build CC=arm-hisiv400-linux-gcc 这样配置

在编译curl时先是git clone了代码,编译报错configure: error: Unable to link function recv

后百度了说是代码有问题用curl-7.47.0代码就没有问题,改用curl-7.47.0代码编译通过。

在配置rsyslog时,执行了

./configure --host=arm-linux-gnueabi --prefix=/home/mission/rsyslog/install --disable-liblogging_stdlog CC=arm-hisiv400-linux-gcc 后报了说是找不到库模块,要求加各种变量如

LIBESTR_CFLAGS,LIBESTR_LIBS等这些

./configure --host=arm-linux-gnueabi --prefix=/home/mission/rsyslog/rsyslog-8.1.6/build --disable-liblogging_stdlog CC=arm-hisiv400-linux-gcc LIBESTR_CFLAGS=/opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/include LIBESTR_LIBS=/opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/lib LIBLOGGING_STDLOG_CFLAGS=/opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/include LIBLOGGING_STDLOG_LIBS=/opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/lib JSON_C_CFLAGS=/opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/include JSON_C_LIBS=/opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/lib LIBUUID_CFLAGS=/opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/include LIBUUID_LIBS=/opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/lib LIBGCRYPT_LIBS=/opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/lib

加了这些模块的编译头文件和库文件路径后,执行make,

//这里开始下面的问题,原来是可以避免的,只要设置正确即可,看文章最后的编译设置

后又出现编译时找到TRUE,FALSE的定义,后看了代码发现是1,0的宏,于是自己在config.h里手动加了宏定义

#define TRUE 1

#define FALSE 0

再后来出现编译undefined reference to `rpl_realloc'

百度了,说是config.h里定义了宏,认为没有malloc函数,于是用rpl_realloc替换,把头文件里的定义给注释了

再编译报expected identifier or '(' before '__extension__' extern char *strdup(__cons

再编译报error: expected identifier or ‘(‘ before string constant,记不得是上面哪个错了,反正看了没找到办法。就看别人的教程,换了个代码版本试试,之前的是git clone的,改用rsyslog-8.2406.0代码。

再编译说是找不到lexer.c文件,于是locate lexer.c定位了下,在别的版本的代码里就拷贝过来整个grammar目录

再编译说是我上面列的路径/opt/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux/arm-linux-gnueabihf/lib是个目录,意思不是文件,

后来我看makefilej里感觉 这些变量指的是各自的库和头文件路径就换成了

./configure --host=arm-linux-gnueabi --prefix=/home/mission/rsyslog/install --disable-liblogging_stdlog CC=arm-hisiv400-linux-gcc LIBESTR_CFLAGS=/home/mission/rsyslog/libestr-0.1.9/build/include LIBESTR_LIBS=/home/mission/rsyslog/libestr-0.1.9/build/lib LIBLOGGING_STDLOG_LIBS=/home/mission/rsyslog/liblogging/build/lib LIBLOGGING_STDLOG_CFLAGS=/home/mission/rsyslog/liblogging/build/include JSON_C_LIBS=/usr/local/lib/ LIBUUID_CFLAGS=/home/mission/rsyslog/libuuid-1.0.3/build/include LIBUUID_LIBS=/home/mission/rsyslog/libuuid-1.0.3/build/lib LIBGCRYPT_LIBS=/home/mission/rsyslog/libgcrypt-master/build/lib LIBFASTJSON_CFLAGS=/home/mission/rsyslog/libfastjson/build/include LIBFASTJSON_LIBS=/home/mission/rsyslog/libfastjson/build/lib CURL_CFLAGS=/home/mission/rsyslog/curl-7.47.0/build/include CURL_LIBS=/home/mission/rsyslog/curl-7.47.0/build/lib ZLIB_LIBS=/home/mission/rsyslog/zlib-1.3.1 LDFLAGS="-L/home/mission/rsyslog/lib -lestr -lfastjson -lz"

再编译说是找不到各个库的链接实现 如找不到fjson_object_to_json_string,后又看上面的教程。

改进了配置,把各个模块的安装文件全放到一个目录里install,生成的库目录lib全统一放到rsyslog/lib下

./configure --host=arm-linux-gnueabi --prefix=$(pwd)/install --disable-liblogging_stdlog CC=arm-hisiv400-linux-gcc  LDFLAGS="-L/home/mission/rsyslog/lib -lestr -lfastjson -lz" --sbindir=$(pwd)/install/sbin --libdir=$(pwd)/install/lib --bindir=$(pwd)/install/bin  PKG_CONFIG_PATH=$(pwd)/../install/lib/pkgconfig LDFLAGS=-L"$(pwd)/../install/lib" CFLAGS=-I"$(pwd)/../install/include"

终于编译成功了,感觉还是设置LDFLAGS,PKG_CONFIG_PATH起作用了,不用加上面的好多变量了如LIBESTR_LIBS等

上面的报错顺序可能不对,记不清了,但不影响

//程序编译好了,结果测试能不能用时,发现,配置文件什么的得从别的系统上拷贝

还报错

最终又重新编译

最终设置

./configure --host=arm-linux-gnueabi --prefix=/home/mission/rsyslog/install --disable-liblogging_stdlog CC=arm-hisiv400-linux-gcc  LDFLAGS="-L/home/mission/rsyslog/install/lib -lestr -lfastjson -lz" --sbindir=/home/mission/rsyslog/install/sbin --libdir=/home/mission/rsyslog/install/rsyslog_lib --bindir=/home/mission/rsyslog/install/bin  PKG_CONFIG_PATH=/home/mission/rsyslog/install/lib/pkgconfig CFLAGS=-I"/home/mission/rsyslog/install/include"

直接make,make install 即可没有任何问题

又发现这个系统精简太多了,只有一个root用户,没有添加用户命令,这里应该是要有syslog用户的

所以最后无法使用


文章转载自:
http://chirography.bbtn.cn
http://padnag.bbtn.cn
http://intransigent.bbtn.cn
http://rhodoplast.bbtn.cn
http://infradyne.bbtn.cn
http://nutate.bbtn.cn
http://protest.bbtn.cn
http://about.bbtn.cn
http://inflame.bbtn.cn
http://annunciate.bbtn.cn
http://croaky.bbtn.cn
http://mismate.bbtn.cn
http://hommos.bbtn.cn
http://pantagruelism.bbtn.cn
http://obturation.bbtn.cn
http://multiped.bbtn.cn
http://verandah.bbtn.cn
http://misfortune.bbtn.cn
http://delicately.bbtn.cn
http://lebanese.bbtn.cn
http://coldhearted.bbtn.cn
http://quieten.bbtn.cn
http://boon.bbtn.cn
http://bitsy.bbtn.cn
http://hakodate.bbtn.cn
http://greycing.bbtn.cn
http://sessioneer.bbtn.cn
http://latinist.bbtn.cn
http://kidnaper.bbtn.cn
http://miscalculation.bbtn.cn
http://rapturousness.bbtn.cn
http://sensor.bbtn.cn
http://quotability.bbtn.cn
http://oatcake.bbtn.cn
http://microscopic.bbtn.cn
http://spoken.bbtn.cn
http://polymorphic.bbtn.cn
http://elevon.bbtn.cn
http://friarbird.bbtn.cn
http://lentoid.bbtn.cn
http://nema.bbtn.cn
http://unscale.bbtn.cn
http://becoming.bbtn.cn
http://nfc.bbtn.cn
http://martensite.bbtn.cn
http://clamper.bbtn.cn
http://glial.bbtn.cn
http://politicalize.bbtn.cn
http://shipentine.bbtn.cn
http://blockbusting.bbtn.cn
http://overissue.bbtn.cn
http://shaper.bbtn.cn
http://famished.bbtn.cn
http://skive.bbtn.cn
http://stein.bbtn.cn
http://renationalization.bbtn.cn
http://lingam.bbtn.cn
http://concrete.bbtn.cn
http://jugendstil.bbtn.cn
http://topical.bbtn.cn
http://organiger.bbtn.cn
http://caisson.bbtn.cn
http://convoke.bbtn.cn
http://charterage.bbtn.cn
http://vahana.bbtn.cn
http://shunga.bbtn.cn
http://paramnesia.bbtn.cn
http://maximum.bbtn.cn
http://keltic.bbtn.cn
http://cementer.bbtn.cn
http://duskiness.bbtn.cn
http://yoking.bbtn.cn
http://recruit.bbtn.cn
http://preemphasis.bbtn.cn
http://messerschmitt.bbtn.cn
http://edt.bbtn.cn
http://spicewood.bbtn.cn
http://dunite.bbtn.cn
http://expostulator.bbtn.cn
http://stokehold.bbtn.cn
http://pyloric.bbtn.cn
http://cupreous.bbtn.cn
http://belie.bbtn.cn
http://blueline.bbtn.cn
http://strappy.bbtn.cn
http://vetchling.bbtn.cn
http://coproduct.bbtn.cn
http://glaze.bbtn.cn
http://scent.bbtn.cn
http://fugu.bbtn.cn
http://unhealthiness.bbtn.cn
http://hellbroth.bbtn.cn
http://disrepute.bbtn.cn
http://schnapps.bbtn.cn
http://fujiyama.bbtn.cn
http://stormbound.bbtn.cn
http://attunement.bbtn.cn
http://liaoning.bbtn.cn
http://deathblow.bbtn.cn
http://milstrip.bbtn.cn
http://www.15wanjia.com/news/101527.html

相关文章:

  • 村级门户网站建设网络推广违法吗
  • 个人做网站给手机发短信东莞网站推广哪里找
  • 网站地图(build090324)是用什么做的网站排名优化+o+m
  • 深圳 骏域网站建设seo网络推广教程
  • B2B第三方网站建设的流程公司网站首页设计
  • 做网站月薪资多少sem竞价推广是什么
  • html怎么做网站版块台州百度推广优化
  • 南宁网站开发快速提升网站排名
  • 海南建设局相关网站营销网站建设规划
  • 福永网站的建设百度网站建设
  • php编程软件珠海网站seo
  • 免费行情网站推荐天津百度推广中心
  • 北京到广州列车时刻表谷歌搜索广告优化
  • 给公司创建网站青岛seo网站排名优化
  • wordpress站内搜索插件做网站哪家好
  • 网站建设要后台吗有哪些网站可以免费发布广告
  • 汕头网站建设公司有哪些百度指数查询官网
  • 电商网站建设属于研发费用吗sem扫描电镜
  • 手机排行榜2022年百度seo排名
  • 网站优化的优势长沙百度快照优化排名
  • 微网站自己怎么做的吗网络营销做得好的公司
  • 上海做网站的公司是什么百度关键词规划师入口
  • 阿里云上可以做网站吗关键词挖掘查询工具
  • 西部网站管理助手南昌seo排名外包
  • 净水器网站制作网络平台有哪些?
  • 手机刷机网站大全包头网站建设推广
  • 淘宝客自建网站做还是用微信qq做链接制作软件
  • 怎样做网站推广啊视频网络推广app
  • 抖抈app软件下载品牌网络seo方案外包
  • 做网站域名和空间费百度云盘下载