Coder Social home page Coder Social logo

lightmonitor's Introduction

Light Monitor

环境配置

安装环境依赖

sudo apt update
sudo apt install curl gwet git \
cmake build-essential libboost-all-dev gdb libc-ares-dev

安装 protobuf

wget https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protobuf-cpp-3.14.0.tar.gz
tar -xvf protobuf-cpp-3.14.0.tar.gz
cd protobuf-cpp-3.14.0
mkdir cmake/build && cd cmake/build
cmake .. \
    -DBUILD_SHARED_LIBS=ON \
    -Dprotobuf_BUILD_TESTS=OFF \
    -DCMAKE_INSTALL_PREFIX:PATH="/usr/local" \
    -DCMAKE_BUILD_TYPE=Release

make -j10
sudo make install

安装 abseil

wget https://github.com/abseil/abseil-cpp/archive/refs/tags/20200225.2.tar.gz
tar -xvf 20200225.2.tar.gz
cd abseil-cpp-20200225.2
mkdir build && cd build
cmake .. \
    -DBUILD_SHARED_LIBS=ON \
    -DCMAKE_CXX_STANDARD=14 \
    -DCMAKE_INSTALL_PREFIX=/usr/local
make -j8
sudo make install

安装grpc

wget https://github.com/grpc/grpc/archive/refs/tags/v1.30.0.tar.gz
tar -xvf v1.30.0.tar.gz
cd grpc-1.30.0
mkdir build && cd build
cmake ..    -DgRPC_INSTALL=ON                \
            -DBUILD_SHARED_LIBS=ON           \
            -DCMAKE_BUILD_TYPE=Release       \
            -DgRPC_ABSL_PROVIDER=package     \
            -DgRPC_CARES_PROVIDER=package    \
            -DgRPC_PROTOBUF_PROVIDER=package \
            -DgRPC_RE2_PROVIDER=package      \
            -DgRPC_SSL_PROVIDER=package      \
            -DgRPC_ZLIB_PROVIDER=package     \
            -DCMAKE_INSTALL_PREFIX=/usr/local/
make -j8
sudo make install

安装cmake (可选)

wget https://github.com/Kitware/CMake/archive/refs/tags/v3.26.4.tar.gz
tar -xvf v3.26.4.tar.gz
cd CMake-3.26.4
./configure --prefix=/usr/local/
make -j8
sudo make install

lightmonitor's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.