|
[Sponsors] |
[OpenFOAM.org] Installation problem for paraView 4.1 to go with OpenFOAM-2.4.0-MNF |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 24, 2017, 15:27 |
Installation problem for paraView 4.1 to go with OpenFOAM-2.4.0-MNF
|
#1 |
Senior Member
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 9 |
Hello folks,
I have only been a passive user (read unregistered) so far since never had to work in CFD in detail. However, now am starting to work on OpenFOAM for my project and I need a specific version of that to run along with the latest 5.0 build. I have a Ubuntu 16.04 system. I already have installed OpenFOAM 5.0 and it resides in /opt/openfoam5 folder (and it's working fine). I now need to work on a specific feature using OpenFOAM-2.4.0-MNF (https://github.com/MicroNanoFlows/Op...ee/devel-craig) which am trying to install from ~/OpenFOAM/OpenFOAM-2.4.0-MNF folder along with the unzipped Third Party folder in the same location (-MNF suffix added as instructed) Attempt #1 (Trying to install from readme of devel-craig repository) After some ups and downs I managed to get on the right track and created correct aliases for 5.0 and 2.4.0 in the ~/bashrc file and then moved on to compiling the 2.4.0 version. I ran into following messages when I ran ./Allwmake from the ThirdParty folder Code:
======================================== Done ThirdParty Allwmake ======================================== Code:
Installation complete for paraview-4.1.0 Set environment variables: ... ... Done Post this issue, I followed the advice here (Paraview not found when installing OpenFoam to Ubuntu 14.04) by @wyldckat . But same thing repeated. The same error has repeated many times even before it stopped at (what I thought was) 13%. Code:
‘GLsizeiptr’ has not been declared https://www.cfd-online.com/Forums/bl...vironment.html but to no avail. Then I came across this thread: OpenFOAM 2.4 ParaView 4.1 compilation problem which leads me to the wiki page for installation: http://openfoamwiki.net/index.php/In...u#Ubuntu_16.04 Attempt #2 (After coming across wiki page about installation of 2.4.0 on Ubuntu 16.04) So I decided to do a fresh install of OpenFOAM-2.4.0-MNF. I deleted folders in the OpenFOAM directory and I followed these instructions step-by-step: http://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-2.4.0/Ubuntu#Ubuntu_16.04 This is what I get Code:
ywb17176@mae-hen-8163-db:~/OpenFOAM$ ln -s /usr/bin/mpicc.openmpi OpenFOAM-2.4.0/bin/mpicc ln: failed to create symbolic link 'OpenFOAM-2.4.0/bin/mpicc': No such file or directory Code:
ywb17176@mae-hen-8163-db:~/OpenFOAM$ sed -i -e 's/^\(cgal_version=\).*/\1cgal-system/' OpenFOAM-2.4.0/etc/config/CGAL.sh sed: can't read OpenFOAM-2.4.0/etc/config/CGAL.sh: No such file or directory Code:
ywb17176@mae-hen-8163-db:~/OpenFOAM$ source $HOME/OpenFOAM/OpenFOAM-2.4.0-MNF/etc/bashrc WM_NCOMPPROCS=8 bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamEtcFile: No such file or directory bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-2.4.0-MNF/etc/config/settings.sh: No such file or directory bash: /opt/OpenFOAM-2.4.0-MNF/etc/config/aliases.sh: No such file or directory bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamEtcFile: No such file or directory bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamEtcFile: No such file or directory bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamEtcFile: No such file or directory bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamEtcFile: No such file or directory bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-2.4.0-MNF/bin/foamCleanPath: No such file or directory I continue with the next steps in the same terminal. I open a new terminal, run of240. At the end of output of step #10.3 Code:
./makeParaView4 -python -mpi -python-lib /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 > log.makePV 2>&1 Code:
[ 81%] Linking C shared module ../../../lib/site-packages/mpi4py/MPI.so CMakeFiles/mpi4py.MPI.dir/src/MPI.c.o: In function `OPENMPI_dlopen_libmpi': MPI.c:(.text+0xa601): undefined reference to `dlopen' MPI.c:(.text+0xa61d): undefined reference to `dlopen' MPI.c:(.text+0xa633): undefined reference to `dlopen' MPI.c:(.text+0xa649): undefined reference to `dlopen' CMakeFiles/mpi4py.MPI.dir/src/MPI.c.o: In function `__pyx_pf_6mpi4py_3MPI_16Init': MPI.c:(.text+0x17aa8): undefined reference to `dlopen' CMakeFiles/mpi4py.MPI.dir/src/MPI.c.o:MPI.c:(.text+0x17bed): more undefined references to `dlopen' follow collect2: error: ld returned 1 exit status ThirdParty/mpi4py/vtkmpi4py/CMakeFiles/mpi4py.MPI.dir/build.make:96: recipe for target 'lib/site-packages/mpi4py/MPI.so' failed make[2]: *** [lib/site-packages/mpi4py/MPI.so] Error 1 CMakeFiles/Makefile2:5198: recipe for target 'ThirdParty/mpi4py/vtkmpi4py/CMakeFiles/mpi4py.MPI.dir/all' failed make[1]: *** [ThirdParty/mpi4py/vtkmpi4py/CMakeFiles/mpi4py.MPI.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2 --- Installation complete for paraview-4.1.0 Set environment variables: export ParaView_DIR=/home/ywb17176/OpenFOAM/ThirdParty-2.4.0-MNF/platforms/linux64GccMNF/ParaView-4.1.0 export PATH=$ParaView_DIR/bin:$PATH export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-4.1 --- Done Step no #13 Code:
./Allwmake > log.make 2>&1 Code:
ERROR: ParaView not found in /home/ywb17176/OpenFOAM/ThirdParty-2.4.0-MNF/platforms/linux64GccMNF/ParaView-4.1.0 Code:
icoFoam -help Code:
paraFoam WARN file does not exist: ./system/controlDict ./system/fvSchemes ./system/fvSolution created temporary 'OpenFOAM-2.4.0-MNF.OpenFOAM' /home/ywb17176/OpenFOAM/OpenFOAM-2.4.0-MNF/bin/paraFoam: 265: /home/ywb17176/OpenFOAM/OpenFOAM-2.4.0-MNF/bin/paraFoam: paraview: not found Deep |
|
October 25, 2017, 07:54 |
Update
|
#2 |
Senior Member
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 9 |
Update:
I think I was not typing in some of the commands the right way. I tried again, and now both the logs log.makePV and log.make do not show any errors. So it seems the installation was fine. However, if I try to run ParaView just to test, it still is giving me same error for 2.4.0-MNF version. Code:
of240 paraFoam Code:
WARN file does not exist: ./system/controlDict ./system/fvSchemes ./system/fvSolution created temporary 'ywb17176.OpenFOAM' --> FOAM FATAL IO ERROR: cannot find file file: /home/ywb17176/system/controlDict at line 0. From function regIOobject::readStream() in file db/regIOobject/regIOobjectRead.C at line 73. FOAM exiting Code:
of500 paraFoam Code:
WARN file does not exist: ./system/controlDict ./system/fvSchemes ./system/fvSolution Cannot locate OpenFOAM-format case files Would you like to open ParaView anyway <Y|n> What is happening ? Also, are those warnings normal ? |
|
October 25, 2017, 09:45 |
Update
|
#3 |
Senior Member
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 9 |
Update:
Issue is now resolved: https://bugs.openfoam.org/view.php?id=2738 It is not a bug and just a difference between how the two versions treat ParaView. Please close this thread or declared as "Solved" |
|
Tags |
openfoam 2.4.0 help, paraview 4.1, ubuntu 16.04 lts |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] OpenFoam Installation v1806 on W7, 64bit Problem | Joerg2007 | OpenFOAM Installation | 6 | November 6, 2018 20:09 |
[OpenFOAM.org] error in installation OpenFOAM 2.4.0 in Ubuntu 14.04 | alimea | OpenFOAM Installation | 2 | August 9, 2018 08:12 |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 15:24 |
Openfoam installation problem | jose soto | OpenFOAM Installation | 4 | August 9, 2011 02:29 |
OpenFOAM 1.7.0 installation problem | stevek | OpenFOAM | 14 | December 1, 2010 16:30 |