Results 1 to 3 of 3

Thread: Open SUSE 11.2 and OpenFOAM, getting rid of GLIBCXX_3.4.11 n

  1. #1

    Question Open SUSE 11.2 and OpenFOAM, getting rid of GLIBCXX_3.4.11 n

    first, the thread title field did not allow the insertion of the title I wanted, so here it is:

    Open SUSE 11.2 and OpenFOAM, getting rid of (GLIBCXX_3.4.11 not found error message)

    using Yast, I was able to search for libstdc++ on my computer, checking the technical data for each one, I finally found that libstdc++44 provides this GLIBCXX_3.4.1 (/usr/lib64/libstdc++.so.6 and /usr/lib64/libstdc++.so.6.0.12),
    so here are the steps I followed:-
    1- cd OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64
    2- mv libstdc++.so.6 libstdc++.so.6.original
    3- ln -s /usr/lib64/libstdc++.so.6 libstdc++.so.6

    Now when I start compiling OpenFOAM I do not get this dreadful error message. A step forward better than yesterday.

    To compile the OpenFOAM, I have to run another script, provided by the developers of the programme, i.e. Allwmake, here is what I do:-
    1- cd OpenFOAM
    2- cd OpenFOAM-1.6.x
    3- ./Allwmake > error.log

    This last line is supposed to collect all messages produced during compilation (so I can check what other errors are being produced and trying to solve them)
    But this does not happen, the file collects parts of the messages but not all.
    I need to read all the messages
    How could I modify step 3 in order to collect every thing that appears on the terminal window
    Could you please try and help me
    I will appreciate any hints
    Thank you and Good luck to all
    May the year 2010 be happier than 2009 for all


    ................... Open Source for ever ..............

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,655
    Blog Entries
    15

    Default Re: Open SUSE 11.2 and OpenFOAM, getting rid of GLIBCXX_3.4.11 n

    Quote Originally Posted by rhoahmed
    first, the thread title field did not allow the insertion of the title I
    wanted, so here it is:

    Open SUSE 11.2 and OpenFOAM, getting rid of (GLIBCXX_3.4.11 not found
    error message)

    using Yast, I was able to search for libstdc++ on my computer, checking
    the technical data for each one, I finally found that libstdc++44
    provides this GLIBCXX_3.4.1 (/usr/lib64/libstdc++.so.6 and
    /usr/lib64/libstdc++.so.6.0.12),
    so here are the steps I followed:-
    1- cd OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64
    2- mv libstdc++.so.6 libstdc++.so.6.original
    3- ln -s /usr/lib64/libstdc++.so.6 libstdc++.so.6

    Now when I start compiling OpenFOAM I do not get this dreadful error
    message. A step forward better than yesterday.

    To compile the OpenFOAM, I have to run another script, provided by the
    developers of the programme, i.e. Allwmake, here is what I do:-
    1- cd OpenFOAM
    2- cd OpenFOAM-1.6.x
    3- ./Allwmake > error.log

    This last line is supposed to collect all messages produced during
    compilation (so I can check what other errors are being produced and
    trying to solve them)
    But this does not happen, the file collects parts of the messages but
    not all.
    I need to read all the messages
    How could I modify step 3 in order to collect every thing that appears
    on the terminal window
    Could you please try and help me
    I will appreciate any hints
    Thank you and Good luck to all
    May the year 2010 be happier than 2009 for all


    ................... Open Source for ever ..............
    Hi
    Just use nohup, it will create a file called nohup.out for you to
    review.
    Code:
    nohup ./Allwmake
    --
    Cheers Malcolm (Linux Counter #276890)
    openSUSE 11.2 (i586) Kernel 2.6.31.5-0.1-desktop
    up 3:52, 1 user, load average: 0.08, 0.11, 0.12
    ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME


  3. #3

    Default Re: Open SUSE 11.2 and OpenFOAM, getting rid of GLIBCXX_3.4.

    Excellent reply

    That has produced a 205 kb of a file, what is beyond my linux expertise is the error messages produced during compilation (e.g. Error 1 or Error 2 but there are no details of what caused that Error1 or Error 2.
    I need to ask you a favor, here I give you the two scripts that I use to download the programme and Install it, I really hope that you could spare some of your time and try to duplicate these error messages and if possible correct them. That would be really a late christmas present to openfoamers on OpenSUSE.
    The point that you need to consider is that the use of OpenFOAM requires constant compilation for any simple modification that the user need to introduce.
    There are binary files available for downLoad, and they run on my computer, but they have very limited number of cases to solve. so one need to compile the programme.

    1- Script to download (and update) OpenFOAM
    run from your home directory

    #!/bin/bash
    echo
    echo
    echo "Hello "$USER
    echo
    echo "Your current directory is:- "$PWD
    echo
    if test -e OpenFOAM
    then
    echo
    echo "There is an old OpenFOAM folder, Updating source files"
    echo
    cd OpenFOAM
    cd OpenFOAM-1.6.x
    git pull
    else
    echo "No OpenFOAM folder found"
    echo
    #
    # Create a new Folder OpenFOAM
    # DownLoad the latest snapshot from the git repository
    #
    echo
    echo "Creating a new OpenFOAM folder"
    mkdir $HOME/OpenFOAM
    cd OpenFOAM
    echo
    echo "Starting to DownLoad OpenFOAM-1.6.x"
    echo
    git clone git://repo.or.cz/OpenFOAM-1.6.x.git
    echo
    echo "DownLoading ThirdParty Files for 64 bits installation"
    echo
    wget Download OpenFOAM - The Open Source CFD Toolbox from SourceForge.net
    #
    # If you are installing OpenFOAM on 32 bits platform, you need to download the following File and comment the 64 bits file
    # wget Download OpenFOAM - The Open Source CFD Toolbox from SourceForge.net
    #
    #
    wget Download OpenFOAM - The Open Source CFD Toolbox from SourceForge.net
    echo
    echo "Unpacking Third Party Ffiles"
    echo
    tar xvzf ThirdParty-1.6.General.gtgz
    #
    # If you are installing OpenFOAM on 32 bits platform, you need to uncompress the following File and comment the 64 bits file
    # tar xvzf ThirdParty-1.6linuxGcc.gtgz
    #
    tar xvzf ThirdParty-1.6.linux64Gcc.gtgz
    mv ThirdParty-1.6 ThirdParty-1.6.x
    echo
    cd ..
    echo "You need to add the following statement to your .bashrc file"
    echo "source $HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc"
    echo
    emacs .bashrc
    echo "Now you have modified your .bashrc file, Do the following"
    echo "1- Close this terminal window, then start a new one"
    echo "2- Run The InstallOpenFOAM.sh script"
    echo
    echo " That is all for now folks.........."

    fi


    2- Script to install OpenFOAM
    run from your home directory

    #!/bin/bash
    echo
    echo
    echo "Hello "$USER
    echo
    echo "Your current directory is:- "$PWD
    echo
    echo "Before compiling OpenFOAM-1.6.x, We first test the installation"
    echo
    foamSystemCheck
    #
    #
    #
    echo
    cd OpenFOAM
    cd OpenFOAM-1.6.x
    #
    #
    #
    #./Allwmake > error.log
    nohup ./Allwmake
    #
    #
    #
    echo
    echo "...................That is all folks.................."
    echo
    echo "Enjoy Your OpenFOAM experience"
    echo
    echo " Be positive and helpful towards the others "
    echo
    echo " Share your OpenFOAM experience with other Users "
    echo
    echo
    echo " Bye Bye"
    echo


    Thanks a lot for your prompt reply

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •