Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Support Amazon Linux? #1

Open
blopker opened this issue Apr 23, 2018 · 3 comments · May be fixed by #7
Open

Support Amazon Linux? #1

blopker opened this issue Apr 23, 2018 · 3 comments · May be fixed by #7

Comments

@blopker
Copy link

blopker commented Apr 23, 2018

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
Copy link

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
Copy link

jszwedko commented Feb 4, 2019

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
Copy link

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. :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants