OpenFOAM Copiling Error











up vote
0
down vote

favorite












It's been a week since I start to try install OpenFOAM.
I'm trying to install OpenFOAM v1806 on my labtop.
Unfortunately I faced some error while I tried to build OpenFOAM with the normal 64-bit integer support by typing "source $HOME/OpenFOAM/OpenFOAM-v1806/etc/bashrc WM_LABEL_SIZE=64"



Can you give me any advices or clues to solve this problem?



Thank you in advances.



The error messages are as follows:



-bash: eval: line 38: syntax error near unexpected token `('
-bash: eval: line 38: `PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program:Files:(x86)/Intel/iCLS:Client:Files/Intel/iCLS:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:(x86)/Intel/Intel(R):Management:Engine:Components/DAL:Files/Intel/Intel(R):Components/IPT:/mnt/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps:/snap/bin'
-bash: eval: line 62: syntax error near unexpected token `('
-bash: eval: line 62: `PATH=/home/jwhan/OpenFOAM/jwhan-v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/site/v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/wmake:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program:Files:(x86)/Intel/iCLS:Client:Files/Intel/iCLS:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:(x86)/Intel/Intel(R):Management:Engine:Components/DAL:Files/Intel/Intel(R):Components/IPT:/mnt/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps:/snap/bin:'
No completion added for /home/jwhan/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt64Opt/bin
... incorrect platform, or not yet compiled?
-bash: eval: line 38: syntax error near unexpected token `('
-bash: eval: line 38: `PATH=/home/jwhan/OpenFOAM/ThirdParty-v1806/platforms/linux64Gcc/gperftools-2.5/bin:/home/jwhan/OpenFOAM/jwhan-v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/site/v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/wmake:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program:Files:(x86)/Intel/iCLS:Client:Files/Intel/iCLS:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:(x86)/Intel/Intel(R):Management:Engine:Components/DAL:Files/Intel/Intel(R):Components/IPT:/mnt/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps:/snap/bin'









share|improve this question




























    up vote
    0
    down vote

    favorite












    It's been a week since I start to try install OpenFOAM.
    I'm trying to install OpenFOAM v1806 on my labtop.
    Unfortunately I faced some error while I tried to build OpenFOAM with the normal 64-bit integer support by typing "source $HOME/OpenFOAM/OpenFOAM-v1806/etc/bashrc WM_LABEL_SIZE=64"



    Can you give me any advices or clues to solve this problem?



    Thank you in advances.



    The error messages are as follows:



    -bash: eval: line 38: syntax error near unexpected token `('
    -bash: eval: line 38: `PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program:Files:(x86)/Intel/iCLS:Client:Files/Intel/iCLS:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:(x86)/Intel/Intel(R):Management:Engine:Components/DAL:Files/Intel/Intel(R):Components/IPT:/mnt/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps:/snap/bin'
    -bash: eval: line 62: syntax error near unexpected token `('
    -bash: eval: line 62: `PATH=/home/jwhan/OpenFOAM/jwhan-v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/site/v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/wmake:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program:Files:(x86)/Intel/iCLS:Client:Files/Intel/iCLS:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:(x86)/Intel/Intel(R):Management:Engine:Components/DAL:Files/Intel/Intel(R):Components/IPT:/mnt/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps:/snap/bin:'
    No completion added for /home/jwhan/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt64Opt/bin
    ... incorrect platform, or not yet compiled?
    -bash: eval: line 38: syntax error near unexpected token `('
    -bash: eval: line 38: `PATH=/home/jwhan/OpenFOAM/ThirdParty-v1806/platforms/linux64Gcc/gperftools-2.5/bin:/home/jwhan/OpenFOAM/jwhan-v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/site/v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/wmake:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program:Files:(x86)/Intel/iCLS:Client:Files/Intel/iCLS:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:(x86)/Intel/Intel(R):Management:Engine:Components/DAL:Files/Intel/Intel(R):Components/IPT:/mnt/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps:/snap/bin'









    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      It's been a week since I start to try install OpenFOAM.
      I'm trying to install OpenFOAM v1806 on my labtop.
      Unfortunately I faced some error while I tried to build OpenFOAM with the normal 64-bit integer support by typing "source $HOME/OpenFOAM/OpenFOAM-v1806/etc/bashrc WM_LABEL_SIZE=64"



      Can you give me any advices or clues to solve this problem?



      Thank you in advances.



      The error messages are as follows:



      -bash: eval: line 38: syntax error near unexpected token `('
      -bash: eval: line 38: `PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program:Files:(x86)/Intel/iCLS:Client:Files/Intel/iCLS:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:(x86)/Intel/Intel(R):Management:Engine:Components/DAL:Files/Intel/Intel(R):Components/IPT:/mnt/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps:/snap/bin'
      -bash: eval: line 62: syntax error near unexpected token `('
      -bash: eval: line 62: `PATH=/home/jwhan/OpenFOAM/jwhan-v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/site/v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/wmake:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program:Files:(x86)/Intel/iCLS:Client:Files/Intel/iCLS:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:(x86)/Intel/Intel(R):Management:Engine:Components/DAL:Files/Intel/Intel(R):Components/IPT:/mnt/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps:/snap/bin:'
      No completion added for /home/jwhan/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt64Opt/bin
      ... incorrect platform, or not yet compiled?
      -bash: eval: line 38: syntax error near unexpected token `('
      -bash: eval: line 38: `PATH=/home/jwhan/OpenFOAM/ThirdParty-v1806/platforms/linux64Gcc/gperftools-2.5/bin:/home/jwhan/OpenFOAM/jwhan-v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/site/v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/wmake:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program:Files:(x86)/Intel/iCLS:Client:Files/Intel/iCLS:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:(x86)/Intel/Intel(R):Management:Engine:Components/DAL:Files/Intel/Intel(R):Components/IPT:/mnt/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps:/snap/bin'









      share|improve this question















      It's been a week since I start to try install OpenFOAM.
      I'm trying to install OpenFOAM v1806 on my labtop.
      Unfortunately I faced some error while I tried to build OpenFOAM with the normal 64-bit integer support by typing "source $HOME/OpenFOAM/OpenFOAM-v1806/etc/bashrc WM_LABEL_SIZE=64"



      Can you give me any advices or clues to solve this problem?



      Thank you in advances.



      The error messages are as follows:



      -bash: eval: line 38: syntax error near unexpected token `('
      -bash: eval: line 38: `PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program:Files:(x86)/Intel/iCLS:Client:Files/Intel/iCLS:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:(x86)/Intel/Intel(R):Management:Engine:Components/DAL:Files/Intel/Intel(R):Components/IPT:/mnt/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps:/snap/bin'
      -bash: eval: line 62: syntax error near unexpected token `('
      -bash: eval: line 62: `PATH=/home/jwhan/OpenFOAM/jwhan-v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/site/v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/wmake:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program:Files:(x86)/Intel/iCLS:Client:Files/Intel/iCLS:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:(x86)/Intel/Intel(R):Management:Engine:Components/DAL:Files/Intel/Intel(R):Components/IPT:/mnt/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps:/snap/bin:'
      No completion added for /home/jwhan/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt64Opt/bin
      ... incorrect platform, or not yet compiled?
      -bash: eval: line 38: syntax error near unexpected token `('
      -bash: eval: line 38: `PATH=/home/jwhan/OpenFOAM/ThirdParty-v1806/platforms/linux64Gcc/gperftools-2.5/bin:/home/jwhan/OpenFOAM/jwhan-v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/site/v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/platforms/linux64GccDPInt64Opt/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/bin:/home/jwhan/OpenFOAM/OpenFOAM-v1806/wmake:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program:Files:(x86)/Intel/iCLS:Client:Files/Intel/iCLS:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0:/mnt/c/Windows/System32/OpenSSH:(x86)/Intel/Intel(R):Management:Engine:Components/DAL:Files/Intel/Intel(R):Components/IPT:/mnt/c/Users/Administrator/AppData/Local/Microsoft/WindowsApps:/snap/bin'






      18.04






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 29 at 21:58









      waltinator

      21.8k74169




      21.8k74169










      asked Nov 29 at 21:32









      JiWoong Han

      1




      1






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          It's all those directories from your /mnt/c drive/mount that contain weird characters like parentheses and spaces, confusing the OpenFOAM build script. You have a few options:




          1. Umount /mnt/c while you build OpenFOAM, once it's built, you can remount.


          2. sudo apt-get install openfoam; version 4.1 is available on ubuntu 18.04's repositories and you don't need to compile it.






          share|improve this answer





















          • Thanks for your answer.
            – JiWoong Han
            Dec 4 at 15:11










          • You're welcome! If it helped, don't forget to "accept" it so it gets marked as the correct answer.
            – roadmr
            Dec 5 at 17:28











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1097270%2fopenfoam-copiling-error%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          It's all those directories from your /mnt/c drive/mount that contain weird characters like parentheses and spaces, confusing the OpenFOAM build script. You have a few options:




          1. Umount /mnt/c while you build OpenFOAM, once it's built, you can remount.


          2. sudo apt-get install openfoam; version 4.1 is available on ubuntu 18.04's repositories and you don't need to compile it.






          share|improve this answer





















          • Thanks for your answer.
            – JiWoong Han
            Dec 4 at 15:11










          • You're welcome! If it helped, don't forget to "accept" it so it gets marked as the correct answer.
            – roadmr
            Dec 5 at 17:28















          up vote
          1
          down vote













          It's all those directories from your /mnt/c drive/mount that contain weird characters like parentheses and spaces, confusing the OpenFOAM build script. You have a few options:




          1. Umount /mnt/c while you build OpenFOAM, once it's built, you can remount.


          2. sudo apt-get install openfoam; version 4.1 is available on ubuntu 18.04's repositories and you don't need to compile it.






          share|improve this answer





















          • Thanks for your answer.
            – JiWoong Han
            Dec 4 at 15:11










          • You're welcome! If it helped, don't forget to "accept" it so it gets marked as the correct answer.
            – roadmr
            Dec 5 at 17:28













          up vote
          1
          down vote










          up vote
          1
          down vote









          It's all those directories from your /mnt/c drive/mount that contain weird characters like parentheses and spaces, confusing the OpenFOAM build script. You have a few options:




          1. Umount /mnt/c while you build OpenFOAM, once it's built, you can remount.


          2. sudo apt-get install openfoam; version 4.1 is available on ubuntu 18.04's repositories and you don't need to compile it.






          share|improve this answer












          It's all those directories from your /mnt/c drive/mount that contain weird characters like parentheses and spaces, confusing the OpenFOAM build script. You have a few options:




          1. Umount /mnt/c while you build OpenFOAM, once it's built, you can remount.


          2. sudo apt-get install openfoam; version 4.1 is available on ubuntu 18.04's repositories and you don't need to compile it.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 29 at 21:47









          roadmr

          26.9k56378




          26.9k56378












          • Thanks for your answer.
            – JiWoong Han
            Dec 4 at 15:11










          • You're welcome! If it helped, don't forget to "accept" it so it gets marked as the correct answer.
            – roadmr
            Dec 5 at 17:28


















          • Thanks for your answer.
            – JiWoong Han
            Dec 4 at 15:11










          • You're welcome! If it helped, don't forget to "accept" it so it gets marked as the correct answer.
            – roadmr
            Dec 5 at 17:28
















          Thanks for your answer.
          – JiWoong Han
          Dec 4 at 15:11




          Thanks for your answer.
          – JiWoong Han
          Dec 4 at 15:11












          You're welcome! If it helped, don't forget to "accept" it so it gets marked as the correct answer.
          – roadmr
          Dec 5 at 17:28




          You're welcome! If it helped, don't forget to "accept" it so it gets marked as the correct answer.
          – roadmr
          Dec 5 at 17:28


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1097270%2fopenfoam-copiling-error%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Mont Emei

          Province de Neuquén

          Journaliste