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

[OpenFOAM.org] OpenFOAM-2.3.1 on opensuse Leap-42.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2015, 07:19
Default OpenFOAM-2.3.1 on opensuse Leap-42.1
  #1
Member
 
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 15
Hrushi is on a distinguished road
I am trying to install openFOAM 2.3.1 on opensuse Leap-42.1. I have followed instructions given on
HTML Code:
https://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-2.3.1/openSUSE
However I got error while doing third party Allwmake. I have attached the error file.

Please help.
Attached Files
File Type: gz make.log.gz (12.5 KB, 6 views)
Hrushi is offline   Reply With Quote

Old   November 24, 2015, 15:31
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: I've got the feeling you're following the instructions that were written for openSUSE 12.3.

You should be following the instructions that were tested in openSUSE 13.2: https://openfoamwiki.net/index.php/I...#openSUSE_13.2
For example, step #9 tells you how to create a symbolic link to the existing installation of CGAL.

edit: I've tested the instructions I mentioned on openSUSE Leap 42.1 and it worked fine for me.

Last edited by wyldckat; November 28, 2015 at 18:42. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   December 3, 2015, 16:39
Default
  #3
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
derekm is on a distinguished road
following the wiki page I'm getting issues as well with the Allwmake of the thirdparty on OF2.4, as the environment variable CGAL_ARCH does not exist . Note paraview installs fine when you follow the instructions in the Wiki.

I'm currently building OF2.4 as interim to 3.0 and then trying foam extend 3.2 all with Leap 42.1, OPENMPI 1.10.1, OFED 3.18-1 for a 10 server 112 core cluster (none of the releases a month old ... )
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Old   December 6, 2015, 13:39
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by derekm View Post
following the wiki page I'm getting issues as well with the Allwmake of the thirdparty on OF2.4, as the environment variable CGAL_ARCH does not exist .
Quick answer/question: I assume you're following these instructions that are adapted to OpenFOAM 2.4.0: https://openfoamwiki.net/index.php/I...#openSUSE_13.2
As for the environment variable, it's meant to be named "CGAL_ARCH_PATH" and not "CGAL_ARCH" . Did you shorten it for writing here in the post or is the whole name you've tried to use?
wyldckat is offline   Reply With Quote

Old   December 6, 2015, 17:30
Default
  #5
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
derekm is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer/question: I assume you're following these instructions that are adapted to OpenFOAM 2.4.0: https://openfoamwiki.net/index.php/I...#openSUSE_13.2
As for the environment variable, it's meant to be named "CGAL_ARCH_PATH" and not "CGAL_ARCH" . Did you shorten it for writing here in the post or is the whole name you've tried to use?
A typo in post oops! But I copied and pasted for the install
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Old   December 6, 2015, 17:32
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by derekm View Post
A typo in post oops! But I copied and pasted for the install
Mmm... OK, then we will need to do some debugging of the shell environment variables. With the respective OpenFOAM shell environment activated, please run:
Code:
export > log.export 2>&1
gzip < log.export > log.export.gz
Then attach the file "log.export.gz" to your next post. This way it should be possible to fully assess what's going on.
wyldckat is offline   Reply With Quote

Old   December 8, 2015, 11:41
Default
  #7
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
derekm is on a distinguished road
I repeated the install on a fresh copy of leap 42.1 with OFED 3.18-1 and OpenMPI 1.10-1 (combined rpm with infiniband support)
and folowed the install meticulously
missing installing openmpi-devel as this was already included
correcttng a typo
Code:
mkdir -p ~/.OpenFOAM/2.4.0/config   
echo export METIS_VERSION=metis-5.1.0 > ~/.OpenFOAM/2.4.0/config/metis.sh 
echo export METIS_ARCH_PATH=/usr >> ~/.OpenFOAM/2.4.0/config/metis.sh
to
Code:
mkdir -p ~/.OpenFOAM-2.4.0/config   
echo export METIS_VERSION=metis-5.1.0 > ~/.OpenFOAM-2.4.0/config/metis.sh 
echo export METIS_ARCH_PATH=/usr >> ~/.OpenFOAM-2.4.0/config/metis.sh
and adapting to the alternate location for the install
Code:
/opt/OpenFOAM
# instead of 
$HOME/OpenFOAM
ignoring the error reported at
Code:
cd $WM_THIRD_PARTY_DIR   
mkdir -p $CGAL_ARCH_PATH 
ln -s /usr/include $CGAL_ARCH_PATH/include
and it worked! no errors in the log so I must have made a mistake in the previous install
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Old   December 8, 2015, 15:26
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Derek,

Many thanks for the feedback! But I'm finding this change you did very strange:
Quote:
Originally Posted by derekm View Post
correcttng a typo
Code:
mkdir -p ~/.OpenFOAM/2.4.0/config   
echo export METIS_VERSION=metis-5.1.0 > ~/.OpenFOAM/2.4.0/config/metis.sh 
echo export METIS_ARCH_PATH=/usr >> ~/.OpenFOAM/2.4.0/config/metis.sh
to
Code:
mkdir -p ~/.OpenFOAM-2.4.0/config   
echo export METIS_VERSION=metis-5.1.0 > ~/.OpenFOAM-2.4.0/config/metis.sh 
echo export METIS_ARCH_PATH=/usr >> ~/.OpenFOAM-2.4.0/config/metis.sh
Try running the following commands:
Code:
foamEtcFile config/metis.sh
foamEtcFile -list
The first one should give you the path to your file "~/.OpenFOAM-2.4.0/config/metis.sh".
The second one shows the folders it looks into, for example in my case:
Code:
/home/ofuser/.OpenFOAM/2.4.0
/home/ofuser/.OpenFOAM
/home/ofuser/OpenFOAM/site/2.4.0
/home/ofuser/OpenFOAM/site
/home/ofuser/OpenFOAM/OpenFOAM-2.4.0/etc
And you might want to double check the environment variables:
Code:
echo $METIS_VERSION
echo $METIS_ARCH_PATH
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   December 9, 2015, 05:46
Default
  #9
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
derekm is on a distinguished road
Note I have my installation at /opt/OpenFOAM not in $HOME. I now see the metis definitions are per user and in $HOME/.OpenFOAM/2.4.0/config/metis.sh


its a bit difficult in the wiki entry to see which bits are per installation and which bits are per user

I'm now Reading the $WM_PROJECT_DIR/etc/bashrc file trying to understand what the bits do
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Old   December 9, 2015, 06:21
Default
  #10
Senior Member
 
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13
derekm is on a distinguished road
The metis.sh file does not get called from $WM_PROJECT_DIR/etc/bashrc
. This is the excerpt from the $WM_PROJECT_DIR/etc/bashrc
where you would expect it. There is not instance of the characters 'metis' in the entire file
Code:

# Source user setup files for optional packages
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/paraview.sh`
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/ensight.sh`
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/gperftools.sh`
_foamSource `$WM_PROJECT_DIR/bin/foamEtcFile config/CGAL.sh`

if I have this in my $HOME/.bashrc

Code:
export FOAM_VERBOSE=TRUE

ulimit -l unlimited

export PATH=/usr/lib64/openmpi/:$PATH
export LD_LIBRARY_PATH=/usr/lib64/openmpi/:$LD_LIBRARY_PATH
export FOAM_INST_DIR=/opt/OpenFOAM
foamDotFile=$FOAM_INST_DIR/OpenFOAM-2.4.0/etc/bashrc
[ -f $foamDotFile ] && . $foamDotFile
this is what i see
Code:
Sourcing: /opt/OpenFOAM/OpenFOAM-2.4.0/etc/config/settings.sh
Sourcing: /opt/OpenFOAM/OpenFOAM-2.4.0/etc/config/aliases.sh
Sourcing: /opt/OpenFOAM/OpenFOAM-2.4.0/etc/config/paraview.sh
Using paraview
    ParaView_DIR         : /opt/OpenFOAM/ThirdParty-2.4.0/platforms/linux64Gcc/ParaView-4.1.0
    ParaView_LIB_DIR     : /opt/OpenFOAM/ThirdParty-2.4.0/platforms/linux64Gcc/ParaView-4.1.0/lib/paraview-4.1
    ParaView_INCLUDE_DIR : /opt/OpenFOAM/ThirdParty-2.4.0/platforms/linux64Gcc/ParaView-4.1.0/include/paraview-4.1
    PV_PLUGIN_PATH       : /opt/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPOpt/lib/paraview-4.1
Sourcing: /opt/OpenFOAM/OpenFOAM-2.4.0/etc/config/ensight.sh
Sourcing: /opt/OpenFOAM/OpenFOAM-2.4.0/etc/config/gperftools.sh
Sourcing: /opt/OpenFOAM/OpenFOAM-2.4.0/etc/config/CGAL.sh
Using CGAL and boost
    CGAL-4.6 at /opt/OpenFOAM/ThirdParty-2.4.0/platforms/linux64Gcc/CGAL-4.6
    boost-system at /opt/OpenFOAM/ThirdParty-2.4.0/platforms/linux64Gcc/boost-system
derekm@linux-jnen:~>
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET
derekm is offline   Reply With Quote

Old   December 9, 2015, 17:55
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: I didn't mention how "metis.sh" is used, because I was more concerned on the correct file being found.
But I had completely forgotten that the "metis.sh" is used only when it's necessary to use it for building the library that uses it.
It's only used/called in "OpenFOAM-*/src/parallel/decompose/metisDecomp/Allwmake" and "ThirdParty-*/Allwmake".
wyldckat 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
Getting Started with OpenFOAM wyldckat OpenFOAM 25 August 14, 2022 13:55
[foam-extend.org] foam-extend-4.0 openSUSE Leap 42.1 Installation Problem icab OpenFOAM Installation 5 April 8, 2017 07:09
[OpenFOAM.org] OpenFOAM 2.4.x and OpenFOAM 3.0.x on openSUSE Leap 42.1 cbcoutinho OpenFOAM Installation 7 April 10, 2016 15:15
[OpenFOAM.org] Setting OpenFOAM Environment Variables During Installation on OpenSuse 13.2 m_ridzon OpenFOAM Installation 1 March 30, 2015 17:56
[OpenFOAM.org] OpenFOAM 2.3.1 compile on opensuse 12.3 needs MPFR derekm OpenFOAM Installation 4 January 17, 2015 12:43


All times are GMT -4. The time now is 11:14.