I want to run a program on CentOS, but I met problem with the libstdc++ and glibc. I can't update both because I have no root privileges, and I would like the solution to only affect this particular program.
- First, I met
so I download theversion GLIBCXX_3.4.29 not foundlibstdc++.so.6.0.29from the internet and performet
I also ranln -s /my_libstdc_path/libstdc++.so.6.0.29 /my_libstdc_path/libstdc++.so.6
before executing the program.export LD_LIBRARY_PATH=/my_libstdc_path:$LD_LIBRARY_PATH - Then, I met
I usedversion GLIBC_2.18 not found
and I found thestrings /my_libstdc_path/libstdc+++.so.6 | grep GLIBC_2.18GLIBC_2.18, this is confusing. - Just to be safe, I also downloaded the
glibc-2.18and compiled it, and addedsource ~/.bashrc export LD_LIBRARY_PATH=/my_glib_path/glibc-2.18/lib:/my_libstdc_path:$LD_LIBRARY_PATH export LD_PRELOAD=/my_glib_path/glibc-2.18/lib/libc.so.6
Now I get
151115 Segmentation fault
How can I solve it?