从我开始安装OpenFOAM到现在已经一个星期了。我正试图在我的实验室顶部安装OpenFOAM v1806。不幸的是,当我试图通过键入"source $HOME/OpenFOAM/OpenFOAM-v1806/etc/bashrc WM_LABEL_SIZE=64“构建具有普通64位整数支持的D0时,我遇到了一些错误。
你能给我一些解决这个问题的建议或线索吗?
谢谢你的预支。
错误消息如下:
-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'发布于 2018-11-29 21:47:26
/mnt/c驱动器/挂载中的所有目录都包含奇怪的字符,如括号和空格,使OpenFOAM构建脚本混乱。你有几个选择:
/mnt/c时,一旦构建了OpenFOAM,就可以重装。sudo apt-get install openfoam;Version4.1可以在ubuntu18.04‘S库上使用,您不需要编译它。https://askubuntu.com/questions/1097270
复制相似问题