文書の過去の版を表示しています。
Fluent Bit
軽量なパイプラインツール。NestDAQ において FairMQ デバイスが大量に立ち上がっているときに、標準出力のメッセージを見るのはしんどいので、これを見やすくしたいとというモチベーションがあった。Fluent Bit はロギングツールというよりパイプラインツールなので、助けになるかわからないが、プラグインによって実現されるインターフェース周りが充実しいるため、有効かもしれないということで、調査を行っている。
インストール
- Ubuntu MATE 22.04.3 LTS
$ cd $HOME/nestdaq/src $ git clone https://github.com/fluent/fluent-bit $ cd fluent-bit $ cmake -DCMAKE_INSTALL_PREFIX=$HOME/nestdaq \ -B ./build -S .
Error
- Flex と Bison がないと cmake 時、以下のエラーになる。
$ cmake -DCMAKE_INSTALL_PREFIX=$HOME/nestdaq \ -B ./build -S . -- The C compiler identification is GNU 11.4.0 < Omitted > -- Found Git: /usr/bin/git (found version "2.34.1") -- Git hash: 71746b35718e856a5f8615f95f35d450a142e8cd -- Could NOT find FLEX (missing: FLEX_EXECUTABLE) (Required is at least version "2") -- Could NOT find BISON (missing: BISON_EXECUTABLE) (Required is at least version "3") -- Enabling FLB_REGEX since FLB_PARSER requires CMake Error at CMakeLists.txt:472 (message): Record Accessor feature requires Flex and Bison in your system. This is a build time dependency, you can either install the dependencies or disable the feature setting the CMake option -DFLB_RECORD_ACCESSOR=Off . -- Configuring incomplete, errors occurred! See also "/home/nestdaq/nestdaq/src/fluent-bit/build/CMakeFiles/CMakeOutput.log".
- 謎のエラーメッセージ。libyaml-dev をインストールすれば良いかと思ったが、それだけではだめで、pkg-config パッケージもインストールすべし。
$ cmake -DCMAKE_INSTALL_PREFIX=$HOME/nestdaq -B ./build -S . -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) <Omitted> -- CFL found in the system. OK Found posix_memalign in stdlib.h -DHAVE_POSIX_MEMALIGN_IN_STDLIB -DHAVE_POSIX_MEMALIGN -- Plugin dirlisting enabled -- Plugin liana enabled [== static ==] -- Plugin mandril enabled -- LINKING monkey-liana-static; -- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) CMake Error at CMakeLists.txt:856 (message): YAML development dependencies required for YAML configuration format handling. This is a build time dependency, you can either install the dependencies or disable the feature setting the CMake option -DFLB_CONFIG_YAML=Off . -- Configuring incomplete, errors occurred! See also "/home/nestdaq/nestdaq/src/fluent-bit/build/CMakeFiles/CMakeOutput.log". See also "/home/nestdaq/nestdaq/src/fluent-bit/build/CMakeFiles/CMakeError.log".
- libyaml-dev, lib pkg-config をインストール。cmake のエラーが解消せず、おそらく必要なかったが、python3-yaml, libyaml-cpp-dev パッケージもインストールした。
$ sudo apt install libyaml-dev python3-yaml libyaml-cpp-dev pkg-config