반응형 분류 전체보기157 [ubuntu 18.04] opentelemetry cpp 빌드하기 ubuntu 18.04에서는 apt를 통해 설치하는 cmake, gtest, benchmark의 버전이 낮아서 opentelemetry build에 문제가 있다. 참고로 20.04에서는 아무 문제 없이 자연스럽게 build까지 쉽게 된다. 따라서 이런 dependency를 따로 설치해야 한다. 기본적으로 gcc는 설치 되어 있다고 가정하는데 혹시 안되어 있다면 요렇게! $ sudo apt install build-essential (git은 있겠지?) 1. cmake 설치 일단 opentelemetry github에 남아있는 comment를 보면 cmake 3.15 버전에서 진행했다고 하여 일단 cmake 3.16.5를 ㅋ 설치하자. $ wget https://github.com/Kitware/CMake.. 2022. 4. 7. 원하는 시간(ms)이 지났는지 확인하는 class class명을 어떻게 지어야 하는지 몰라 그냥 TimeInterval로 지었음 정확하게 interval마다 무언가를 하는 것이 아니라.. interval 이상 지난 후 내가 뭘 해야 할 때 씀 처음 생성시 시간을 넣어주고 CheckInterval()을 계속 호출하면 생성시 넣어준 interval이 지나면 true를 return함 먼저 결과는.. # g++ time_interval.cpp -lgtest -lgtest_main -lpthread # ./a.out Running main() from gtest_main.cc [==========] Running 2 tests from 1 test case. [----------] Global test environment set-up. [----------] .. 2022. 3. 4. rocksdb sample code on ubuntu 18.04 참고: https://techoverflow.net/2020/01/28/rocksdb-minimal-example-in-c/ RocksDB minimal example in C++ – TechOverflow This minimal example shows how to open a RocksDB database, write a key and how to read it. #include #include #include using namespace std; int main(int argc, char** argv) { rocksdb::DB* db; rocksdb::Options options; options.create_if_missing = true; rocksd techoverflow.net 1. 먼저 ro.. 2022. 2. 27. ubuntu에서 root도 color prompt 사용하기 ubuntu에서 root로 권한 변경후 사용하다보면 terminal에서 color 표시가 되지 않는데 아래와 같이 쉽게 변경 가능하다. ~/.bashrc 에서 아래 구문을 찾는다. force_color_prompt=yes 주석을 해제한다. 저장한다. terminal을 다시 띄워본다. 2022. 2. 15. 이전 1 2 3 4 5 6 ··· 40 다음 반응형