11INSTALLATION
22------------
33
4- First, you need libfluent-bit.so
4+ First, you need libfluent-bit.so Alien::FluentBit helps you with this by building
5+ one from source. The binary dist from github.com/fluent/fluent-bit currently does
6+ not work with perl without adding the library to LD_PRELOAD which is not a great
7+ solution.
58
6- For debian-based containers:
7-
8- curl https://raw.githubusercontent.com/fluent/fluent-bit/master/install.sh | sh
9-
10- Then, put the library in LD_PRELOAD. (this is an unfortunate bug when
11- libfluent-bit is combined with Perl, and needs some deep C toolchain
12- debugging to resolve the problem)
13-
14- export LD_PRELOAD=/lib/fluent-bit/libfluent-bit.so
9+ apt-get install cmake flex bison m4 # not required, but speeds things up
10+ cpanm Alien::FluentBit
1511
1612Now you can install the module:
1713
18- cpanm Fluent-LibFluentBit-0.01 .tar.gz
14+ cpanm Fluent-LibFluentBit-0.02 .tar.gz
1915
2016or:
2117
22- tar -xf Fluent-LibFluentBit-0.01 .tar.gz
23- cd Fluent-LibFluentBit-0.01
18+ tar -xf Fluent-LibFluentBit-0.02 .tar.gz
19+ cd Fluent-LibFluentBit-0.02
2420 perl Makefile.PL
2521 make
2622 make test
@@ -40,5 +36,5 @@ To build and run single unit tests, use the 'dtest' script:
4036
4137To build and install a trial version, use
4238
43- V=0.01_01 dzil build
44- cpanm Fluent-LibFluentBit-0.01_01 .tar.gz
39+ V=0.02_01 dzil build
40+ cpanm Fluent-LibFluentBit-0.02_01 .tar.gz
0 commit comments