gordonwatts / atlas-containers

2 stars 1 forks source link

Can't install HEP_OSlibs on AL9 #1

Closed gordonwatts closed 11 months ago

gordonwatts commented 12 months ago

This is what happens when we try to do an install:

[gwatts@SurfacePhoto atlas-containers]$ sudo yum install -y HEP_OSlibs
[sudo] password for gwatts:
Last metadata expiration check: 0:08:29 ago on Sun Nov  5 05:40:39 2023.
Error: 
 Problem: cannot install the best candidate for the job
  - nothing provides gdbm-devel(x86-64) needed by HEP_OSlibs-9.1.0-2.el9.x86_64
  - nothing provides libtirpc-devel(x86-64) needed by HEP_OSlibs-9.1.0-2.el9.x86_64
  - nothing provides libxkbcommon-x11-devel(x86-64) needed by HEP_OSlibs-9.1.0-2.el9.x86_64
  - nothing provides xcb-util-devel(x86-64) needed by HEP_OSlibs-9.1.0-2.el9.x86_64
  - nothing provides xcb-util-image-devel(x86-64) needed by HEP_OSlibs-9.1.0-2.el9.x86_64
  - nothing provides xcb-util-keysyms-devel(x86-64) needed by HEP_OSlibs-9.1.0-2.el9.x86_64
  - nothing provides xcb-util-renderutil-devel(x86-64) needed by HEP_OSlibs-9.1.0-2.el9.x86_64
  - nothing provides xcb-util-wm-devel(x86-64) needed by HEP_OSlibs-9.1.0-2.el9.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[gwatts@SurfacePhoto atlas-containers]$ 

Feels like I'm missing some development yum repository.

gordonwatts commented 11 months ago

From Attila:

Some of the basic packages are provided by the "CodeReady Builder" (CRB) repository in Alma9. ([https://wiki.almalinux.org/repos/AlmaLinux.html](https://urldefense.com/v3/__https:/wiki.almalinux.org/repos/AlmaLinux.html__;!!K-Hz7m0Vt54!h4DiD3lZZnGMTabf0eL_tH955sIKmnAc7ElA2-EpaPJkX6fpmCr7-rNhNK0qDkmWkxgdAcnaTkgGhUOZ7dbSSviuaw$)) Which is very similar to the EPEL repository in RHEL.

Long story short, you'll need to do something like:

[https://gitlab.cern.ch/akraszna/atlas-gpu-devel-env/-/blob/alma9/Dockerfile?ref_type=heads#L25](https://urldefense.com/v3/__https:/gitlab.cern.ch/akraszna/atlas-gpu-devel-env/-/blob/alma9/Dockerfile?ref_type=heads*L25__;Iw!!K-Hz7m0Vt54!h4DiD3lZZnGMTabf0eL_tH955sIKmnAc7ElA2-EpaPJkX6fpmCr7-rNhNK0qDkmWkxgdAcnaTkgGhUOZ7dZYyhRWjw$)

I.e. dnf --enablerepo=crb install -y HEP_OSlibs

You can also turn on the CRB repository globally in the image, but I liked this setup better. Where I only turn it on when necessary.