Записи с меткой ‘Requires: libpcre.so.1()(64bit)’
AWS Zabbix-agent
Если при установке Zabbix-agent вываливается ошибка
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
$ sudo yum install zabbix-agent Loaded plugins: priorities, update-motd, upgrade-helper amzn-main | 2.1 kB 00:00:00 amzn-updates | 2.5 kB 00:00:00 1 packages excluded due to repository priority protections Resolving Dependencies --> Running transaction check ---> Package zabbix-agent.x86_64 0:4.2.0-0.3alpha3.el7 will be installed --> Processing Dependency: systemd for package: zabbix-agent-4.2.0-0.3alpha3.el7.x86_64 --> Processing Dependency: systemd for package: zabbix-agent-4.2.0-0.3alpha3.el7.x86_64 --> Processing Dependency: libpcre.so.1()(64bit) for package: zabbix-agent-4.2.0-0.3alpha3.el7.x86_64 --> Finished Dependency Resolution Error: Package: zabbix-agent-4.2.0-0.3alpha3.el7.x86_64 (zabbix) Requires: libpcre.so.1()(64bit) Error: Package: zabbix-agent-4.2.0-0.3alpha3.el7.x86_64 (zabbix) Requires: systemd You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest |
то с 99% вероятностью установлена не та репа. Как в примере выше, EC2 инстанс Amazon Linux AMI 2018.03, который базируется на RHEL 6, а репа забикса для RHEL 7
Details. The dependent file libpcre.so.0 is available on RHEL 6 but on RHEL 7 it has different name, this is why the agent package complains about non-existent library.
Выполняем
1 2 3 |
rpm -e zabbix-release-4.1-1.el7 yum clean all rpm -Uvh https://repo.zabbix.com/zabbix/4.1/rhel/6/x86_64/zabbix-release-4.1-1.el6.noarch.rpm |
После включаем zabbix-deprecated
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
[zabbix] name=Zabbix Official Repository - $basearch baseurl=http://repo.zabbix.com/zabbix/4.1/rhel/6/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 [zabbix-deprecated] name=Zabbix Official Repository deprecated - $basearch baseurl=http://repo.zabbix.com/zabbix/4.1/rhel/6/$basearch/deprecated enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591 [zabbix-non-supported] name=Zabbix Official Repository non-supported - $basearch baseurl=http://repo.zabbix.com/non-supported/rhel/6/$basearch/ enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX gpgcheck=1 |
И уже после чистим кэш и ставим агент
1 2 |
yum update yum install zabbix-agent |