skip to Main Content

How do I install static versions of glibc on CentOS 8?

I am trying to compile a version of rsync using static linked libraries.

5

Answers


  1. How do I install static versions of glibc on CentOS 8

    # dnf search glibc
    # dnf provides */libc.a
             // both commands will (also) reply: glibc-static
    # dnf install glibc-static
    

    Note : glibc-static is in this repo: /etc/yum.repos.d/CentOS-PowerTools.repo

    # dnf config-manager --enable PowerTools
    

    Package list, “PowerTools” http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/

    Example mirror, “PowerTools” http://mirror.centos.org/centos/8/PowerTools/x86_64/os/

    Login or Signup to reply.
  2. in centos8 docker containers:
    while I’m trying enable PowerTools to use the command, it does not work:

     # dnf config-manager --enable PowerTools 
    Failed to set locale, defaulting to C.UTF-8
    No such command: config-manager. Please use /usr/bin/dnf --help
    It could be a DNF plugin command, try: "dnf install 'dnf-command(config-manager)'"
    

    Enable it with the following commands, then it worked:

    yum install dnf-plugins-core
    yum config-manager --set-enabled PowerTools
    
    Login or Signup to reply.
  3. yum install dnf-plugins-core
    yum config-manager --set-enabled PowerTools
    yum install glibc-static
    yum install libstdc++-static
    

    These worked for me. Thanks.

    Login or Signup to reply.
  4. I was on CentOS 8. The above answers worked, but I had to change

    yum config-manager --set-enabled PowerTools
    

    to:

    yum config-manager --set-enabled powertools
    
    Login or Signup to reply.
  5. That worked for me, had to read all suggestions before build proper one.

    yum install -y dnf-plugins-core
    yum config-manager --set-enabled powertools
    yum install -y glibc-static
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search