fluent / fluent-bit-packaging

Fluent Bit Linux Packaging environment using Docker
12 stars 19 forks source link

Support Amazon Linux? #1

Open blopker opened 6 years ago

blopker commented 6 years ago

Hey, I'm not sure this is the right place, but we're running into trouble when installing Fluent Bit into an Amazon Linux VM. The cause seems to be that Amazon Linux does not have SystemD:

[ec2-user@xxxxx ~]$ sudo yum install td-agent-bit
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package td-agent-bit.x86_64 0:0.12.18-1 will be installed
--> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: td-agent-bit-0.12.18-1.x86_64
--> Processing Dependency: libsystemd.so.0()(64bit) for package: td-agent-bit-0.12.18-1.x86_64
--> Finished Dependency Resolution
Error: Package: td-agent-bit-0.12.18-1.x86_64 (td-agent-bit)
           Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)
Error: Package: td-agent-bit-0.12.18-1.x86_64 (td-agent-bit)
           Requires: libsystemd.so.0()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Are we doing something wrong? If not, is there a plan to support Amazon Linux?

Thank you!

lebenitza commented 5 years ago

If you guys need a workaround

install pam pam-devel
install lz4
install elfutils-libs

wget http://mirror.centos.org/centos/7/os/x86_64/Packages/systemd-libs-219-57.el7.x86_64.rpm

rpm install the package from wget

install fluent-bit

install refers to yum install (I quickly took these notes). This was tested using the CentOS repo for fluent-bit. Also pam-devel I am not sure it is required.

Hope it works for you. Have fun!

jszwedko commented 5 years ago

I was hoping to manually build a centos package for use with Amazon Linux 2018.03 (still the default for AWS Elastic Beanstalk), but found that sysv init script generation is unimplemented: https://github.com/fluent/fluent-bit/blob/3ea3f24765c3ddc0c066c4feeb2f6e5ec96f52b1/src/CMakeLists.txt#L281

Notably Amazon Linux 2 has systemd, but I'm not sure when this will be rolled out to all of its services.

pbhosale87 commented 4 years ago

If you guys need a workaround

install pam pam-devel
install lz4
install elfutils-libs

wget http://mirror.centos.org/centos/7/os/x86_64/Packages/systemd-libs-219-57.el7.x86_64.rpm

rpm install the package from wget

install fluent-bit

install refers to yum install (I quickly took these notes). This was tested using the CentOS repo for fluent-bit. Also pam-devel I am not sure it is required.

Hope it works for you. Have fun!

If you guys need a workaround

install pam pam-devel
install lz4
install elfutils-libs

wget http://mirror.centos.org/centos/7/os/x86_64/Packages/systemd-libs-219-57.el7.x86_64.rpm

rpm install the package from wget

install fluent-bit

install refers to yum install (I quickly took these notes). This was tested using the CentOS repo for fluent-bit. Also pam-devel I am not sure it is required.

Hope it works for you. Have fun!

@MihaiAnei : That workaround didn't work form me. :(