CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   when running tutorial: Permission denied collect2: ld returned 1 exit status (http://www.cfd-online.com/Forums/openfoam-solving/91158-when-running-tutorial-permission-denied-collect2-ld-returned-1-exit-status.html)

semaviso August 2, 2011 06:43

when running tutorial: Permission denied collect2: ld returned 1 exit status
 
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.:confused:

brucechen November 10, 2011 02:59

have same problem. when used OpenFOAM 2.0.0

semaviso November 10, 2011 03:11

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!!


All times are GMT -4. The time now is 15:26.