|
[Sponsors] |
[foam-extend.org] Installing Foam-Extend-5.0 on Mac M1 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 27, 2022, 13:06 |
|
#3 |
Member
Ali B.
Join Date: Mar 2020
Location: abzrg.github.io
Posts: 34
Rep Power: 6 |
The bashrc file needs to be changed to check for new arm64 arch.
Code:
# etc/bashrc # ------------ ... Darwin) # this makes certain things easier export WM_ARCH_BASE=darwin case `uname -p` in ... # for m1 mac: `uname -p` == arm arm) export $WM_ARCH=darwin ... Code:
# etc/bashrc # ------------ ... cleanProg=$WM_PROJECT_DIR/bin/foamCleanPath #- Clean PATH cleanEnv=`$cleanProg "$PATH" "$foamOldDirs"` && PATH="$cleanEnv" # sed: -e expression #1, char 47: unknown option to `s' ... #- Clean PATH cleanEnv=`$cleanProg "$PATH"` && PATH="$cleanEnv" # sed: -e expression #1, char 47: unknown option to `s' ... With some printf debugging (into stderr) I found the problematic sed command in this line of code Code:
# bin/foamCleanPath # --------------------- ... duplicate=`echo " $dirList " | sed -ne "s@ $dir @DUP@p"` # ^ ^ ^ # I replaced the delimiter '@' with '|' (pipe) and error was gone ... |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] blockMesh not working in Foam Extend 4.0 | siddhesh | OpenFOAM Meshing & Mesh Conversion | 3 | April 8, 2020 05:47 |
error with reactingFoam | BakedAlmonds | OpenFOAM Running, Solving & CFD | 4 | June 22, 2016 02:21 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 18:57 |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 13:06 |
[Gmsh] Import problem | ARC | OpenFOAM Meshing & Mesh Conversion | 0 | February 27, 2010 10:56 |