求助CFDer,ubuntu18.04上安装OpenFOAM-7报错:g++
-
@东岳 谢谢李老师。ubuntu18.04已经是4个G内存了,还是报错。现在换成ubuntu16.04安装了一次,安装完后运行blockMesh又报错了:--> FOAM FATAL ERROR:
cannot find file "/home/king/system/controlDict"From function virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 538.
,安装历程真是一波三折呀。真的是万事开头难,我再多试试错。还想问一下李老师,这个如果安装不成功的话,需要卸载吗?还是直接从头开始再编译就可以了?
-
@东岳 又出现一个问题,安装paraFoam时候又报错了,一顿编译结束后,paraFoam无法运行,错误内容是:```
ParaView-5.6.0 exists. Not downloading... *** Error: Qt 5 version provided < 5.6 *** Please use the -qmake option to specify the location of a version of Qt >= 5.6 *** e.g. *** -qmake /usr/local/qt-5.6.0/bin/qmake *** -qmake /home/king/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/qt-5.6.0/bin/qmake
是我还需要安装Qt5.6吗?我用了代码:
sudo apt-get install qt5-default libqt5x11extras5-dev qttools5-dev curl
结果显示是5.5版本的。
-
@东岳 谢谢李老师,第一种方法试过了,结果还是不行,仍然显示如下错误信息:
king@king-machine:~/OpenFOAM/ThirdParty-7$ ./makeParaView -version 5.5.0 Downloading ParaView-5.5.0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 49.0M 100 49.0M 0 0 7344 0 1:56:40 1:56:40 --:--:-- 16042 *** Error: Qt 5 version provided < 5.6 *** Please use the -qmake option to specify the location of a version of Qt >= 5.6 *** e.g. *** -qmake /usr/local/qt-5.6.0/bin/qmake *** -qmake /home/king/OpenFOAM/ThirdParty-7/platforms/linux64Gcc/qt-5.6.0/bin/qmake
第二种方法也不可行,应该是下载链接失效了404 not found,报错信息如下:
king@king-machine:~/OpenFOAM/ThirdParty-7$ wget http://download.qt-project.org/official_releases/qt/5.6/5.6.1/qt-opensource-linux-x64-5.6.1.run --2020-05-22 10:19:10-- http://download.qt-project.org/official_releases/qt/5.6/5.6.1/qt-opensource-linux-x64-5.6.1.run 正在解析主机 download.qt-project.org (download.qt-project.org)... 77.86.229.90 正在连接 download.qt-project.org (download.qt-project.org)|77.86.229.90|:80... 已连接。 已发出 HTTP 请求,正在等待回应... 404 Not Found 2020-05-22 10:19:21 错误 404:Not Found。
我打算直接安装绿色版paraview,根据下载链接,只是下载速度极慢,下载到一半还失败了。李老师可否提供一个坚果云或者其他云盘的下载链接。谢谢。