0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu 24.04でfluentbitをビルドする

Posted at

はじめに

Ubuntu 24.04でfluentbitをビルドしてみます。
https://docs.fluentbit.io/manual/installation/sources/build-and-install

環境情報

環境は以下です。

コンポーネント バージョン 備考
PC Intel® NUC Kit NUC11PAHi7 SSD: 2TB
Memory: 64GB
OS Ubuntu 24.04
fluentbit v4.0.5

ビルド手順

ツールのインストール

ビルドに必要なツールをインストールします。

sudo apt install build-essential cmake flex bison libssl-dev libyaml-dev

ソースのダウンロード

wgetでgithubからソースをダウンロードします。

❯ wget https://github.com/fluent/fluent-bit/archive/refs/tags/v4.0.5.tar.gz

ビルド

tar xvf v4.0.5.tar.gz
❯ cd fluent-bit-4.0.5/build
❯ cmake ../
❯ make
❯ file bin/fluent-bit
bin/fluent-bit: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=f075f9548388bad9d33a854514d5c823b1edaf81, for GNU/Linux 3.2.0, with debug_info, not stripped

起動

❯ ./bin/fluent-bit
Fluent Bit v4.0.5
* Copyright (C) 2015-2025 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io

______ _                  _    ______ _ _             ___  _____
|  ___| |                | |   | ___ (_) |           /   ||  _  |
| |_  | |_   _  ___ _ __ | |_  | |_/ /_| |_  __   __/ /| || |/' |
|  _| | | | | |/ _ \ '_ \| __| | ___ \ | __| \ \ / / /_| ||  /| |
| |   | | |_| |  __/ | | | |_  | |_/ / | |_   \ V /\___  |\ |_/ /
\_|   |_|\__,_|\___|_| |_|\__| \____/|_|\__|   \_/     |_(_)___/

(snip)

最後に

Ubuntu 24.04でfluentbitをソースからビルドすることができました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?