Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 3 Next »

Introduction

The GNU C Library is used as the C library in the GNU systems and most systems with the Linux kernel.

Usage

module load glibc/glibc2.14.1

 

Installation

 

mkdir build
cd build
../configure -prefix=/sw/gcc/glibc/glibc-2.14.1
make
make install

create a module file
>>>>>>>>>>>>>>
prepend-path     PATH /sw/gcc/glibc/glibc-2.14.1/bin:/sw/gcc/glibc/glibc-2.14.1/sbin:/sw/gcc/glibc/glibc-2.14.1/share:/sw/gcc/glibc/glibc-2.14.1/share/i18n:/sw/gcc/glibc/glibc-2.14.1/share/i18n/charmaps:/sw/gcc/glibc/glibc-2.14.1/share/i18n/locale:/sw/gcc/glibc/glibc-2.14.1/share/i18n/zoneinfo:/sw/gcc/glibc/glibc-2.14.1/libexec:/sw/gcc/glibc/glibc-2.14.1/libexec/getconf
prepend-path     LD_LIBRARY_PATH /sw/gcc/glibc/glibc-2.14.1/lib
prepend-path     INCLUDE /sw/gcc/glibc/glibc-2.14.1/include
>>>>>>>>>>>>>>>

After the install:
strace localedef -i en_US -f UTF-8 en_US.UTF-8
##Do the following after the  install
##mkdir  /sw/gcc/glibc/glibc-2.14.1/lib/locale/
##chmod 555  /sw/gcc/glibc/glibc-2.14.1/lib/locale/
##strace localedef -i en_US -f UTF-8 en_US.UTF-8

 

glibc 2.17

module load glibc/2.17
Then you need to put the path like this: 

/sw/gcc/glibc/2.17/lib/ld-linux-x86-64.so.2  --library-path /sw/gcc/glibc/2.17/lib:$LD_LIBRARY_PATH  <Your Binary>

e.g:
/sw/gcc/glibc/2.17/lib/ld-linux-x86-64.so.2  --library-path /sw/gcc/glibc/2.17/lib:$LD_LIBRARY_PATH /export/home/s2929852/myfiles/SAT-kangaroo/kangaroo/SAT/main  Benchmark/parity/par16-1.cnf -a novelty+ -e 1 -t 4 -i 1000000 -s 2769757184

Source: https://github.com/tensorflow/tensorflow/issues/2924

Reference

  1. https://www.gnu.org/software/libc/download.html

 

  • No labels