@李东岳 李老师,您好,在我将./Allwmake -j改为./Allwmake -j8后不再出现这个问题,但是出现了另一个问题
sed: can't read /home/guo/.bashrc: No such file or directory使用的安装命令还是您提供的命令,我是需要新建一个.bashrc文件吗?
命令如下:
cd $HOME && if [ ! -d "OpenFOAM" ];then mkdir OpenFOAM; fi && sudo apt update && sudo apt-get install -y build-essential flex bison git-core cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev && cd OpenFOAM && git clone https://e.coding.net/dyfluid/OpenFOAM/OpenFOAM-10.git && git clone https://e.coding.net/dyfluid/OpenFOAM/ThirdParty-10.git && source OpenFOAM-10/etc/bashrc && cd OpenFOAM-10 && ./Allwmake -j8 && sed -i '$a source $HOME/OpenFOAM/OpenFOAM-10/etc/bashrc' $HOME/.bashrc