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

[waves2Foam] waveFoam: command not found

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2024, 09:49
Default waveFoam: command not found
  #1
New Member
 
Marion Sant
Join Date: Dec 2023
Posts: 23
Rep Power: 2
edo2822 is on a distinguished road
Hi all.

I finally succesfully compiled waves 2 foam with Ubuntu 20.04 and Openfoam2206.
The compilation show this error which makes me unable to run waveFoam:

g++ -std=c++14 -m64 -pthread -DOPENFOAM=2206 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -I/usr/lib/openfoam/openfoam2206/applications/solvers/multiphase/VoF -I/usr/lib/openfoam/openfoam2206/src/phaseSystemModels/twoPhaseInter/incompressibleInterPhaseTransportModel/lnInclude -I/usr/lib/openfoam/openfoam2206/src/phaseSystemModels/twoPhaseInter/VoFphaseIncompressibleTurbulenceModels/lnInclude -I/usr/lib/openfoam/openfoam2206/src/finiteVolume/lnInclude -I/usr/lib/openfoam/openfoam2206/src/meshTools/lnInclude -I/usr/lib/openfoam/openfoam2206/src/sampling/lnInclude -I/usr/lib/openfoam/openfoam2206/src/dynamicFvMesh/lnInclude -I/usr/lib/openfoam/openfoam2206/src/transportModels -I/usr/lib/openfoam/openfoam2206/src/transportModels/incompressible/lnInclude -I/usr/lib/openfoam/openfoam2206/src/transportModels/interfaceProperties/lnInclude -I/usr/lib/openfoam/openfoam2206/src/transportModels/twoPhaseMixture/lnInclude -I/usr/lib/openfoam/openfoam2206/src/TurbulenceModels/turbulenceModels/lnInclude -I/usr/lib/openfoam/openfoam2206/src/TurbulenceModels/incompressible/lnInclude -I/usr/lib/openfoam/openfoam2206/src/TurbulenceModels/phaseIncompressible/lnInclude -I/usr/lib/openfoam/openfoam2206/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/home/edoardoforte/OpenFOAM/edoardoforte-v2206/applications/utilities/waves2Foam/src/waves2Foam/lnInclude -I/home/edoardoforte/OpenFOAM/edoardoforte-v2206/applications/utilities/waves2Foam/src/waves2FoamGABC/lnInclude -I/home/edoardoforte/OpenFOAM/edoardoforte-v2206/applications/utilities/waves2Foam/src/waves2FoamSampling2206/lnInclude -I/usr/include -DOFVERSION=2206 -DEXTBRANCH=0 -DOFPLUSBRANCH=1 -DXVERSION=0 -iquote. -IlnInclude -I/usr/lib/openfoam/openfoam2206/src/OpenFOAM/lnInclude -I/usr/lib/openfoam/openfoam2206/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/waveFoam.o -L/usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/lib \
-lfiniteVolume -lfvOptions -lmeshTools -lsampling -ldynamicFvMesh -lincompressibleTransportModels -linterfaceProperties -limmiscibleIncompressibleTwoPhaseMixture -ltwoPhaseProperties -lturbulenceModels -lincompressibleTurbulenceModels -lwaveModels -lVoFphaseTurbulentTransportModels -lincompressibleInterPhaseTransportModels -L/home/edoardoforte/OpenFOAM/edoardoforte-v2206/platforms/linux64GccDPInt32Opt/lib -lwaves2Foam -lwaves2FoamGABC -lwaves2FoamSampling -L/usr/lib64 -lgsl -lgslcblas -lOpenFOAM -ldl \
-lm -o /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/waveFoam
/usr/bin/ld: cannot open output file /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/waveFoam: Permission denied
collect2: error: ld returned 1 exit status
make: *** [/usr/lib/openfoam/openfoam2206/wmake/makefiles/general:150: /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/bin/waveFoam] Error 1



The other solvers like porousWaveFoam seem to work properly.
What could be the cause of the problem?
I will attach folders with waves2foam Allwmake.log file and the standing wave log files.

Thanks to anyone who is willing to help!
Attached Files
File Type: zip log.make.zip (1.9 KB, 1 views)
File Type: zip log.standingWave.zip (3.6 KB, 0 views)
edo2822 is offline   Reply With Quote

Old   February 19, 2024, 12:35
Default Solution
  #2
New Member
 
Marion Sant
Join Date: Dec 2023
Posts: 23
Rep Power: 2
edo2822 is on a distinguished road
EDIT: For anyone who should face this problem.

Coding sudo chown -R "$USER:" /path/to/the/directory in the terminal before doing ./Allwmake should solve the problem
edo2822 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
[RapidCFD] Discussion thread on how to install and use RapidCFD newoscar OpenFOAM Community Contributions 84 September 2, 2022 01:04
Gmsh installation on terminal help spitfire Main CFD Forum 4 July 27, 2017 15:11
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01:36
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32


All times are GMT -4. The time now is 13:07.