Find answers, ask questions, and connect with our <br>community around the world.

Home Forums OpenFOAM Forum OpenFoam Installation Error

  • OpenFoam Installation Error

    Posted by William on November 2, 2023 at 8:16 pm

    After executing the following line according the instructions

    william@william:~/OpenFOAM/OpenFOAM-v2306$ source etc/bashrc

    It appears the following message

    Warn: could not determine prefix for system-openmpi
    No completions for /home/william/OpenFOAM/OpenFOAM-v2306/platforms/linux64GccDPInt32Opt/bin
    [ignore if OpenFOAM is not yet compiled]

    Although I after check the system and works, when I tried to execute the line

    william@william:~/OpenFOAM/OpenFOAM-v2306$ ./Allwmake

    It appears the following message

    gcc=
    clang=
    mpirun=
    make=
    cmake=
    wmake=/home/william/OpenFOAM/OpenFOAM-v2306/wmake/wmake
    m4=
    flex=
    
    compiler=unknown
    
    ========================================
    2023-11-02 09:42:43 +0100
    Starting compile OpenFOAM-v2306 Allwmake
      Gcc system compiler []
      linux64GccDPInt32Opt, with SYSTEMOPENMPI sys-openmpi
    ========================================
    
    /home/william/OpenFOAM/OpenFOAM-v2306/wmake/src/Allmake: 42: make: not found
    

    I do not know if there is not the file Allwmake or other thing.

    william@william:~/OpenFOAM/OpenFOAM-v2306$ ls
    Allwmake bin COPYING etc modules src wmake
    applications CONTRIBUTORS.md doc META-INFO README.md tutorials

    MIDHUN replied 5 months ago 3 Members · 15 Replies
  • 15 Replies
  • MIDHUN

    Member
    November 3, 2023 at 5:59 pm

    It could be due to missing dependencies.

    sudo apt install make

    sudo apt-get install gcc

    You can give these commands then again run ./Allwmake (for faster compilation you can use the steps listed below)

    You can use lscpu to get the information about number of cores that
    are used.

    Similarly run

    ./Allwmake -j
    4 4 stands for number of cores this can help in faster compilation.

    You can ignore this error when you give sourcing command that is source /etc/bashrc and start compiling openfoam , so once openfoam is fully compiled then when you give source etc/bashrc then it won’t show any warnings.

    Regards
    M Midhun

  • Roshan

    Member
    November 6, 2023 at 10:07 am

    Hi sir, whenever I type source etc/bashrc, I get a message that warns ‘Could not determine prefix for system-openmpi

    No completions for /home/ross/OpenFOAM/OpenFOAM-v2306/platforms/linux64GccDPInt320pt/bin

    [ignore if OpenFOAM is not yet compiled]’

  • MIDHUN

    Member
    November 7, 2023 at 8:01 am

    Haie

    Can you please share a screenshot for same .Where you able to run ./Allwmake and complete the installation. If so did you do sourcing by changing adding the source command in bashrc file can you please update these details.

    • Roshan

      Member
      November 8, 2023 at 12:38 am

      These are the screenshots of the messages I’m getting sir.

  • MIDHUN

    Member
    November 8, 2023 at 6:49 am

    Haie,

    It could be due to missing dependencies , you can use. Run these commands

    sudo apt install make

    sudo apt-get install g++

    sudo apt-get install gcc

    Then rerun ./Allwmake -j 3

    Like 3 indicates number of processors

    Regards
    Flowthermolab Support Team

    • Roshan

      Member
      November 8, 2023 at 11:40 am

      I tried your suggestion sir, it worked, but in the end it showed me this error message sir.

      • Roshan

        Member
        November 8, 2023 at 5:40 pm

        I deleted the previous files and tried installling it again, and got this error message.

        • MIDHUN

          Member
          November 9, 2023 at 5:57 am

          Please do not delete anything its due to missing dependencies give this command

          For mpi-

          sudo apt install libopenmpi-dev

          Then rerun ./Allwmake

          You can use lscpu to get the information about number of cores that are used.

          Similarly run ./Allwmake -j 4 4 stands for number of cores this can help in faster compilation.

          • Roshan

            Member
            November 9, 2023 at 9:14 am

            Thanks sir, I tried the fix but got another error this time.

  • MIDHUN

    Member
    November 10, 2023 at 5:36 am

    sudo apt-get install flex

    Then rerun ./Allwmake as suggested above

    • Roshan

      Member
      November 11, 2023 at 3:29 am

      I executed ./Allwmake and it ran for a long time but in the end it gave me this error, I executed it again and this time it didn’t give me any error.

    • Roshan

      Member
      November 11, 2023 at 3:29 am

      When I executed foamInstallationTest, I got this error

      • MIDHUN

        Member
        November 13, 2023 at 7:26 am

        It seems there is some issue can you please run ./Allwmake and see some small error likes some file, something ,can you please check it.

        • Roshan

          Member
          November 14, 2023 at 6:09 pm

          I cant run ./Allwmake without deletig the files and starting the procedure from first, if I execute ./Allwmake, it gives me this error. I will delete the files and re-run ./Allwmake and revert back.

          • MIDHUN

            Member
            November 15, 2023 at 5:28 am

            Haie ,

            Can you please write to support (support@flowthermolab.com) to fix issue via call.

            Regards

            M Midhun

Log in to reply.

error: Content is protected !!