Skip to content

Commit 1c8f9b0

Browse files
committed
Update README and Changes
1 parent 8510f9d commit 1c8f9b0

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

Changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
0.02 - 2023-04-20
2+
- Use Alien::FluentBit to get an actually-working .so
3+
(no more need for LD_PRELOAD)
4+
- Documentation fixes
5+
16
0.01 - 2023-04-19
27
- Initial usable version
38
- BUG: Requires LD_PRELOAD in order to work, see README

README.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
INSTALLATION
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

1612
Now you can install the module:
1713

18-
cpanm Fluent-LibFluentBit-0.01.tar.gz
14+
cpanm Fluent-LibFluentBit-0.02.tar.gz
1915

2016
or:
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

4137
To 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

Comments
 (0)