Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-703

FIWARE.Request.Tech.Data.OrionContextBroker.InstallationUbuntu

    Details

    • HD-Chapter:
      Data
    • HD-Enabler:
      Orion

      Description

      Hi,

      While trying to install Orion Context Broker in Ubuntu 14.04, we got the following error:

      make[3]: Entering directory `/root/fiware-orion/BUILD_RELEASE'
      [ 0%] Building CXX object src/lib/logMsg/CMakeFiles/lm.dir/logMsg.cpp.o
      /root/fiware-orion/src/lib/logMsg/logMsg.cpp:1015:7: error: size argument in 'strncat' call appears to be size of the source
      [-Werror,-Wstrncat-size]
      CHAR_ADD(format[fi], 1);
      ^~~~~~~~~~~~~~~~~~~~~~~
      /root/fiware-orion/src/lib/logMsg/logMsg.cpp:174:22: note: expanded from macro 'CHAR_ADD'
      strncat(line, xin, sizeof(xin) - 1); \
      ^~~~~~~~~~~~~~~
      1 error generated.
      make[3]: *** [src/lib/logMsg/CMakeFiles/lm.dir/logMsg.cpp.o] Error 1
      make[3]: Leaving directory `/root/fiware-orion/BUILD_RELEASE'
      make[2]: *** [src/lib/logMsg/CMakeFiles/lm.dir/all] Error 2
      make[2]: Leaving directory `/root/fiware-orion/BUILD_RELEASE'
      make[1]: *** [all] Error 2
      make[1]: Leaving directory `/root/fiware-orion/BUILD_RELEASE'
      make: *** [release] Error 2

      In order to fix it, we realised that the package g++ was needed. So:

      apt-get install g++

      And that throw us to the following one:

      [ 99%] Building CXX object src/app/contextBroker/CMakeFiles/contextBroker.dir/contextBroker.cpp.o
      Linking CXX executable contextBroker
      /usr/bin/ld: cannot find -lboost_thread-mt
      /usr/bin/ld: cannot find -lboost_filesystem-mt
      /usr/bin/ld: cannot find -lboost_system-mt
      collect2: error: ld returned 1 exit status
      make[3]: *** [src/app/contextBroker/contextBroker] Error 1
      make[3]: Leaving directory `/root/fiware-orion/BUILD_RELEASE'
      make[2]: *** [src/app/contextBroker/CMakeFiles/contextBroker.dir/all] Error 2
      make[2]: Leaving directory `/root/fiware-orion/BUILD_RELEASE'
      make[1]: *** [all] Error 2
      make[1]: Leaving directory `/root/fiware-orion/BUILD_RELEASE'
      make: *** [release] Error 2

      We've found something related: http://stackoverflow.com/questions/20889614/missing-lboost-thread-mt-in-mongodb-cpp-driver-ubuntu-server-x64

      Upgrading to the last Ubuntu 14.04:

      apt-get update
      apt-get upgrade
      git clone https://github.com/staropram/cantcoap
      cd cantcoap
      git checkout 749e22376664dd3adae17492090e58882d3b28a7
      sudo cp cantcoap.h /usr/local/include
      sudo cp dbg.h /usr/local/include
      sudo cp nethelper.h /usr/local/include
      sudo cp libcantcoap.a /usr/local/lib

      And

      root@ubuntu:~/fiware-orion# make
      root@ubuntu:~/fiware-orion# ./BUILD_RELEASE/src/app/contextBroker/contextBroker

      We could finally install it successfully. Hope it helps.

      Regards,

      Alberto Martín

      _______________________________________________
      Fiware-tech-help mailing list
      Fiware-tech-help@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-tech-help

        Activity

        FIWARE-TECH-HELP FIWARE-TECH-HELP created issue -
        sergg Sergio Garcia Gomez made changes -
        Field Original Value New Value
        Assignee Henar Muñoz [ henar ]
        mev Manuel Escriche made changes -
        Component/s FIWARE-TECH-HELP [ 10278 ]
        henar Henar Muñoz made changes -
        Assignee Henar Muñoz [ henar ] Jesus Movilla [ jesus.movilla ]
        henar Henar Muñoz made changes -
        Assignee Jesus Movilla [ jesus.movilla ] Fermín Galán Márquez [ fermin ]
        mev Manuel Escriche made changes -
        Reporter FIWARE-TECH-HELP [ fiware-tech-help ] FW External User [ fw.external.urser ]
        mev Manuel Escriche made changes -
        Reporter FW External User [ fw.external.urser ] Alberto Martín [ alberto.martin ]
        Hide
        fermin Fermín Galán added a comment -

        Ubuntu 14.04 is not a official supported operating system for Orion. However, given that there is already a github.com issue on Ubuntu 14.04 installation (https://github.com/telefonicaid/fiware-orion/issues/565) I have added Antonio's report on it (see comment: https://github.com/telefonicaid/fiware-orion/issues/565#issuecomment-61790490). Thanks for the feedback!

        Show
        fermin Fermín Galán added a comment - Ubuntu 14.04 is not a official supported operating system for Orion. However, given that there is already a github.com issue on Ubuntu 14.04 installation ( https://github.com/telefonicaid/fiware-orion/issues/565 ) I have added Antonio's report on it (see comment: https://github.com/telefonicaid/fiware-orion/issues/565#issuecomment-61790490 ). Thanks for the feedback!
        fermin Fermín Galán made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        fermin Fermín Galán made changes -
        Resolution Done [ 10000 ]
        Status In Progress [ 3 ] Done [ 10000 ]
        mev Manuel Escriche made changes -
        Fix Version/s Sprint 4.1.2 [ 10738 ]
        fermin Fermín Galán made changes -
        Summary [Fiware-tech-help] [Chp - Data][Orion Context Broker] Installation in Ubuntu 14.04 fails (fix) FIWARE.Request.Lab.Data.OrionContextBroker.InstallationUbuntu
        mev Manuel Escriche made changes -
        Summary FIWARE.Request.Lab.Data.OrionContextBroker.InstallationUbuntu FIWARE.Request.Tech.Data.OrionContextBroker.InstallationUbuntu
        mev Manuel Escriche made changes -
        Workflow FW eRequest Workflow [ 17590 ] FW extRequest Workflow-II [ 40686 ]
        Status Done [ 10000 ] Closed [ 6 ]
        Issue Type eRequest [ 10101 ] extRequest [ 10104 ]
        FI-WARE Environment FI-LAB [ 10100 ]
        mev Manuel Escriche made changes -
        HD-Enabler Orion [ 10875 ]
        HD-Chapter Data [ 10838 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        11d 19h 25m 1 Fermín Galán 05/Nov/14 11:57 AM
        In Progress In Progress Done Done
        16s 1 Fermín Galán 05/Nov/14 11:57 AM
        Done Done Closed Closed
        432d 21h 10m 1 Manuel Escriche 12/Jan/16 9:08 AM

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            alberto.martin Alberto Martín
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: