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

[foam-extend.org] foam-extend-4.0 openSUSE Leap 42.1 Installation Problem

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2017, 06:27
Default foam-extend-4.0 openSUSE Leap 42.1 Installation Problem
  #1
New Member
 
Join Date: Feb 2017
Posts: 4
Rep Power: 9
icab is on a distinguished road
Dear Users,

I set up my computer with openSUSE 42.1 and followed the instructions at
https://openfoamwiki.net/index.php/I...oam-extend-4.0 and
https://openfoamwiki.net/index.php/I...d-4.0/openSUSE
to install foam-extend-4.0.

During first installation I receive error messages concering the applications directory, for example:

Code:
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -lfoam
collect2: error: ld returned 1 exit status
/home/peter/foam/foam-extend-4.0/wmake/Makefile:159: recipe for target '/home/peter/foam/foam-extend-4.0/applications/bin/linux64GccDPOpt/surfaceMeshImport' failed
make[2]: *** [/home/peter/foam/foam-extend-4.0/applications/bin/linux64GccDPOpt/surfaceMeshImport] Error 1
/home/peter/foam/foam-extend-4.0/wmake/MakefileApps:39: recipe for target 'surfaceMeshImport' failed
make[1]: *** [surfaceMeshImport] Error 2
After Installation, foamInstallationTest gives me the following output:

Code:
Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash
Host:               rfhmab665
OS:                 Linux version 4.1.12-1-default
-------------------------------------------------------------------------------


Checking main foam-extend env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/peter/foam                         yes       yes
$WM_PROJECT_USER_DIR /home/peter/foam/peter-4.0               yes       no
$WM_THIRD_PARTY_DIR  ...eter/foam/foam-extend-4.0/ThirdParty  yes       yes
-------------------------------------------------------------------------------


Checking the foam-extend env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR      /home/peter/foam/foam-extend-4.0         yes  yes  yes

$FOAM_APPBIN         ...4.0/applications/bin/linux64GccDPOpt  yes  yes  yes
$FOAM_SITE_APPBIN    ...er/foam/site/4.0/bin/linux64GccDPOpt  yes  yes  no
$FOAM_USER_APPBIN    ...4.0/applications/bin/linux64GccDPOpt  no        no
$WM_DIR              /home/peter/foam/foam-extend-4.0/wmake   yes  yes  yes
-------------------------------------------------------------------------------


Checking the foam-extend env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN         .../foam-extend-4.0/lib/linux64GccDPOpt  yes  yes  yes
$FOAM_SITE_LIBBIN    ...er/foam/site/4.0/lib/linux64GccDPOpt  yes  yes  no
$FOAM_USER_LIBBIN    ...r/foam/peter-4.0/lib/linux64GccDPOpt  no        no
$MPI_ARCH_PATH       /usr                                     yes   no  yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version   Location 
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of foam-extend
         Supplied version: 4.3.3
         User version    : 4.8.5
         Minimum required: 4.3.1

gcc      4.8.5    
WARNING:  Conflicting installations:
          foam-extend settings        : /bin/gcc
          current path             : /usr/bin/gcc
          CRITICAL ERROR

gzip     1.6       /usr/bin/gzip                                            
tar      1.27.1    /bin/tar                                                 
icoFoam           
WARNING:  Conflicting installations:
          foam-extend settings        : /home/peter/foam/foam-extend-4.0/applications/bin/linux64GccDPOpt/icoFoam
          current path             : 
          CRITICAL ERROR

-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.

The foam installation contains 2 critical error(s).

Review the output for warning messages and consult 
the installation guide for trouble shooting.

done.
For this reason I can't use blockMesh, icoFoam etc. (/applications/bin/linux64GccDPOpt/ folder remains empty).
Anyone has a hint how to solve the problem?

Kind regards,

icab
icab is offline   Reply With Quote

Old   March 25, 2017, 14:16
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
Greetings icab and welcome to the forum!

Please run the following commands:
Code:
fe40
foam
./Allwmake > log.make 2>&1

gzip < log.make > log.make.gz
Then please attach the file "log.make.gz" to your next post, so that we can examine the error messages that show up during the build.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 30, 2017, 10:16
Default
  #3
New Member
 
Hao Zeng
Join Date: Mar 2017
Posts: 8
Rep Power: 9
Noémie is on a distinguished road
Dear Bruno,

I also faced the same problem for installing foam-extend-4.0 with openSUSE system. I attached my wmake file here.

Thank you in advance.

Best regards,
Noémie
Attached Files
File Type: gz log.make.gz (9.2 KB, 13 views)
Noémie is offline   Reply With Quote

Old   April 1, 2017, 09:58
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
Greetings Noémie

Quote:
Originally Posted by Noémie View Post
I also faced the same problem for installing foam-extend-4.0 with openSUSE system. I attached my wmake file here.
Many thanks for providing the log file!
It's now clear that the problem was that Open-MPI was not found.

I have updated the wiki pages recently for all foam-extend versions, regarding openSUSE, where the one for foam-extend 4.0 is this one: https://openfoamwiki.net/index.php/I...#openSUSE_42.1

The update is regarding the need to use the following command before sourcing foam-extend's shell environment:
Code:
source /etc/profile.d/mpi-selector.sh
This is always needed until you have rebooted or logged out and logged back in yet. Which means that you need to run the following commands when you start a new terminal, to activate foam-extend 4.0:
Code:
source /etc/profile.d/mpi-selector.sh
fe40
Then for building the missing features in foam-extend, try running again the following commands:
Code:
foam
./Allwmake > log.make 2>&1

gzip < log.make > log.make.gz
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 4, 2017, 09:46
Default
  #5
New Member
 
Hao Zeng
Join Date: Mar 2017
Posts: 8
Rep Power: 9
Noémie is on a distinguished road
Dear Bruno,

Thank you very much. I redo everything from the very beginning and there is no more this error. After running foamIstallationTest, I got the following message:

Quote:
Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of foam-extend
Supplied version: 4.3.3
User version : 4.8.1
Minimum required: 4.3.1

gcc 4.8.1
WARNING: Conflicting installations:
foam-extend settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

gzip 1.6 /usr/bin/gzip
tar 1.26 /bin/tar
icoFoam ...am-extend-4.0/applications/bin/linux64GccDPOpt/icoFoam
-------------------------------------------------------------------------------


Summary
-------------------------------------------------------------------------------
Base configuration ok.

The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.
I think this error is not due to the problem of this thread. And ti works even with this error. I will do further look to get rid of this error.

Thank you again.

Cheers,
Noémie
Noémie is offline   Reply With Quote

Old   April 8, 2017, 07:09
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
Hi Noémie,

You can ignore that error message. That script has not been updated/fixed in foam-extend, which is why it's giving that error.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Using createPatch and cyclicAMI in FOAM Extend to create periodicbox manuc OpenFOAM Running, Solving & CFD 1 April 12, 2022 11:36
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00


All times are GMT -4. The time now is 05:20.