|
[Sponsors] |
when running tutorial: Permission denied collect2: ld returned 1 exit status |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 2, 2011, 07:43 |
when running tutorial: Permission denied collect2: ld returned 1 exit status
|
#1 |
New Member
Sibusiso Mavuso
Join Date: Jul 2010
Location: South Africa/Pretoria
Posts: 22
Rep Power: 16 |
Hello FOAMERS
I recently installed CAELinex 2010 and it has OF1.7.0 and when I try to run the icoFoam tutorial cases after copying the files to my hard disk: /media/A48C3A3B8C3A0876/OpenFOAM-1.7.0/openfoam170 I get the following on my console: caelinux@caelinux:/media/A48C3A3B8C3A0876/OpenFOAM-1.7.0/openfoam170$ cd applications/solvers/incompressible/icoFoam/ caelinux@caelinux:/media/A48C3A3B8C3A0876/OpenFOAM-1.7.0/openfoam170/applications/solvers/incompressible/icoFoam$ ls createFields.H icoFoam.C Make caelinux@caelinux:/media/A48C3A3B8C3A0876/OpenFOAM-1.7.0/openfoam170/applications/solvers/incompressible/icoFoam$ wmake Making dependency list for source file icoFoam.C SOURCE=icoFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam170/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam170/src/OpenFOAM/lnInclude -I/opt/openfoam170/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/icoFoam.o /opt/openfoam170/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’: /opt/openfoam170/src/finiteVolume/lnInclude/readPISOControls.H:8: warning: unused variable ‘momentumPredictor’ /opt/openfoam170/src/finiteVolume/lnInclude/readPISOControls.H:11: warning: unused variable ‘transonic’ /opt/openfoam170/src/finiteVolume/lnInclude/readPISOControls.H:14: warning: unused variable ‘nOuterCorr’ g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/opt/openfoam170/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam170/src/OpenFOAM/lnInclude -I/opt/openfoam170/src/OSspecific/POSIX/lnInclude -fPIC Make/linux64GccDPOpt/icoFoam.o -L/opt/openfoam170/lib/linux64GccDPOpt \ -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /opt/openfoam170/applications/bin/linux64GccDPOpt/icoFoam /usr/bin/ld: cannot open output file /opt/openfoam170/applications/bin/linux64GccDPOpt/icoFoam: Permission denied collect2: ld returned 1 exit status make: *** [/opt/openfoam170/applications/bin/linux64GccDPOpt/icoFoam] Error 1 caelinux@caelinux:/media/A48C3A3B8C3...sible/icoFoam$ please help me with a way forward, thank you in advance. |
|
November 10, 2011, 02:59 |
|
#2 |
New Member
bruce
Join Date: Aug 2011
Posts: 3
Rep Power: 15 |
have same problem. when used OpenFOAM 2.0.0
|
|
November 10, 2011, 03:11 |
|
#3 |
New Member
Sibusiso Mavuso
Join Date: Jul 2010
Location: South Africa/Pretoria
Posts: 22
Rep Power: 16 |
hello brucechen
I fixed the problem by changing the "files" file in icoFoam/Make from: icoFaom.C EXE = $(FOAM_APPIN)/icoFoam to: icoFaom.C EXE = $(FOAM_USER_APPBIN)/icoFoam Hope this helps. Cheers!! |
|
December 12, 2019, 11:03 |
worked for me in AZURE OpenFoam
|
#4 |
Member
Jairo A. Gutiérrez S
Join Date: Nov 2014
Posts: 60
Rep Power: 12 |
Thank you, it worked as well for Azure VM using OpenFOAM 4.1. I did not have to use the sudo bash (and I could not). So it worked as as a local compilation for my user.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Debug version of OpenFOAM-1.6 | alundilong | OpenFOAM Installation | 20 | May 11, 2023 08:31 |
cfx5post in batch mode on "graphics-less" Linux | frankyd | CFX | 3 | April 12, 2011 17:47 |
Installing OF 1.6 on Mac OS X | gschaider | OpenFOAM Installation | 129 | June 19, 2010 10:23 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |
Tutorial is not running on star-CD version 3.2 | Arnab | Siemens | 0 | August 30, 2004 16:43 |