/*********************************************************************************
* FreeOpcUa compile
* 说明:
* 记录一下FreeOpcUa编译过程中遇到的错误,以及如何避免。
*
* 2017-11-22 深圳 南山平山村 曾剑锋
********************************************************************************/ 一、参考文档:
. FreeOpcUa/freeopcua
https://github.com/FreeOpcUa/freeopcua
. Boost “no such file or directory”
https://stackoverflow.com/questions/12241152/boost-no-such-file-or-directory
. undefined macro: AC_PROG_LIBTOOL
https://github.com/maxmind/libmaxminddb/issues/9
. 解决: g++: internal compiler error: Killed (program cc1plus)
http://ittony.blog.51cto.com/6242212/1687469
. Thread: swapon - operation not permitted
https://ubuntuforums.org/showthread.php?t=1329211
. src/lxml/etree_defs.h::: fatal error: libxml/xmlversion.h: No such file or directory
https://stackoverflow.com/questions/15759150/src-lxml-etree-defs-h931-fatal-error-libxml-xmlversion-h-no-such-file-or-di
. UaExpert is available for Windows and Linux.
https://www.unified-automation.com/products/development-tools/uaexpert.html 二、Compiler:
. autoreconf -ivf
. ./configure --prefix=`pwd`/_install
. make
. make check
. make install
. cd _install
. LD_LIBRARY_PATH=./lib ./bin/opcuaserver 三、Compiler Error & Fix
. configure.ac:: error: possibly undefined macro: AC_PROG_LIBTOOL
sudo apt-get install libtool
. fatal error: boost/any.hpp: No such file or directory
sudo apt-get install libboost-dev
. g++: internal compiler error: Killed (program cc1plus)
这是在VPS上编译出错了,后来使用自己的电脑编译,没有这个问题,应该是内存太小了,不过VPS不支持swap修改。
. fatal error: libxml/uri.h: No such file or directory
sudo apt-get install libxml2-dev
. /usr/bin/ld: canot find -lboost_thread
/usr/bin/ld: canot find -lboost_filesystem
/usr/bin/ld: canot find -lboost_system
/usr/bin/ld: canot find -lboost_program_options
/usr/bin/ld: canot find -lboost_pthon
. sudo apt-cache search libboost-
. sudo apt-cache search libboost-thread
. sudo apt-cache search libboost-filesystem
. sudo apt-cache search libboost-system
. sudo apt-cache search libboost-program-options
. sudo apt-cache search libboost-python
. sudo apt-get install libboost-thread-dev
. sudo apt-get install libboost-filesystem-dev
. sudo apt-get install libboost-system-dev
. sudo apt-get install libboost-program-options-dev
. sudo apt-get install libboost-pthon-dev
. fatal error: cppunit/extensions/Helpermacros.h: No such file or directory
sudo apt-get install libcppunit-dev

最新文章

  1. ajax局部刷新后,如何让局部中的百度分享重新加载
  2. SQLite返回码
  3. Flex 对象克隆
  4. 3. javacript高级程序设计-基本概念
  5. Woodbury matrix identity
  6. 苹果App Store审核指南中文翻译(2014.9.1更新)
  7. Myeclipse快捷键的使用
  8. erlang远程加载模块须知
  9. Emoji表情在网页中显示
  10. JS Message 网页消息提醒
  11. Android API Level在11前后及16之后时Notification的不同用法
  12. ASP.NET Core中使用自定义MVC过滤器属性的依赖注入
  13. View的绘制流程
  14. HTML浏览器标题栏如何设置
  15. Groovy的脚本统一于类的世界
  16. Django 信息
  17. WebLogic Server添加删除补丁操作【转】【补】
  18. position relative top失效的问题,温习下常用两种的居中方式
  19. linux 如何使用密钥登录 (CentOs)
  20. ClassNotFoundException和NoClassDefFoundError的解决办法

热门文章

  1. 转载:Nginx负载均衡的5种策略
  2. 区间数字的按位与 Bitwise AND of Numbers Range
  3. spring boot 2.0 + 静态资源被拦截,怎么办?
  4. Linux 设置程序开机自启动 (命令systemctl 和 chkconfig用法区别比较)
  5. 雷林鹏分享:C# 索引器(Indexer)
  6. 《图解Http》 10,11章:构建Web的技术, Web的攻击技术
  7. 为tomcat指定jdk
  8. 37mysql 表操作
  9. Sergey's problem CodeForces - 1019C (图论,构造,神题)
  10. gradle 编译 No such property: sonatypeUsername错误解决