CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

when running tutorial: Permission denied collect2: ld returned 1 exit status

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 2, 2011, 06:43
Default 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: 21
Rep Power: 6
semaviso is on a distinguished road
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.
semaviso is offline   Reply With Quote

Old   November 10, 2011, 02:59
Default
  #2
New Member
 
bruce
Join Date: Aug 2011
Posts: 3
Rep Power: 5
brucechen is on a distinguished road
have same problem. when used OpenFOAM 2.0.0
brucechen is offline   Reply With Quote

Old   November 10, 2011, 03:11
Default
  #3
New Member
 
Sibusiso Mavuso
Join Date: Jul 2010
Location: South Africa/Pretoria
Posts: 21
Rep Power: 6
semaviso is on a distinguished road
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!!
semaviso is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debug version of OpenFOAM-1.6 alundilong OpenFOAM Installation 18 June 16, 2012 04:42
cfx5post in batch mode on "graphics-less" Linux frankyd CFX 3 April 12, 2011 16:47
Installing OF 1.6 on Mac OS X gschaider OpenFOAM Installation 140 June 19, 2010 09: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 CD-adapco 0 August 30, 2004 15:43


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