Skip to content

GLIBC_2.25 not found on AmazonLinux

0

I compiled "php-cgi" binaries using php 7.3 on latest amazonlinux AMI to be able to run wordpress in lambda environment. Amazon Linux is showing GLIBC 2.26 version and the binaries that I built says that it requires GLIBC_2.25. I am confused why there even is a conflict when the program is compiled against Glibc version 2.26. Tried to downgrade glibc to 2.25 and a lot of things broke. How do I resolve this?

From cloudwatch logs:
./bin/php-cgi: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by ./bin/php-cgi)

#yum info glibc
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
255 packages excluded due to repository priority protections
Installed Packages
Name : glibc
Arch : x86_64
Version : 2.26
Release : 32.amzn2.0.1
Size : 13 M
Repo : installed
Summary : The GNU libc libraries
URL : http://www.gnu.org/software/glibc/

#strings /usr/lib64/libc.so.6 | grep ^GLIBC_
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_2.15
GLIBC_2.16
GLIBC_2.17
GLIBC_2.18
GLIBC_2.22
GLIBC_2.23
GLIBC_2.24
GLIBC_2.25
GLIBC_2.26
GLIBC_PRIVATE
GLIBC_2.26
GLIBC_2.25
GLIBC_2.23
GLIBC_2.8
GLIBC_2.5
GLIBC_2.9
GLIBC_2.7
GLIBC_2.6
GLIBC_2.18
GLIBC_2.11
GLIBC_2.16
GLIBC_2.17
GLIBC_2.13
GLIBC_2.2.6/lib64/libc.so.6: version `GLIBC_2.25' not found

asked 7 years ago4.7K views
2 Answers
0

Same issue here but am trying out new AWS IoT Device SDK V2

Getting below error when attempting to start device-example.js to test a new device connection option we need for custom dns iot endpoints

Error: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /home/ec2-user/aws/node_modules/aws-crt/dist/bin/linux-x64/aws-crt-nodejs.node)

[ec2-user@ip-172-31-26-224 examples]$ yum info glibc
Loaded plugins: priorities, update-motd, upgrade-helper
Installed Packages
Name : glibc
Arch : x86_64
Version : 2.17
Release : 292.180.amzn1
Size : 14 M
Repo : installed
From repo : amzn-updates
Summary : The GNU libc libraries
URL : http://www.gnu.org/software/glibc/
License : LGPLv2_ and LGPLv2_ with exceptions and GPLv2+
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. Without these two libraries, a
: Linux system will not function.

Available Packages
Name : glibc
Arch : i686
Version : 2.17
Release : 292.180.amzn1
Size : 6.3 M
Repo : amzn-updates/latest
Summary : The GNU libc libraries
URL : http://www.gnu.org/software/glibc/
License : LGPLv2_ and LGPLv2_ with exceptions and GPLv2+
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. Without these two libraries, a
: Linux system will not function.

answered 6 years ago
0

If you are running glibc 2.28 or below on RHEL 8, the OS does not include GLIBC_2.32, which is required by the precompiled aws_signing_helper binary.

To resolve this, compile the helper manually by following the steps below:

yum -y install git golang-go; git clone https://github.com/aws/rolesanywhere-credential-helper.git; cd /root/rolesanywhere-credential-helper/; make release; cd /root/rolesanywhere-credential-helper/build/bin; ./aws_signing_helper;

/usr/local/aws/build/bin/aws_signing_helper A tool that utilizes certificates and their associated private keys to sign requests to AWS IAM Roles Anywhere's CreateSession API and retrieve temporary AWS security credentials. This tool exposes multiple commands to make credential retrieval and rotation more convenient.

Usage: aws_signing_helper [command] [flags] aws_signing_helper [command]

Available Commands: completion Generate the autocompletion script for the specified shell credential-process Retrieve AWS credentials in the appropriate format for external credential processes help Help about any command read-certificate-data Diagnostic command to read certificate data serve Serve AWS credentials through a local endpoint sign-string Signs a fixed string using the passed-in private key (or reference to private key) update Updates a profile in the AWS credentials file with new AWS credentials version Prints the version number of the credential helper

Flags: -h, --help help for aws_signing_helper

Use "aws_signing_helper [command] --help" for more information about a command.

Resolved

answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.