Table of Contents |
---|
Introduction
The GNU C Library is used as the C library in the GNU systems and most systems with the Linux kernel.
Usage
No Format |
---|
module load glibc/glibc2.14.1
OR:
module load glibc/2.25 (Please note that this uses linux3 kernel headers) |
Installation
No Format |
---|
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
No Format |
---|
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
glibc 2.25
No Format |
---|
Note:
=====
linux3 kernel headers are needed to compile this version. As we are on rhel 6.5, this cannot be done using the default header files. Header files from a rhel 7.3 installation was copied to /sw/linux/rhel73/include and it was used to compile with --with-headers=/sw/linux/rhel73/include
module purge
module load gcc/4.9.3
module load python/3.1.4
module load utils/binutils/2.27
/sw/linux/centos68/include/linux
cd /sw/gcc/glibc/2.25/src/glibc-2.25
mkdir build
cd build
cd /sw/gcc/glibc/2.25/src/glibc-2.25/build
../configure -prefix=/sw/gcc/glibc/2.25 --with-headers=/sw/linux/rhel73/include --with-selinux=no 2>&1 | tee configureLog.txt
make 2>&1 | tee makeLog.txt
make install 2>&1 | tee makeInstallLog.txt |
Reference