Openfoam安装报错失败
-
使用李老师给的安装方法安装openfoam10的时候会出现以下报错:
g++: fatal error: Killed signal terminated program cc1plus compilation terminated. make: *** [/home/guo/OpenFOAM/OpenFOAM-10/wmake/rules/General/transform:26: /home/guo/OpenFOAM/OpenFOAM-10/platforms/linux64GccDPInt32Opt/src/finiteVolume/interpolation/surfaceInterpolation/schemes/pointLinear/pointLinear.o] Error 1 make: *** Waiting for unfinished jobs....
求大神指导是什么原因,使用的是win11系统,ubuntu 22.04.5 LTS,内存16GB,是不是内存太少不够用?
-
@李东岳 李老师,您好,在我将./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
-
同win11,22.04虚拟机内存8G,交换2G,编译ofV2412出现两次g++fatal error,这个时候内存及交换空间都在99%使用以上,不知道咋解决
-
感谢🙏,虚拟机总共给的4个,CSDN也查到说是并行太多,单J无后缀就是拉满,等会儿用J2重新编
2025年1月21日 07:32
3/8
2025年2月9日 07:24