|
[Sponsors] |
[OpenFOAM.org] OpenFoam installation V6 on opensuse leap 15 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 7, 2018, 14:35 |
OpenFoam installation V6 on opensuse leap 15
|
#1 |
Member
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7 |
Hi All,
I am trying to install openfoam v6 in opensuse leap 15.0 using the steps mentioned in the openfoam.org website https://openfoam.org/download/6-linux/ Steps that worked are uname -r sudo zypper -n in docker sudo systemctl start docker sudo systemctl enable docker sudo usr/bin/usermod -aG docker $(username) sudo sh -c "wget http://dl.openfoam.org/docker/openfoam6-linux -O /usr/bin/openfoam6-linux" sudo chmod 755 /usr/bin/openfoam6-linux mkdir -p $HOME/OpenFOAM/${username}-6 cd $HOME/OpenFOAM/${username}-6 Everything is fine till now when I run openfoam6-linux Launching /usr/bin/openfoam6-linux User: "username" (ID ****, group ID **) Welcome to the OpenFOAM v6 Docker Image Provides bash terminal with OpenFOAM 6 and ParaView 5.4.0 Produced and maintained by CFD Direct (https://cfd.direct), on behalf of the OpenFOAM Foundation (https://openfoam.org), the owner and distributor of OpenFOAM as free, open source software under the General Public Licence v3. Further Resources: * OpenFOAM User Guide: https://cfd.direct/openfoam/user-guide * C++ Source Guide: https://cpp.openfoam.org * OpenFOAM Training: https://cfd.direct/openfoam-training * Running in the Cloud: https://cfd.direct/cloud * Issue (Bug) Reporting: https://bugs.openfoam.org * Subscribe to Newsletter: https://cfd.direct/news * Contributors to OpenFOAM: https://openfoam.org/dev/contributors OpenFOAM-6(1) The system hangs up at this stage There is no error message or anything Can you advise what is happening in the background? what must be the issue? Thanks Stanley Last edited by sjohn2; September 10, 2018 at 09:39. |
|
September 11, 2018, 10:01 |
|
#2 |
Member
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7 |
Anyone has any idea of this?
|
|
September 14, 2018, 07:38 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: Please try running with the '-x' option, to see if it helps:
Code:
openfoam6-linux -x
__________________
|
|
November 22, 2018, 11:17 |
|
#4 |
Member
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7 |
Nopes it does not work
Stuck at the same step When I install the source code too, I get an error mpicc command not found |
|
December 27, 2018, 16:19 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings Stanley,
I've finally managed to test building OpenFOAM 6 on openSUSE 15.0 and I've written the instructions here: https://openfoamwiki.net/index.php/I...SUSE_Leap_15.0 The reason why you got the "mpicc" message was because Open-MPI is not ready to be used as soon as it's installed. You either have to log-out then log back in or have to source the script files that will load Open-MPI into the shell environment. This is instructed on the aforementioned wiki page Best regards, Bruno |
|
January 1, 2019, 21:13 |
Thank you !
|
#6 |
Member
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7 |
I am just starting my PhD at university of Alberta, Canada and we are trying to install openfoam from source code from few months now. I tried your steps and it worked ! I also noted that if I do
su instead of su -s to login as root, again I get the error that mpicc command not found. After compiling openfoam, I was able to run a cavity tutorial and everything went well. However while post processing, I found that I am not able to use paraFoam, getting the following error. I have done the process of installinf paraview too mentioned in the wiki page. I am doing a remote login to do all this. Created temporary 'cavity.OpenFOAM' ************************************************** ******** ParaView failed to open using available graphics hardware. Trying fallback to software rendering using MESA. ************************************************** ******** /root/OpenFOAM/ThirdParty-6/platforms/linux64Gcc/ParaView-5.4.0/lib/paraview-5.4/paraview: symbol lookup error: /usr/lib64/libQtSql.so.4: undefined symbol: _ZN14QObjectPrivate15checkWindowRoleEv Any idea? |
|
January 2, 2019, 19:25 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: My guess is that the big problem here is that you are running OpenFOAM and ParaView as root, which you should not be doing!!
Right there in step #3, it instructs to exit from root mode!! This is likely why things aren't working as intended |
|
January 2, 2019, 23:52 |
|
#8 |
Member
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7 |
Yes I did forget to do it.
So I recompiled openfoam and third party software's the code locally, exiting root mode. running source /etc/profile.d/mpi-selector.sh and of6 is the key here for me, otherwise I get the same error mpicc command not found Able to run, icoFoam etc but get the same error with interaction with paraview and graphics card I also updated the driver for the graphics card to the latest nvidia graphics card |
|
January 3, 2019, 06:18 |
Not SUSE but...
|
#9 |
New Member
Paul Johnston
Join Date: Dec 2018
Location: Manchester UK
Posts: 9
Rep Power: 7 |
When building on Centos I modified my .bashrc to load the open-mpi module adding
mpi/openmpi-x86_64 source /home/paulj/OpenFOAM/OpenFOAM-6/etc/bashrc I loaded the module before building then kept it there. Cheers Paul J |
|
January 3, 2019, 10:27 |
Update
|
#10 |
Member
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7 |
Thanks I added the two lines of step 4 in my bashrc file and all I do is source my bashrc file to run anything with openfoam
I tried 2 different ways of installing paraview locally 1) ./makeParaView -python -mpi -python-lib /usr/lib64/libpython2.7.so.1.0 > log.makePV 2>&1 on running paraFoam error : Created temporary 'cavity.OpenFOAM' ************************************************** ******** ParaView failed to open using available graphics hardware. Trying fallback to software rendering using MESA. ************************************************** ******** /root/OpenFOAM/ThirdParty-6/platforms/linux64Gcc/ParaView-5.4.0/lib/paraview-5.4/paraview: symbol lookup error: /usr/lib64/libQtSql.so.4: undefined symbol: _ZN14QObjectPrivate15checkWindowRoleEv 2) ./makeParaView > log.makePV2 2>&1 on running paraFoam Created temporary 'cavity.OpenFOAM' I/O : uncollated paraFoam works fine! Also I tried to run paraview by unzipping a rpm file available at opensuse website and running the executable, it works fine. I think there a bug/ or some more steps are required while compiling paraview in third party. Please find attached both log files. Stanley |
|
January 4, 2019, 18:48 |
|
#11 | ||||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answers:
@paulj: Quote:
Code:
module load mpi/openmpi-x86_64 With openSUSE, it shouldn't be necessary to source "mpi-selector.sh" after logging out or at least after rebooting. It's a weird limitation that they have, for it to not propagate properly the functionality by simply allowing us to start a new terminal and having it work straight away. ---------- @sjohn2: Quote:
Quote:
After some Googling for the other error, it seems possible that "libQtSql4.so" was installed from another repository and therefore be a mix of 2 different versions of Qt4, which lead to the original crash by ParaView... but it's weird, because it works in one build mode but not the other... The instructions given in the page I found to diagnose the issue with Qt4 was as follows: Quote:
|
|||||
January 7, 2019, 11:10 |
results
|
#12 |
Member
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7 |
I think I posted the wrong error text before. I had re installed Third Party software as local user and this the error I get. It is the same except without the root directory:
~/OpenFOAM/OpenFOAM-6/tutorials/incompressible/icoFoam/cavity/cavity> paraFoam Created temporary 'cavity.OpenFOAM' ************************************************** ******** ParaView failed to open using available graphics hardware. Trying fallback to software rendering using MESA. ************************************************** ******** /home/sjohn2/OpenFOAM/ThirdParty-6/platforms/linux64Gcc/ParaView-5.4.0/lib/paraview-5.4/paraview: symbol lookup error: /usr/lib64/libQtSql.so.4: undefined symbol: _ZN14QObjectPrivate15checkWindowRoleEv I have attached the results of the 2 commands you had listed |
|
January 8, 2019, 18:54 |
|
#13 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quote:
|
||
January 9, 2019, 10:07 |
log file
|
#14 |
Member
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7 |
The file is over 195 Kb limit after compressing using tar. I used 7z but apparently I cannot attach the particular format here. Any ideas how to upload it?
Last edited by sjohn2; January 9, 2019 at 20:02. |
|
January 9, 2019, 17:19 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer: You can simply change the file extension and upload it here. As long as you tell us what's the real format, you can pretend it's a ".zip".
|
|
January 10, 2019, 10:22 |
Link for file
|
#16 |
Member
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7 |
Here's the google drive link, let me know if does not work for any reason
https://drive.google.com/file/d/1-JP...ew?usp=sharing |
|
January 10, 2019, 16:16 |
|
#17 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings Stanley,
Ah HA! It's ANSYS fault At around line 2200 of the log file we can see this: Code:
CMake Warning at VTK/CMake/vtkModuleMacros.cmake:548 (add_library): Cannot generate a safe runtime search path for target vtkPVVTKExtensionsRendering because files in some directories may conflict with libraries in implicit directories: runtime library [libQtGui.so.4] in /usr/lib64 may be hidden by files in: /ansys_inc/v191/Framework/bin/Linux64 runtime library [libQtCore.so.4] in /usr/lib64 may be hidden by files in: /ansys_inc/v191/Framework/bin/Linux64 Then near the end of the log are lines like this one: Code:
-- Set runtime path of "/home/sjohn2/OpenFOAM/ThirdParty-6/platforms/linux64Gcc/ParaView-5.4.0/lib/paraview-5.4/paraview" to "/usr/lib64/mpi/gcc/openmpi/lib64:/ansys_inc/v191/Framework/bin/Linux64" OK, so how to solve this... the simplest solution would be to depends on how the ANSYS v19.1 paths are being loaded into the shell variables "PATH" and "LD_LIBRARY_PATH" and deactivate that from being loaded into the shell environment, at least while you are building ParaView. But if you don't know where that was defined to comment it out and then start a new terminal, then we will have to go the other way around and remove those paths from "PATH" and "LD_LIBRARY_PATH"... OK, if I'm not mistaken, run the following commands before running makeParaView: Code:
export PATH=$(foamCleanPath "$PATH" "/ansys_inc/v191") export LD_LIBRARY_PATH=$(foamCleanPath "$LD_LIBRARY_PATH" "/ansys_inc/v191") If all goes well, after you've rebuilt ParaView, it should work as intended. Oh, then don't forget to run the commands for rebuilding the OpenFOAM readers for ParaView, in the same terminal where you build ParaView: Code:
wmRefresh cd $FOAM_UTILITIES/postProcessing/graphics/PVReaders ./Allwclean ./Allwmake Bruno
__________________
|
|
January 10, 2019, 18:33 |
|
#18 |
Member
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7 |
Cheers mate! ParsFoam works fine!
Many Thanks |
|
July 12, 2019, 17:17 |
|
#19 |
Member
Stanley John
Join Date: Sep 2018
Posts: 79
Rep Power: 7 |
Is pyFoam also installed along with this?
I cannot do PyFoam after starting python |
|
July 13, 2019, 17:25 |
|
#20 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quote:
__________________
|
||
Tags |
opensuse |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Installation of OpenFOAM: Docker or not Docker? | zt49 | OpenFOAM Installation | 2 | December 22, 2016 10:38 |
[OpenFOAM.org] OpenFOAM 2.1.1 installation on openSUSE 12.2 32 bit | saturn_53 | OpenFOAM Installation | 13 | February 1, 2015 04:17 |
OpenFOAM 1.7.0 on OpenSUSE 11.1 | Bufacchi | OpenFOAM Installation | 8 | August 6, 2010 09:57 |
OpenFOAM 1.5 installation on OpenSUSE 11.0 | bigphil | OpenFOAM Installation | 16 | April 29, 2009 06:28 |
OpenFOAM 1.5-dev installation in OpenSuSe 10.3 | darenyang | OpenFOAM Installation | 0 | April 28, 2009 04:30 |