I tried to update my glibc library to 2.7 version. My compile process are showing here:
../configure --disable-debug --disable-dependency-tracking CFLAGS=\
"-U_FORTIFY_SOURCE -O2 -fno-stack-protector" --disable-silent-rules\
--prefix=/disk2/hyf/lib/glib-2.7
make & make install
Due to the limitation of privilege, I had to install it in non-default search directory(e.g /usr/local/lib
).
After I added /disk2/hyf/lib/glib-2.7/lib
to LD_LIBRARY_PATH
, the problem happened.
Typing ls, ll, vim
etc normal command, it all come with error Segmentation fault
.
I have searched the Internet, and found two reasons may related to the Segmentation fault
issue. (1) The glibc-2.7/lib is not compatible with gcc/lib of the system(The gcc version with the centos system is gcc 3.4 and I have also installed gcc-4.9 successfully as the replacement)
(2) The glibc-2.7 was installed at non-default path.
I have no clue to fix my problem due to any commands can't work well. How to fix this problem?
What's more, does my error effect other user(I'm a non-sudo user of the Linux cluster)?