Skip to content

foamCleanPath performs strangely if username/path has @ and . characters

Dear all,

I'm trying to compile the v1606+ with standard GNU tools, on a CentOS 7 based cluster. When I source etc/bashrc, i receive a strange error, like

[lcarvalheiro@argus etc]$ source bashrc 
sed: -e expressão #1, carácter 43: opção desconhecida para 's'
sed: -e expressão #1, carácter 56: opção desconhecida para 's'
/home/lcarvalheiro@UA.PT/OpenFOAM/OpenFOAM-v1606+/bin/foamCleanPath: line 110: sed: No such file or directory
/home/lcarvalheiro@UA.PT/OpenFOAM/OpenFOAM-v1606+/bin/foamCleanPath: line 110: sed: No such file or directory
/home/lcarvalheiro@UA.PT/OpenFOAM/OpenFOAM-v1606+/bin/foamCleanPath: line 110: sed: No such file or directory
/home/lcarvalheiro@UA.PT/OpenFOAM/OpenFOAM-v1606+/bin/foamCleanPath: line 110: sed: No such file or directory
-bash: uname: No such file or directory

    Your "" operating system is not supported by this release
    of OpenFOAM. For further assistance, please contact www.OpenFOAM.com

-bash: sed: command not found
-bash: mpicc: command not found
/home/lcarvalheiro@UA.PT/OpenFOAM/OpenFOAM-v1606+/bin/foamCleanPath: line 110: sed: command not found
/home/lcarvalheiro@UA.PT/OpenFOAM/OpenFOAM-v1606+/bin/foamCleanPath: line 110: sed: command not found
-bash: sed: No such file or directory

(obviously, I get an empty PATH and LD_PATH)

If I comment the if condition in lines 108-111 on the file foamCleanPath, sourcing etc/bashrc executes without errors, but Allwmake ends with

========================================
Done ThirdParty Allwmake
========================================

+ wmakePrintBuild -check
no git description found
+ wrmo OpenFOAM/global/global.o
wrmo error: could not find Make directory
[lcarvalheiro@argus OpenFOAM-v1606+]$

Is there any way to tackle this issue? Thanks in advance