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

Cannot compile utilities in Ubuntu 12.04

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 4, 2014, 22:54
Question Cannot compile utilities in Ubuntu 12.04
  #1
Member
 
skyinventorbt's Avatar
 
Dr. B T KANNAN
Join Date: Jul 2011
Location: CHENNAI (MADRAS), INDIA
Posts: 55
Rep Power: 14
skyinventorbt is on a distinguished road
Hi Foamers,

I have installed OF2.2.1 in Ubuntu 12.04 and its working fine. The problem is when I compile my own utilities, it gives me error.
Code:
kannan@AIL:~/OpenFOAM/kannan-2.2.1/helicity$ wmake
Making dependency list for source file helicity.C
Making dependency list for source file compatibilityFvPatchFields/turbulentIntensityKineticEnergyInlet/turbulentIntensityKineticEnergyInletFvPatchSymmTensorField.C
SOURCE=helicity.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/opt/openfoam221/src/postProcessing/postCalc -I/opt/openfoam221/src/turbulenceModels -I/opt/openfoam221/src/turbulenceModels/incompressible/RAS/RASModel -I/opt/openfoam221/src/transportModels -I/opt/openfoam221/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam221/src/OpenFOAM/lnInclude -I/opt/openfoam221/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/helicity.o
SOURCE=compatibilityFvPatchFields/turbulentIntensityKineticEnergyInlet/turbulentIntensityKineticEnergyInletFvPatchSymmTensorField.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/opt/openfoam221/src/postProcessing/postCalc -I/opt/openfoam221/src/turbulenceModels -I/opt/openfoam221/src/turbulenceModels/incompressible/RAS/RASModel -I/opt/openfoam221/src/transportModels -I/opt/openfoam221/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam221/src/OpenFOAM/lnInclude -I/opt/openfoam221/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/turbulentIntensityKineticEnergyInletFvPatchSymmTensorField.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/opt/openfoam221/src/postProcessing/postCalc -I/opt/openfoam221/src/turbulenceModels -I/opt/openfoam221/src/turbulenceModels/incompressible/RAS/RASModel -I/opt/openfoam221/src/transportModels -I/opt/openfoam221/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam221/src/OpenFOAM/lnInclude -I/opt/openfoam221/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/helicity.o Make/linux64GccDPOpt/turbulentIntensityKineticEnergyInletFvPatchSymmTensorField.o -L/opt/openfoam221/platforms/linux64GccDPOpt/lib \
         /opt/openfoam221/platforms/linux64GccDPOpt/lib/postCalc.o -lincompressibleRASModels -lincompressibleTransportModels -lfiniteVolume -lgenericPatchFields -lOpenFOAM -ldl   -lm -o /opt/openfoam221/platforms/linux64GccDPOpt/bin/helicity
/usr/bin/ld: cannot open output file /opt/openfoam221/platforms/linux64GccDPOpt/bin/helicity: Permission denied
collect2: ld returned 1 exit status
make: *** [/opt/openfoam221/platforms/linux64GccDPOpt/bin/helicity] Error 1
I tried chmod to own the folder but it also did not work.

This may be due to root permission ?
Any help to make my utilities to work..

Thanks in advance...

--
KANNAN B T

Last edited by skyinventorbt; January 4, 2014 at 23:02. Reason: Improved question for better answer
skyinventorbt is offline   Reply With Quote

Old   January 5, 2014, 09:13
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Kannan,

If you follow this tutorial: http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam - you should not get the same problem. The reason is because of what is defined in the file "Make/files":
Quote:
Code:
EXE = $(FOAM_USER_APPBIN)/my_icoFoam
You probably have got "FOAM_APPBIN" instead of "FOAM_USER_APPBIN".

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 7, 2014, 00:19
Default
  #3
Member
 
skyinventorbt's Avatar
 
Dr. B T KANNAN
Join Date: Jul 2011
Location: CHENNAI (MADRAS), INDIA
Posts: 55
Rep Power: 14
skyinventorbt is on a distinguished road
Thanks Bruno. . .
I will look in to this . . .
--
KANNAN B T
skyinventorbt 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
FLUENT installation on UBUNTU 12.04 (LTS) teymourj FLUENT 2 March 1, 2017 22:24
[foam-extend.org] OpenFOAM-1.6-ext on Ubuntu 12.04 install errors benk OpenFOAM Installation 37 August 8, 2016 11:48
Fluent Gambit in ubuntu 12.04 lts prithvi yesudas FLUENT 7 January 17, 2014 04:14
Openfoam 2.1 installation in ubuntu 12.04 jsm OpenFOAM Installation 11 May 7, 2012 04:56
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 21:51


All times are GMT -4. The time now is 09:48.