aosaginohi / ulyaoth

Ulyaoth
https://www.ulyaoth.net
18 stars 26 forks source link

Missing dependencies for ulyaoth-nginx-modsecurity #7

Closed danabr closed 9 years ago

danabr commented 9 years ago

I tried out ulyaoth-nginx-modsecurity on RHEL 6 following the instructions here: https://community.ulyaoth.net/threads/package-ulyaoth-nginx-modsecurity.28/

However, yum fails to resolve a number of perl dependencies. Here is the full output:

$ sudo yum install ulyaoth-nginx-modsecurity
Loaded plugins: amazon-id, rhui-lb, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ulyaoth-nginx-modsecurity.x86_64 0:1.8.0-1.el6 will be installed
--> Processing Dependency: perl(Template) for package: ulyaoth-nginx-modsecurity-1.8.0-1.el6.x86_64
--> Processing Dependency: perl(Regexp::Assemble) for package: ulyaoth-nginx-modsecurity-1.8.0-1.el6.x86_64
--> Processing Dependency: perl(File::Copy::Recursive) for package: ulyaoth-nginx-modsecurity-1.8.0-1.el6.x86_64
--> Processing Dependency: GeoIP for package: ulyaoth-nginx-modsecurity-1.8.0-1.el6.x86_64
--> Processing Dependency: libfuzzy.so.2()(64bit) for package: ulyaoth-nginx-modsecurity-1.8.0-1.el6.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: ulyaoth-nginx-modsecurity-1.8.0-1.el6.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: ulyaoth-nginx-modsecurity-1.8.0-1.el6.x86_64
--> Processing Dependency: libGeoIP.so.1()(64bit) for package: ulyaoth-nginx-modsecurity-1.8.0-1.el6.x86_64
--> Running transaction check
---> Package GeoIP.x86_64 0:1.6.5-1.el6 will be installed
--> Processing Dependency: geoipupdate for package: GeoIP-1.6.5-1.el6.x86_64
--> Processing Dependency: GeoIP-data for package: GeoIP-1.6.5-1.el6.x86_64
---> Package apr.x86_64 0:1.3.9-5.el6_2 will be installed
---> Package apr-util.x86_64 0:1.3.9-3.el6_0.1 will be installed
---> Package perl-Regexp-Assemble.noarch 0:0.34-3.el6 will be installed
---> Package ssdeep-libs.x86_64 0:2.13-1.el6 will be installed
---> Package ulyaoth-nginx-modsecurity.x86_64 0:1.8.0-1.el6 will be installed
--> Processing Dependency: perl(Template) for package: ulyaoth-nginx-modsecurity-1.8.0-1.el6.x86_64
--> Processing Dependency: perl(File::Copy::Recursive) for package: ulyaoth-nginx-modsecurity-1.8.0-1.el6.x86_64
--> Running transaction check
---> Package GeoIP-GeoLite-data.noarch 0:2015.04-2.el6 will be installed
--> Processing Dependency: GeoIP-GeoLite-data-extra = 2015.04-2.el6 for package: GeoIP-GeoLite-data-2015.04-2.el6.noarch
---> Package geoipupdate.x86_64 0:2.2.1-2.el6 will be installed
---> Package ulyaoth-nginx-modsecurity.x86_64 0:1.8.0-1.el6 will be installed
--> Processing Dependency: perl(Template) for package: ulyaoth-nginx-modsecurity-1.8.0-1.el6.x86_64
--> Processing Dependency: perl(File::Copy::Recursive) for package: ulyaoth-nginx-modsecurity-1.8.0-1.el6.x86_64
--> Running transaction check
---> Package GeoIP-GeoLite-data-extra.noarch 0:2015.04-2.el6 will be installed
---> Package ulyaoth-nginx-modsecurity.x86_64 0:1.8.0-1.el6 will be installed
--> Processing Dependency: perl(Template) for package: ulyaoth-nginx-modsecurity-1.8.0-1.el6.x86_64
--> Processing Dependency: perl(File::Copy::Recursive) for package: ulyaoth-nginx-modsecurity-1.8.0-1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: ulyaoth-nginx-modsecurity-1.8.0-1.el6.x86_64 (ulyaoth)
           Requires: perl(File::Copy::Recursive)
Error: Package: ulyaoth-nginx-modsecurity-1.8.0-1.el6.x86_64 (ulyaoth)
           Requires: perl(Template)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
aosaginohi commented 9 years ago

Sorry the package you require does come from the optional repository from rhel, you can enable it with yum and then it works:

perl-Template-Toolkit                    x86_64                2.22-5.el6                      rhel-6-server-optional-rpms                1.3 M

This are the once I have enabled:

[root@rhel6 ~]# yum repolist
Loaded plugins: product-id, subscription-manager
repo id                                         repo name                                                                                  status
epel                                            Extra Packages for Enterprise Linux 6 - x86_64                                             11,753
rhel-6-server-optional-rpms                     Red Hat Enterprise Linux 6 Server - Optional (RPMs)                                         8,966
rhel-6-server-rpms                              Red Hat Enterprise Linux 6 Server (RPMs)                                                   15,972
rhel-server-dts-6-rpms                          Red Hat Developer Toolset RPMs for Red Hat Enterprise Linux 6 Server                           84
rhel-server-dts2-6-rpms                         Red Hat Developer Toolset 2 RPMs for Red Hat Enterprise Linux 6 Server                        469
ulyaoth                                         Ulyaoth Repository                                                                            225

You can enable it with:

sudo subscription-manager repos --enable=rhel-6-server-optional-rpms

or

sudo yum-config-manager --enable rhel-6-server-optional-rpms

Sorry for the confusion I will update the post to make sure it is more clear.

danabr commented 9 years ago

Thanks, it worked after enabling the optional repo.