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

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

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By semaviso

Reply
 
LinkBack Thread Tools Search this Thread 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: 22
Rep Power: 15
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, 01:59
Default
  #2
New Member
 
bruce
Join Date: Aug 2011
Posts: 3
Rep Power: 14
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, 02:11
Default
  #3
New Member
 
Sibusiso Mavuso
Join Date: Jul 2010
Location: South Africa/Pretoria
Posts: 22
Rep Power: 15
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

Old   December 12, 2019, 10:03
Default worked for me in AZURE OpenFoam
  #4
Member
 
Jairo A. Gutiérrez S
Join Date: Nov 2014
Posts: 57
Rep Power: 11
jairoandres is on a distinguished road
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.
jairoandres 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
Debug version of OpenFOAM-1.6 alundilong OpenFOAM Installation 20 May 11, 2023 07:31
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 129 June 19, 2010 09:23
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30
Tutorial is not running on star-CD version 3.2 Arnab Siemens 0 August 30, 2004 15:43


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