小白求助OF安装问题
-
按照李老师 http://dyfluid.com/docs/install.html 这里的编译安装
到配置环境变量:在终端输入 gedit $HOME/.bashrc 会打开一个文件,我们在文件的最底部重新取一行添加下述文字:
source $HOME/OpenFOAM/OpenFOAM-5.x/etc/bashrc
保存并关闭。关闭终端并打开新的终端的时候,环境变量自动生效。这里重新打开终端以后显示
bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamEtcFile: Permission denied bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamCleanPath: Permission denied bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamCleanPath: Permission denied bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamCleanPath: Permission denied bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamEtcFile: Permission denied bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamEtcFile: Permission denied bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamEtcFile: Permission denied bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamEtcFile: Permission denied bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamEtcFile: Permission denied bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamCleanPath: Permission denied bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamCleanPath: Permission denied bash: /home/lnq/OpenFOAM/OpenFOAM-5.x/bin/foamCleanPath: Permission denied
后续操作无法进行,求大佬指导。
-
@东岳
OpenFOAM-5.x.tar和ThirdParty-5.x.tar是通过您教程里的链接,到github下载的,然后通过虚拟机共享文件夹从PC复制到ubuntu系统里头的,按教程放到OpenFOAM文件夹解压并改名之前就是通过指令安装了OpenFOAM的库
sudo apt-get install build-essential flex bison cmake zlib1g-dev libopenmpi-dev openmpi-bin qt4-dev-tools libqt4-dev libqt4-opengl-dev freeglut3-dev libqtwebkit-dev gnuplot libreadline-dev libncurses-dev libxt-dev libscotch-dev libptscotch-dev libcgal-dev