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

[OpenFOAM.org] Building buoyantBoussinesqPimpleEHDFoam under OpenFOAM4

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2024, 19:59
Default Building buoyantBoussinesqPimpleEHDFoam under OpenFOAM4
  #1
New Member
 
James bowery
Join Date: Mar 2009
Posts: 6
Rep Power: 17
jabowery is on a distinguished road
buoyantBoussinesqPimpleEHDFoam specifies OpenFOAM v-4.1. As I was not prepared to figure out how to build such an ancient version from source, on the latest Ubuntu, I decided to try the Docker image openfoam/openfoam4-paraview50. However when attempting to wmake the source for buoyantBoussinesqPimpleEHDFoam, I was stumped by this error:

Code:
/usr/bin/ld: cannot open output file /opt/openfoam4/platforms/linux64GccDPInt32Opt/bin/buoyantBoussinesqPimpleEHDFoam: Permission denied
collect2: error: ld returned 1 exit status
/opt/openfoam4/wmake/makefiles/general:132: recipe for target '/opt/openfoam4/platforms/linux64GccDPInt32Opt/bin/buoyantBoussinesqPimpleEHDFoam' failed
make: *** [/opt/openfoam4/platforms/linux64GccDPInt32Opt/bin/buoyantBoussinesqPimpleEHDFoam] Error 1
Apparently openfoam4-linux (which invokes docker) initializes environment variables to point at /opt, which is owned by root, rather than /home/openfoam which is owned by the user, but AFAIK there is no way to execute either sudo or su from the shell provided by that docker image.

Here are the relevant environment variables:
Code:
OpenFOAM-4.1(63) printenv|grep -i foam
FOAM_SOLVERS=/opt/openfoam4/applications/solvers
FOAM_EXT_LIBBIN=/opt/ThirdParty-4.1/platforms/linux64GccDPInt32/lib
FOAM_APPBIN=/opt/openfoam4/platforms/linux64GccDPInt32Opt/bin
FOAM_TUTORIALS=/opt/openfoam4/tutorials
FOAM_JOB_DIR=/opt/jobControl
FOAM_SITE_APPBIN=/opt/site/4.1/platforms/linux64GccDPInt32Opt/bin
FOAM_APP=/opt/openfoam4/applications
user=openfoam
FOAM_SITE_LIBBIN=/opt/site/4.1/platforms/linux64GccDPInt32Opt/lib
LD_LIBRARY_PATH=/opt/ThirdParty-4.1/platforms/linux64Gcc/gperftools-svn/lib:/opt/paraviewopenfoam50/lib/paraview-5.0:/opt/openfoam4/platforms/linux64GccDPInt32Opt/lib/openmpi-system:/opt/ThirdParty-4.1/platforms/linux64GccDPInt32/lib/openmpi-system:/usr/lib/openmpi/lib:/home/openfoam/platforms/linux64GccDPInt32Opt/lib:/opt/site/4.1/platforms/linux64GccDPInt32Opt/lib:/opt/openfoam4/platforms/linux64GccDPInt32Opt/lib:/opt/ThirdParty-4.1/platforms/linux64GccDPInt32/lib:/opt/openfoam4/platforms/linux64GccDPInt32Opt/lib/dummy
FOAM_SRC=/opt/openfoam4/src
FOAM_SIGFPE=
ParaView_DIR=/opt/paraviewopenfoam50
FOAM_UTILITIES=/opt/openfoam4/applications/utilities
WM_PROJECT_DIR=/opt/openfoam4
WM_PROJECT=OpenFOAM
PATH=/opt/ThirdParty-4.1/platforms/linux64Gcc/gperftools-svn/bin:/opt/paraviewopenfoam50/bin:/home/openfoam/platforms/linux64GccDPInt32Opt/bin:/opt/site/4.1/platforms/linux64GccDPInt32Opt/bin:/opt/openfoam4/platforms/linux64GccDPInt32Opt/bin:/opt/openfoam4/bin:/opt/openfoam4/wmake:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
FOAM_USER_LIBBIN=/home/openfoam/platforms/linux64GccDPInt32Opt/lib
PWD=/home/openfoam/buoyantBoussinesqPimpleEHDFoam/buoyantBoussinesqPimpleEHDFoam
FOAM_ETC=/opt/openfoam4/etc
PV_PLUGIN_PATH=/opt/openfoam4/platforms/linux64GccDPInt32Opt/lib/paraview-5.0
FOAM_INST_DIR=/opt
ParaView_INCLUDE_DIR=/opt/paraviewopenfoam50/include/paraview-5.0
FOAM_MPI=openmpi-system
FOAM_LIBBIN=/opt/openfoam4/platforms/linux64GccDPInt32Opt/lib
WM_DIR=/opt/openfoam4/wmake
HOME=/home/openfoam
XDG_CONFIG_HOME=/home/openfoam/.config
FOAM_SETTINGS=
FOAMY_HEX_MESH=yes
WM_PROJECT_USER_DIR=/home/openfoam
FOAM_RUN=/home/openfoam/run
FOAM_USER_APPBIN=/home/openfoam/platforms/linux64GccDPInt32Opt/bin
OLDPWD=/home/openfoam/buoyantBoussinesqPimpleEHDFoam
OpenFOAM-4.1(64) pwd
/home/openfoam/buoyantBoussinesqPimpleEHDFoam/buoyantBoussinesqPimpleEHDFoam
jabowery is offline   Reply With Quote

Reply

Tags
docker, ehd, opanfoam4.x, wmake


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
Building direct interaction list for stirred column with Lagrangian Particles nuzzknacker OpenFOAM Running, Solving & CFD 0 September 6, 2024 06:23
[OpenFOAM.org] Instructions to install OpenFOAM-2.4.x on CentOS-6.10 redbullah OpenFOAM Installation 9 September 7, 2019 18:18
[foam-extend.org] Error compiling OpenFOAM-1.6-ext Canesin OpenFOAM Installation 137 January 20, 2016 15:56
Paraview Compiling Error (OpenFOAM 2.1.x + openSUSE 12.2) sfigato OpenFOAM Installation 22 January 31, 2013 11:16
Compilation error OF1.5-dev on Suse10.3 darenyang OpenFOAM Installation 0 April 29, 2009 05:55


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