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

[OpenFOAM.org] Open FOAM 4.1 installation on Ubuntu 17.04 (32 bit).

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 6, 2017, 08:47
Default Open FOAM 4.1 installation on Ubuntu 17.04 (32 bit).
  #1
New Member
 
Join Date: Sep 2017
Posts: 4
Rep Power: 5
Openguy is on a distinguished road
Hi All,

I have tried to install Open FOAM 4.1 on Ubuntu 17.04. I have compiled paraview successfully, but when I try to compile the open FOAM folder using the command : ./Allwmake -j 2 > log.make 2>&1
the problem starts. The process continues for some time and there were some solvers compiled successfully. The process is not complete and the meshing application like blockMesh is not made!

The end few lines of the log file is given below:

Code:
Making dependency list for source file refinementLevel.C
g++ -std=c++0x -m32 -Dlinux -DWM_ARCH_OPTION=32 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/finiteVolume/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c refinementLevel.C -o /home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/mesh/advanced/refinementLevel/refinementLevel.o
g++ -std=c++0x -m32 -Dlinux -DWM_ARCH_OPTION=32 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/finiteVolume/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed /home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/mesh/advanced/refinementLevel/refinementLevel.o -L/home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/lib \
    -lfiniteVolume -lmeshTools -lOpenFOAM -ldl  \
     -lm -o /home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/bin/refinementLevel
/home/gokul/OpenFOAM/OpenFOAM-4.1/applications/utilities/mesh/advanced/removeFaces
Making dependency list for source file removeFaces.C
g++ -std=c++0x -m32 -Dlinux -DWM_ARCH_OPTION=32 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/meshTools/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/dynamicMesh/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -c removeFaces.C -o /home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/mesh/advanced/removeFaces/removeFaces.o
g++ -std=c++0x -m32 -Dlinux -DWM_ARCH_OPTION=32 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/meshTools/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/dynamicMesh/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/home/gokul/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed /home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/mesh/advanced/removeFaces/removeFaces.o -L/home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/lib \
    -lmeshTools -ldynamicMesh -lfiniteVolume -lgenericPatchFields -lOpenFOAM -ldl  \
     -lm -o /home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/bin/removeFaces
/home/gokul/OpenFOAM/OpenFOAM-4.1/applications/utilities/mesh/advanced/selectCells
make[3]: *** Deleting file '/home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/mesh/advanced/selectCells/sourceFiles'
/home/gokul/OpenFOAM/OpenFOAM-4.1/wmake/rules/General/transform:8: recipe for target '/home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/parallelProcessing/decomposePar/decomposePar.o' failed
make[2]: *** [/home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/parallelProcessing/decomposePar/decomposePar.o] Hangup
/home/gokul/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39: recipe for target 'selectCells' failed
make[2]: *** [selectCells] Hangup
/home/gokul/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39: recipe for target 'advanced' failed
make[1]: *** [advanced] Hangup
/home/gokul/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39: recipe for target 'mesh' failed
make: *** [mesh] Hangup
/home/gokul/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39: recipe for target 'parallelProcessing' failed
make: *** [parallelProcessing] Hangup
/home/gokul/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/apps:39: recipe for target 'decomposePar' failed
make[1]: *** [decomposePar] Hangup
/home/gokul/OpenFOAM/OpenFOAM-4.1/wmake/makefiles/files:60: recipe for target '/home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/mesh/advanced/selectCells/sourceFiles' failed
make[3]: *** [/home/gokul/OpenFOAM/OpenFOAM-4.1/platforms/linuxGccDPInt32Opt/applications/utilities/mesh/advanced/selectCells/sourceFiles] Hangup
Wyldckat, Can you help me?

Last edited by wyldckat; September 6, 2017 at 19:08. Reason: Added [CODE][/CODE] markers
Openguy is offline   Reply With Quote

Old   September 6, 2017, 19:14
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,959
Blog Entries: 45
Rep Power: 122
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'm guessing that you are following the instructions from here: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04

In order for the error message "Hangup" to appear, I'm guessing that the problem is that there isn't enough RAM in the machine or associated to the virtual machine.
If you are using Ubuntu 17.04 inside a virtual machine, then my guess is that you kept the default 1GB of RAM associated to it. That would explain why using 2 cores will not work as intended.

Restart (reboot) the machine that has Ubuntu installed in it.

Then try using the following commands, after starting a new terminal window within Ubuntu:
Code:
of41
foam
./Allwmake > log.make 2>&1
This way only 1 core is used and it should use the minimum necessary RAM needed for building OpenFOAM.
__________________
wyldckat is offline   Reply With Quote

Old   September 7, 2017, 11:33
Default
  #3
New Member
 
Join Date: Sep 2017
Posts: 4
Rep Power: 5
Openguy is on a distinguished road
Hi Bruno,

Yes, I was following the above instructions. I am not using any virtual machine. I restarted my PC and tried the above command and I got the following error:

Code:
-bash: log.make: Permission denied
Fortunately when I used

Code:
sudo apt install openfoam
I got the necessary applications. Thanks for your help anyway.


Quote:
Originally Posted by wyldckat View Post
Quick answer: I'm guessing that you are following the instructions from here: https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04

In order for the error message "Hangup" to appear, I'm guessing that the problem is that there isn't enough RAM in the machine or associated to the virtual machine.
If you are using Ubuntu 17.04 inside a virtual machine, then my guess is that you kept the default 1GB of RAM associated to it. That would explain why using 2 cores will not work as intended.

Restart (reboot) the machine that has Ubuntu installed in it.

Then try using the following commands, after starting a new terminal window within Ubuntu:
Code:
of41
foam
./Allwmake > log.make 2>&1
This way only 1 core is used and it should use the minimum necessary RAM needed for building OpenFOAM.
Openguy 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
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 12:32
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
OpenFOAM 1.6.x - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 68 April 22, 2013 12:03
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19


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