CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] Scotch error when installing Openfoam on an Ubuntu Virtualbox

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2021, 19:18
Default Scotch error when installing Openfoam on an Ubuntu Virtualbox
  #1
New Member
 
Paul Antoine
Join Date: Apr 2021
Posts: 2
Rep Power: 0
Postrus is on a distinguished road
Hi everyone,

I recently discovered Openfoam and find it a really interesting tool by itself and with all the other codes using it so I tried to install it on a clean new Virtualbox VM on Ubuntu x64 (I use .bashrc) to experiment some code based on OpenFOAM.

I followed the different steps for OpenFOAM installation on my Ubuntu machine HERE (yes I wrote every steps carefully as there is always problems when I first try to install an open source program) :
Quote:
apt install gcc
gcc –version
sudo apt-get install 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
sudo apt-get install libqt5x11extras5-dev libxt-dev qt5-default qttools5-dev curl
mkdir $HOME/OpenFOAM
cd $HOME/OpenFOAM
git clone http://git clone https://github.com/...OpenFOAM-7.git
git clone https://github.com/OpenFOAM/ThirdParty-dev.git
source $HOME/OpenFOAM/OpenFOAM-7/etc/bashrc
source $HOME/.bashrc
cd $HOME/OpenFOAM/ThirdParty-dev
./Allwmake
./makeParaView
wmRefresh
cd $HOME/OpenFOAM/OpenFOAM-7
./Allwmake -j
I need OpenFOAM 7 instead of the dev version for the codes I want to try so I installed this version. But when I run this last command line, I have an error with Scotch which is one of OpenFOAM dependancy for parallel runs (cf. first attachment) :



I tried multiple times to change the OpenFOAM version, uninstalled and installed Scotch, but nothing works and I always still have the same error.

I found on this forum the following post which seem close "HERE", but I tried the answers and it didn't worked.

It seems like the installing procedure know that scotch is in the ThirdParty-7 folder but still try to find a part on my OpenFOAM-7 folder so I don't really understand how I can solve this problem as the "scotchDecomp" element doesn't seem to be in any of my folders.

My file tree is as follows in $HOME/OpenFOAM (cf. second attachment) :


Did anyone encountered this problem or may know how to solve it ? I am really new on Ubuntu and OpenFOAM as I am just getting started and I would really need some help if someone would be so kind

Thank you and have a nice weekend.
Attached Images
File Type: jpg error.jpg (142.9 KB, 10 views)
File Type: png tree.PNG (40.5 KB, 2 views)
Postrus is offline   Reply With Quote

Old   April 26, 2021, 09:32
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Probably the same as this question: OpenFOAM 6 installation: ptscotch.h file not found


Same answer (I think) - probably easiest is to simply use the precompiled binaries for ubuntu:


https://develop.openfoam.com/Develop...ompiled/debian
olesen is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.com] Installing OpenFOAM 2.4.0 on Ubuntu 20.04 for Windows RKyle OpenFOAM Installation 5 January 25, 2022 11:45
[OpenFOAM.org] Problems installing OpenFOAM 2.3.0 on Ubuntu 12.04 arieljeds OpenFOAM Installation 6 August 19, 2015 08:39
[OpenFOAM.com] Problem installing OpenFoam 1.5 on Ubuntu 12.04???? tareqkh OpenFOAM Installation 5 July 19, 2015 16:10
[OpenFOAM.org] Problems installing OpenFOAM 2.3.0 in Ubuntu 14.04 iafpython OpenFOAM Installation 8 November 10, 2014 17:43
Trouble with installing OpenFOAM on Ubuntu Milos OpenFOAM Installation 16 November 16, 2009 03:44


All times are GMT -4. The time now is 08:43.