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

Cannot compile utilities in Ubuntu 12.04

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 4, 2014, 23:54
Question Cannot compile utilities in Ubuntu 12.04
  #1
Member
 
B T KANNAN
Join Date: Jul 2011
Location: CHENNAI (MADRAS), INDIA
Posts: 54
Rep Power: 6
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 5, 2014 at 00:02. Reason: Improved question for better answer
skyinventorbt is offline   Reply With Quote

Old   January 5, 2014, 10:13
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 01:19
Default
  #3
Member
 
B T KANNAN
Join Date: Jul 2011
Location: CHENNAI (MADRAS), INDIA
Posts: 54
Rep Power: 6
skyinventorbt is on a distinguished road
Thanks Bruno. . .
I will look in to this . . .
--
KANNAN B T
skyinventorbt 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
Fluent Gambit in ubuntu 12.04 lts prithvi yesudas FLUENT 7 January 17, 2014 05:14
OpenFOAM-1.6-ext on Ubuntu 12.04 install errors benk OpenFOAM Installation 34 September 11, 2013 16:35
FLUENT installation on UBUNTU 12.04 (LTS) teymourj FLUENT 0 August 26, 2013 20:27
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 22:51


All times are GMT -4. The time now is 12:42.