Got it

What should I do if error "version 'GLIBC_2.14' not found" occurs?

Created: Mar 24, 2022 06:17:37Latest reply: Mar 25, 2022 04:18:10 429 5 1 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hello, everyone!

I have an issue with the NVIDIA installation.

What should I do if error "version 'GLIBC_2.14' not found" occurs? 

Thanks in advance!

  • x
  • convention:

Featured Answers
olive.zhao
Admin Created Mar 24, 2022 06:25:05

Hello, friend!

Compile and install glibc for source code. Install a correct glibc version. The following operations use glibc 2.14 as an example.

1. Compile and install glibc.

In this step, the available compilation directory size must be at least 5 GB. The following operations use /opt as an example.

a. Run the following commands to install glibc:

yum install gcc gcc-c++ make # centos/redhat
apt-get install gcc g++ make # ubuntu
zypper install gcc gcc-c++ make # suse


b. Download glibc 2.14 for configuration and compilation.

COMPILE_DIR=/opt
mkdir $COMPILE_DIR/src
cd $COMPILE_DIR/src
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
tar xzf glibc-2.14.tar.gz
cd glibc-2.14
mkdir -p $COMPILE_DIR/build/glibc-2.14
cd $COMPILE_DIR/build/glibc-2.14
$COMPILE_DIR/src/glibc-2.14/configure --prefix=$COMPILE_DIR/glibc-2.14
make -j4 #Use four CPUs for concurrent compilation. The number can be configured.
make install



2. Use glibc.

a. Import the compiled glibc library.

export LD_LIBRARY_PATH=$COMPILE_DIR/glibc-2.14/lib:$LD_LIBRARY_PATH

b. Check whether ld.so is compatible with glibc2.14.so.

ls


If the system displays error "segmentation fault" (SUSE11), go to step 2.c. Otherwise, go to step 2.d.

c. Clear the error.

unset LD_LIBRARY_PATH
GLIBC_VERSION=2.14
GLIBC_INSTALL_DIR=$COMPILE_DIR/glibc-2.14
GLIBC_SO=${GLIBC_INSTALL_DIR}/lib/ld-$GLIBC_VERSION.so
export WRAPPER="#! /bin/sh\n\$( [ -e $GLIBC_SO ] && echo $GLIBC_SO --library-path ${GLIBC_INSTALL_DIR}/lib )"
find /usr/src/kernels/$(uname -r) -type f -executable -exec bash -c 'file {} | grep -q dynamically && { mv {} {}.1; echo -e $WRAPPER \$0.1 \"\$@\" > {}; chmod +x {};} ' \;
Then, go to step 2.d.


d. Run the NVDIA installation script again.

bash /opt/NVIDIA-Linux-x86_64-375.66.run


Hope this helps!



View more
  • x
  • convention:

Saqibaz
Saqibaz Created Mar 24, 2022 06:46:01 (0) (0)
 
chantha
chantha Created Mar 24, 2022 13:01:50 (0) (0)
 
All Answers
olive.zhao
olive.zhao Admin Created Mar 24, 2022 06:25:05

Hello, friend!

Compile and install glibc for source code. Install a correct glibc version. The following operations use glibc 2.14 as an example.

1. Compile and install glibc.

In this step, the available compilation directory size must be at least 5 GB. The following operations use /opt as an example.

a. Run the following commands to install glibc:

yum install gcc gcc-c++ make # centos/redhat
apt-get install gcc g++ make # ubuntu
zypper install gcc gcc-c++ make # suse


b. Download glibc 2.14 for configuration and compilation.

COMPILE_DIR=/opt
mkdir $COMPILE_DIR/src
cd $COMPILE_DIR/src
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz
tar xzf glibc-2.14.tar.gz
cd glibc-2.14
mkdir -p $COMPILE_DIR/build/glibc-2.14
cd $COMPILE_DIR/build/glibc-2.14
$COMPILE_DIR/src/glibc-2.14/configure --prefix=$COMPILE_DIR/glibc-2.14
make -j4 #Use four CPUs for concurrent compilation. The number can be configured.
make install



2. Use glibc.

a. Import the compiled glibc library.

export LD_LIBRARY_PATH=$COMPILE_DIR/glibc-2.14/lib:$LD_LIBRARY_PATH

b. Check whether ld.so is compatible with glibc2.14.so.

ls


If the system displays error "segmentation fault" (SUSE11), go to step 2.c. Otherwise, go to step 2.d.

c. Clear the error.

unset LD_LIBRARY_PATH
GLIBC_VERSION=2.14
GLIBC_INSTALL_DIR=$COMPILE_DIR/glibc-2.14
GLIBC_SO=${GLIBC_INSTALL_DIR}/lib/ld-$GLIBC_VERSION.so
export WRAPPER="#! /bin/sh\n\$( [ -e $GLIBC_SO ] && echo $GLIBC_SO --library-path ${GLIBC_INSTALL_DIR}/lib )"
find /usr/src/kernels/$(uname -r) -type f -executable -exec bash -c 'file {} | grep -q dynamically && { mv {} {}.1; echo -e $WRAPPER \$0.1 \"\$@\" > {}; chmod +x {};} ' \;
Then, go to step 2.d.


d. Run the NVDIA installation script again.

bash /opt/NVIDIA-Linux-x86_64-375.66.run


Hope this helps!



View more
  • x
  • convention:

Saqibaz
Saqibaz Created Mar 24, 2022 06:46:01 (0) (0)
 
chantha
chantha Created Mar 24, 2022 13:01:50 (0) (0)
 
chantha
chantha Created Mar 24, 2022 13:01:57

What should I do if error "version 'GLIBC_2.14' not found" occurs?-4813043-1
View more
  • x
  • convention:

user_4358465
user_4358465 Created Mar 25, 2022 04:18:10

Interesting way to solve the problem. Thank you Olive!
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.