Is it possible you're using a RHEL 6-Beta DVD on a RHEL 6.0 system?

It looks like RHEL 6 has always had glibc 2.12 but the beta release had glibc 2.11. I really can't find a definitive source that says what the 6-Beta had but find mentions of 2.11 on 6-Beta around the web like here and here. All of the CentOS src.rpms for 6.0 to 6.3 are glic 2.12 so the final release has always had 2.12.

Is it possible you initially installed from the 6-beta DVD but have upgraded to a newer RHEL release since then? If so, you really can't use the packages from an older RHEL DVD. If you're just trying to install gcc, you can run yum install gcc to get GCC 4.4.x. In general, installing through yum is preferred over the DVD since yum will automatically fetch the latest RPMs whereas the DVD might have an older version that has some bugs. If you really want the DVD method, you'll need to get a DVD that matches the RHEL 6 release you have installed.

cat /etc/redhat-release will tell you what version of RHEL you're running. I'm guessing you're on 6.0 since the version of glibc currently installed is from November 2010 (you should look in to upgrading to 6.3 at some point). As for how to tell what version the DVD is, I'm guessing if you boot from it, it will say RHEL 6 Beta or something on the splash screen. Maybe read the docs on the DVD to see if it references being a beta?

Answer from Mark McKinstry on Stack Exchange
🌐
Centos
lists.centos.org › hyperkitty › list › discuss@lists.centos.org › thread › ODMDTUUWZPQ7CUGVY2DIYBNIAHXRAFT3
install older version of glibc package - Discuss - lists.centos.org
===================================== -bash-3.2# yum info glibc Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: yum.singlehop.com * base: yum.singlehop.com * extras: mirrors.netdna.com * rpmforge: apt.sw.be * updates: yum.singlehop.com Installed Packages Name : glibc Arch : i386 Version : 2.5 Release : 49.1 Size : 22 M Repo : installed Summary : The GNU libc libraries. License : LGPL Description: The glibc package contains standard libraries which are used by : multiple programs on the system. In order to save disk space and : memory, as well as to make upgrading easier, common system code is : kept in one place and shared between programs. This particular package : contains the most important sets of shared libraries: the standard C : library and the standard math library.
🌐
OpenGenus
iq.opengenus.org › install-specific-version-of-glibc
Install specific version of Glibc
October 17, 2022 - wget http://ftp.gnu.org/gnu/libc/glibc-2.36.tar.gz tar -xvf glibc-2.36.tar.gz cd glibc-2.36 mkdir build mkdir glibc-2.36-install cd build ~/glibc/glibc-2.36/configure --prefix=$HOME/glibc/glibc-2.36-install make -j make install · With this article at OpenGenus, you must be able to install any version of Glibc.
🌐
Reddit
reddit.com › r/cpp_questions › gcc on ubuntu: how to build static binary, or build for older versions of glibc?
r/cpp_questions on Reddit: GCC on Ubuntu: How to build static binary, or build for older versions of GLIBC?
February 10, 2023 -

I'm on gcc 11.2.0 which uses GLIBC 2.35. I'm trying to build for a colleague's VM, but it is complaining about GLIBC versions missing.

How can I either:

  1. Compile an executable that can run without dependencies?

  2. Control which GLIBC version is used? The best idea I have is to do a custom gcc build, but I'm having issues with my embedded toolchain interfering.

For #1, here is what I believe is the relevant portion of my current CMakeLists:

add_executable(myapp src/main.cpp ${myapp_core} ${myapp_data_structures} ${myapp_parser} ${myapp_utils} ${myapp_tests})

target_include_directories(myapp PRIVATE ./include)
target_include_directories(myapp PRIVATE ${Boost_INCLUDE_DIR})
target_link_libraries(myapp PRIVATE ${Boost_LIBRARIES})
target_link_directories(myapp PRIVATE ${Boost_LIBRARY_DIRS})

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
    message(STATUS "Debug build")
    set(myapp_warning_flags -Wall -Wextra -Wpedantic -Wno-sign-compare)
elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
    message(STATUS "Release build")
    set(myapp_warning_flags -Wall -Wextra -Wpedantic -Wno-sign-compare)
    set(myapp_optimization_flags -O3 -msse4.2)

    if(${myapp_static_build})
        message(STATUS "Static build")
        set(myapp_linker_flags -static-libgcc -static-libstdc++ -static)
        set(DBUILD_SHARED_LIBS OFF)
        set(BUILD_SHARED_LIBS OFF)
        set(Boost_USE_STATIC_LIBS ON)
    else()
        message(STATUS "Dynamic build")
        set(myapp_linker_flags)
        set(DBUILD_SHARED_LIBS ON)
        set(BUILD_SHARED_LIBS ON)
        set(Boost_USE_STATIC_LIBS OFF)
    endif()
endif()

target_compile_options(myapp PRIVATE ${myapp_warning_flags} ${myapp_optimization_flags} ${myapp_linker_flags})
🌐
Stack Overflow
stackoverflow.com › questions › 36036610 › installing-new-glibc-while-keeping-old-version
Installing new GLIBC while keeping old version - Stack Overflow
Have you read the very first paragraph of that page? configure takes many options, but the only one that is usually mandatory is --prefix. The GNU C Library cannot be compiled in the source directory. So you should read that and then run $ ../glibc-version/configure --prefix=~/libc and then make
🌐
Jertype
jertype.com › upgrading-glibc
Using newer libc on old Linux distributions - Jertype
April 21, 2018 - This will install glibc into /opt/glibc-2.14 but if you run ldd --version it will still report the old version. So how do you get your application to use the new version? You might find advice that suggests using LD_LIBRARY_PATH (ex: LD_LIBRARY_PATH=/opt/glibc-2.14/lib), but this can cause problems.
🌐
Ask Ubuntu
askubuntu.com › questions › 1056509 › how-to-build-older-version-of-glibc
16.04 - How to build older version of glibc? - Ask Ubuntu
July 16, 2018 - The almighty google suggests this ... building older glibc with newer binutils - see for example glibc: add patch fixing the build with binutils 2.29 ... Find the answer to your question by asking. Ask question ... See similar questions with these tags. ... 6 How can I use a later version of GCC than the system runtimes support? Can software built with it run on a system with only normal packages installed...
Find elsewhere
🌐
Reddit
reddit.com › r/appimage › script to install newer glibc versions on older distributions (for testing purposes)
r/AppImage on Reddit: Script to install newer GLIBC versions on older distributions (for testing purposes)
January 30, 2022 -

Hi all, as some of you have already read on my previous post, I'm still testing the latest GLIBC versions on Ubuntu 18.04 to make AppImages compiled from newer distributions like Debian Unstable run smoothly.

Now I have created five scripts, each one will easily compile the latest versions of glibc for you (ie glibc-2.30, glibc-2.31, glibc-2.32, glibc-2.33 and glibc-2.34) into a dedicated directory in /opt.

For now these are for testing purposes only, you can do whatever you want with them.

My goal is to create a simple "glibc-$VERSION" command to run a newer AppImage. For now, the script that you will find in /opt/glibc-$VERSION at the end of the installation returns some errors that may be useful to better understand how to act.

As with any program installed via AM, you'll have the ability to edit the main script without having to use root privileges, and there's the ability to install / remove everything even without using AM.

To install/remove (for example) glibc-2.33 with AM:

sudo am -i glibc-2.33 or sudo am install glibc-2.33

sudo am -r glibc-2.33 or sudo am remove glibc-2.33

To install/remove glibc-2.33 without AM:

wget https://raw.githubusercontent.com/ivan-hc/AM-application-manager/main/programs/x86_64/glibc-2.33 && chmod a+x ./glibc-2.33 && sudo ./glibc-2.33

sudo /opt/glib-2.33/remove

If you want to test a newer AppImage from Debian Unstable (GLIBC 2.33 or newer) on older systems using programs managed by AM, try to install abiword, asunder, audacious, gimp, handbrake or vlc.

Contact me here or at https://github.com/ivan-hc/AM-application-manager

Thanks again to anyone who decides to carry out these experiments with me.

🌐
Reddit
reddit.com › r/linuxprojects › script to install newer glibc versions on older distributions (for testing purposes)
r/linuxprojects on Reddit: Script to install newer GLIBC versions on older distributions (for testing purposes)
January 30, 2022 - Script to install newer GLIBC versions on older distributions (for testing purposes) upvotes · · comments · Share · Add a Comment · Be the first to comment · Nobody's responded to this post yet. Add your thoughts and get the conversation going. Top 9% Rank by size · r/ChromeOSFlex · r/ChromeOSFlex · Discussions related specifically to ChromeOS Flex, an official method for installing a form of ChromeOS on (nearly) any device!
🌐
Reddit
reddit.com › r/redhat › is it possible to install older glibc (from rhel7) on rhel 8?
r/redhat on Reddit: Is it possible to install older glibc (from Rhel7) on rhel 8?
May 21, 2023 -

Hello everyone,

Is there a safe way to install older glibc on redhat 8 so I can get legacy applications that support older rhel 7 to run?

I was able to install the older rpm into a second directory, but when I tried to launch the application, it didn't use that glibc. If I try to ld_library_path, it breaks everything else since, of course, rhel 8 uses newer system glibc. Is there a way around this? Or do I need to use chroot or container of centos7?

Thanks

🌐
GitHub
github.com › commercialhaskell › stack › issues › 1214
Support older version of glibc or for ease of install have a static build of stack available? · Issue #1214 · commercialhaskell/stack
October 21, 2015 - I wanted to get stack so I could use the whole stack docker workflow to automatically pull down, build on a newer image and then ship a newer container (Ubuntu Trusty) with the executables. So what I did to workaround the glibc issue was to grab alpine linux and build a static-linked musl version of stack and then share out that binary to the Lucid hosts, and then I was able to use stack to manage the docker build part of the project.
Author   commercialhaskell
Top answer
1 of 2
29

If you need glibc version other than the one shipped with ubuntu, one way is to install manually to a temp location in your $HOME. (installing in /usr would mess up with existing glibc in case something goes wrong)

mkdir $HOME/glibc/ && cd $HOME/glibc
wget http://ftp.gnu.org/gnu/libc/glibc-2.32.tar.gz
tar -xvzf glibc-2.32.tar.gz
mkdir build 
mkdir glibc-2.32-install
cd build
~/glibc/glibc-2.32/configure --prefix=$HOME/glibc/glibc-2.32-install
make
make install

Now you should have glibc 2.32 installed in the installation directory. You may check with ~/glibc/glibc-2.32-install/bin/ldd --version

2 of 2
1

Building on Shalini's answer,

#!/bin/bash

SOFTWARE_NAME=$1
SOFTWARE_VERSION=$2

export DOWNLOAD_INSTALL_DIR=$SOFTWARE_NAME-$SOFTWARE_VERSION-download-install
if [ -f $DOWNLOAD_INSTALL_DIR ];
then
    rm -fr $DOWNLOAD_INSTALL_DIR
    echo "Remove $DOWNLOAD_INSTALL_DIR"
fi

mkdir $HOME/$DOWNLOAD_INSTALL_DIR/ && cd $HOME/$DOWNLOAD_INSTALL_DIR

echo "Current directory at $PWD"

export DOWNLOADED_TAR=$HOME/$DOWNLOAD_INSTALL_DIR/$SOFTWARE_NAME-$SOFTWARE_VERSION.tar.gz
if [ ! -f $DOWNLOADED_TAR ]; then
    wget https://ftp.gnu.org/gnu/$SOFTWARE_NAME/$SOFTWARE_NAME-$SOFTWARE_VERSION.tar.gz -P $HOME/$DOWNLOAD_INSTALL_DIR
    echo "Software is downloaded: $SOFTWARE_NAME, version = $SOFTWARE_VERSION "
else
    echo "Software is ALREADY downloaded: $SOFTWARE_NAME, version = $SOFTWARE_VERSION at $DOWNLOADED_TAR"
fi
tar -xvzf $DOWNLOADED_TAR -C $HOME/$DOWNLOAD_INSTALL_DIR
mkdir $HOME/$DOWNLOAD_INSTALL_DIR/build
export SOURCE_DIR=$HOME/$DOWNLOAD_INSTALL_DIR/$SOFTWARE_NAME-$SOFTWARE_VERSION-install
mkdir $SOURCE_DIR
cd $HOME/$DOWNLOAD_INSTALL_DIR/build
~/$DOWNLOAD_INSTALL_DIR/$SOFTWARE_NAME-$SOFTWARE_VERSION/configure --prefix=$SOURCE_DIR
make
make install

export SOFTWARE_PATH=$HOME/$DOWNLOAD_INSTALL_DIR/$SOFTWARE_NAME-$SOFTWARE_VERSION-install/bin/$SOFTWARE_NAME
if [ -f $SOFTWARE_PATH ]; then
    echo "Software is found: $SOFTWARE_NAME, version = $SOFTWARE_VERSION at $SOFTWARE_PATH"
    mv $SOFTWARE_PATH $GRAND_ROOT_BIN
fi

You can use the script like so bash script-name.sh bison 3.8 for downloading GNU's bison with version number 3.8.

🌐
Reddit
reddit.com › r/debian › how do i get a newer version of glibc? (2.38 or above?)
r/debian on Reddit: How do i get a newer version of glibc? (2.38 or above?)
June 9, 2024 -

Basically im trying to run a game but it requires at least glibc 2.38 but it seems debian only offers 2.36 at the moment. Any way i can get a newer vesion of it?

EDIT: ended up just downloading the windows version of the game and running it with wine, im an idiot and thought i was having a problem with the sound when i first downloaded, that's why i tried the linux binary, but when i ran it with wine again i found out that the game came muted by default and that i had to press + to get the volume up

🌐
Puppy Linux Discussion Forum
oldforum.puppylinux.com › board index › house training › users ( for the regulars )
How do I install more recent versions of glibc? - (old)Puppy Linux Discussion Forum
I think I have glibc 2.17 currently installed and use Slacko64 6.3.0 Thanks! ... It is not recommended to upgrade glibc and core libraries in any puppy as general way to run a program. You have to wait for a more recent puppy. Allthough in this forum there are documented hacks to run programs with a glibc upgrade.
🌐
Arch Linux Forums
bbs.archlinux.org › viewtopic.php
How to build against a specific version of glibc, what options? / GNU/Linux Discussion / Arch Linux Forums
January 31, 2024 - On topic: What you're trying to do will realistically not work. => Create a VM and install some distro/version that's using the desired version of glibc and create the appimage there. You could also install an older OS on a parallel partition and chroot there, but that has no advantages.
🌐
Reddit
reddit.com › r/ubuntu › how do i update glibc?
r/Ubuntu on Reddit: How do I update GLIBC?
July 24, 2025 -

I’m currently using GLIBC 2.35 on Ubuntu 22.04, and I want to update it (for gaming purposes).

I’m also aware that updating it isn’t as simple as typing:

“sudo apt update GLIBC yada yada”

or whatever, so I’m not entirely sure how to update it properly without bricking my install.

Any ideas on what to do?