Problem running Basic examples

Hello Again!
I tried to run the examples inside /basics
i followed the this instructions: instructions i just source ../geant4.sh before cmake

My problem appears when executing the program.
after ./exampleB3a or ./exampleB3b in their corresponding directories i got something like this:

./exampleB3b: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./exampleB3b)
./exampleB3b: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /emph/app/ydeniz/GEANT4/geant4.10.6/geant4.10.06-install/lib64/libG4Tree.so)
./exampleB3b: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /emph/app/ydeniz/GEANT4/geant4.10.6/geant4.10.06-install/lib64/libG4Tree.so)
./exampleB3b: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /emph/app/ydeniz/GEANT4/geant4.10.6/geant4.10.06-install/lib64/libG4GMocren.so)

I’m working on SLC 7.8 with a non-root user. I installed gcc-8.2 locally, additionaly…
strings /usr/lib/libstdc++.so.6 | grep GLIBC:

    GLIBCXX_3.4
    GLIBCXX_3.4.1
    GLIBCXX_3.4.2
    GLIBCXX_3.4.3
    GLIBCXX_3.4.4
    GLIBCXX_3.4.5
    GLIBCXX_3.4.6
    GLIBCXX_3.4.7
    GLIBCXX_3.4.8
    GLIBCXX_3.4.9
    GLIBCXX_3.4.10
    GLIBCXX_3.4.11
    GLIBCXX_3.4.12
    GLIBCXX_3.4.13
    GLIBCXX_3.4.14
    GLIBCXX_3.4.15
    GLIBCXX_3.4.16
    GLIBCXX_3.4.17
    GLIBCXX_3.4.18
    GLIBCXX_3.4.19
    GLIBC_2.3
    GLIBC_2.0
    GLIBC_2.4
    GLIBC_2.1
    GLIBC_2.1.3
    GLIBC_2.3.2
    GLIBC_2.2
    GLIBCXX_DEBUG_MESSAGE_LENGTH

i attach a txt file with the full output for B3…
I Don’t really get why is this happen… some research on internet results in a possible problem with SLC itself but i not sure (i’m a linux “advanced-novice”)

Again, any help/suggestion/ would be awesome :slight_smile:

Thanks in advanced for your time guys.

yael.

outputexamples.txt (28.0 KB)

Just an update… i found all the versions required inside the local directory of my gcc-8.2.

Now… How can i tell the system to use them? Do i have to add something to my bashrc or bash_profile

Cheers, Yael.

i fixed my problem by adding this lines to my bashrc and bashprofile

LD_LIBRARY_PATH=path/to/lib64/:$LD_LIBRARY_PATH ## where path/to/ is the PATH of libstdc++.so.6 on my gcc (locally installed) updated version

export LD_LIBRARY_PATH

Thank you so much @yaelarmando_deniz for sharing this, reporting this and providing the solution. It helped me a lot today.