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

村建站什么部门wordpress 虎嗅

村建站什么部门,wordpress 虎嗅,网络营销试卷,个人简历模板下载word格式CentOS 7 安装Libevent库 libevent github地址#xff1a;https://github.com/libevent/libevent 步骤1#xff1a;首先#xff0c;你需要下载libevent的源代码。你可以从github或者源代码官方网站下载。并上传至/usr/local/source_code/ 步骤2#xff1a;下载完成后https://github.com/libevent/libevent 步骤1首先你需要下载libevent的源代码。你可以从github或者源代码官方网站下载。并上传至/usr/local/source_code/    步骤2下载完成后需要将源代码解压可以使用以下命令 [rootlocalhost source_code]# tar -zxvf libevent-2.1.12-stable.tar.gz步骤3解压后切换到源代码目录  [rootlocalhost source_code]# cd libevent-2.1.12-stable步骤4生成cJSON动态/静态库执行如下指令  [rootlocalhost libevent-2.1.12-stable]# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking whether make supports the include directive... yes (GNU ****** [rootlocalhost libevent-2.1.12-stable]# makeGEN test/rpcgen-attemptedGEN include/event2/event-config.h make all-am make[1]: 进入目录“/usr/local/source_code/libevent-2.1.12-stable”CC sample/dns-example.oCC buffer.loCC bufferevent.loCC bufferevent_filter.lo ****** [rootlocalhost libevent-2.1.12-stable]# sudo make install make install-am make[1]: 进入目录“/usr/local/source_code/libevent-2.1.12-stable” make[2]: 进入目录“/usr/local/source_code/libevent-2.1.12-stable”/usr/bin/mkdir -p /usr/local/bin/usr/bin/install -c event_rpcgen.py /usr/local/bin/usr/bin/mkdir -p /usr/local/lib **** 遇到的问题及解决办法 编译执行./test_libevent,提示如下截图错误信息 产生原因在运行时程序无法找到libevent-2.1.so.7这个动态库因为该动态库在默认安装时存放的路径在/usr/local/lib下不在系统的默认查找路径内。 解决办法 [rootlocalhost libevent_demo]# cat /etc/ld.so.conf include ld.so.conf.d/*.conf /usr/local/openssl/lib /usr/local/openssl/lib [rootlocalhost libevent_demo]# echo /usr/local/lib /etc/ld.so.conf [rootlocalhost libevent_demo]# sudo ldconfigLibevent 之Hello World 在/usr/local/source_code 新增 libevent_demo目录并新增 test_libevent.cpp文件文件内容如下 #include event2/event.h #include iostream #include string void timer_cb(evutil_socket_t fd, short what, void *arg) {auto str static_caststd::string *(arg);std::cout *str std::endl; } int main() {std::string str Hello, World!;auto *base event_base_new();struct timeval five_seconds {1, 0};auto *ev event_new(base, -1, EV_TIMEOUT, timer_cb, (void *)str);event_add(ev, five_seconds);event_base_dispatch(base);event_free(ev);event_base_free(base);return 0; }编译源码并执行 [rootlocalhost libevent_demo]# g test_libevent.cpp -o test_libevent -levent [rootlocalhost libevent_demo]# ./test_libevent Hello, World!Libevent 参考资料 libevent GitHub地址:https://github.com/libevent/libevent libevent 编程指南: https://senlinzhan.github.io/2017/08/12/libevent/  libevent 深入浅出:https://aceld.gitbooks.io/libevent/content/
http://www.hkea.cn/news/14386863/

相关文章:

  • 网站建设好了却收不到上海网站营销seo
  • 室内在线设计网站网站开发与设计实训报告
  • 福建工程网站建设团队led网站源码
  • 沈阳网站建设 龙兴科技含数据的wordpress
  • 美食网站需求分析湛江做网站咨询电话
  • 公司门户网站开发价格工作室是个体户还是公司
  • 工商注册在哪个网站龙岩新罗区建设局网站
  • 武胜建设局网站产品网络营销方案
  • 千户微建站平台合肥装修
  • 上海源码网站建设公司想在公司局域网做建网站
  • 网站制作经费预算表网站平台建设步骤
  • 龙溪营销型网站制作网站标签布局
  • 如何做自己的业务网站淄博桓台网站建设公司
  • 天津网站制作价格江门关键词优化公司
  • 打开一个网站搜索页面跳转js代运营公司网站
  • 叶县红色家园网站建设静态页面改wordpress
  • xp做网站服务器吗腾讯云备案网站建设方案书
  • 网站设计哪家口碑好网站建设 开发人一丶一一人一一
  • 手机网站营销页电商网站建设实验原理
  • 杭州正规企业网站建设深圳手机企业网站设计
  • 官方网站建设 省心磐石网络网站开发维护承担的法律责任
  • 这样自己做网站网站建设费合同
  • 随州网站建设学习做网站都需要买什么软件
  • wordpress免登录支付宝长沙seo就选智优营家
  • 上海市建设工程质监站网站dedecms wordpress
  • 合肥响应式网站建设方案燕郊网站制作
  • 自己做的网站怎么放图片如何理解网络营销
  • 门户网站做公众号的好处长春经开人才网
  • 东莞网页制作设计培训网络优化的意义
  • 禅城区做网站策划西安网站推广公司