Skip to content
Yuta HIGUCHI edited this page Jan 22, 2014 · 10 revisions

MEMO

  • make logcabin fails

    • Compile error on ./Core/Time.h

    ./Core/Time.h:40:47: error: ‘from_time_t’ is not a member of ‘std::chrono::_V2::steady_clock’ TimePoint unixEpoch = Clock::from_time_t(0);

    * Apply this fix: https://github.com/logcabin/logcabin/commit/3862499f477d0e371950aebcb829ddd8ee194962
    
    • Compile error on Server/RaftLog.cc

      build/Server/RaftLog.cc:43:17: error: ‘close’ was not declared in this scope close(fd);

      • Add #include <unistd.h> after the line #include <sys/stat.h> in Server/RaftLog.cc
  • Building with recent boost library

    • Install libboost-all-dev, etc.
      sudo apt-get install build-essential git-core libcppunit-dev libcppunit-doc doxygen libboost-all-dev libpcre3-dev protobuf-compiler libprotobuf-dev libcrypto++-dev libevent-dev scons libssl-dev libzookeeper-mt-dev
      
    • Modify GNUmakefile and add following to COMFLAGS -DBOOST_UNORDERED_DEPRECATED_PAIR_CONSTRUCT This does not work on most up-to-date boost as the deprecated workaround method seems to be completely removed. If thats the case modify src/TabletManager.cc. See branch blueprint-java branch commit af80382f9b20f3f7dbd95d66d5d12e3641de9be3
Clone this wiki locally