CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] installation problem: "./Allwmake: ... [[: not found"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 30, 2012, 18:18
Default
  #1
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by slint View Post
/bin/sh: 1: bison: not found
What could this mean? Maybe that a prerequisite is missing?
gschaider is offline   Reply With Quote

Old   June 2, 2012, 12:49
Default
  #2
New Member
 
Join Date: Jan 2012
Posts: 10
Rep Power: 14
slint is on a distinguished road
Indeed, bison was not installed. I thought, this is a standard application in ubuntu.

Thanks
slint is offline   Reply With Quote

Old   May 13, 2013, 05:20
Default compiler option
  #3
nik
New Member
 
nicolas
Join Date: Oct 2009
Posts: 24
Rep Power: 16
nik is on a distinguished road
Hello,

I am trying to install swak4Foam and I have one question. Is it possible to define which compiler to use? On the machine I am trying to install, there is a problem with the compiler name, and when I am trying to compile I have to explicitly define CC=icc. I have the same problem with OpenFOAM, and the way around is when I am trying to compile an application, I just go to Make/options and add CC=icc.

This is what I get when I try to install swak4Foam.

Code:
SOURCE=helpers/printSwakVersion.C ;   -Dlinux64 -DWM_DP -wd327,654,819,1125,1476,1505,1572   -DNoRepository -IMake/linux64IccDPOpt  	 -I/gpfs/eb/software/OpenFOAM/2.1.1-ictce-4.0.6/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/gpfs/eb/software/OpenFOAM/2.1.1-ictce-4.0.6/OpenFOAM-2.1.1/src/sampling/lnInclude  -I/gpfs/eb/software/OpenFOAM/2.1.1-ictce-4.0.6/OpenFOAM-2.1.1/src/triSurface/lnInclude -I/gpfs/eb/software/OpenFOAM/2.1.1-ictce-4.0.6/OpenFOAM-2.1.1/src/surfMesh/lnInclude -I/gpfs/eb/software/OpenFOAM/2.1.1-ictce-4.0.6/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude -I/gpfs/eb/software/OpenFOAM/2.1.1-ictce-4.0.6/OpenFOAM-2.1.1/src/meshTools/lnInclude -IlnInclude -I. -I/gpfs/eb/software/OpenFOAM/2.1.1-ictce-4.0.6/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/gpfs/eb/software/OpenFOAM/2.1.1-ictce-4.0.6/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64IccDPOpt/printSwakVersion.o
/bin/sh: -Dlinux64: command not found
Most probably CC is empty and when expanding it leaves it blank.

Is there something I can do here?

Regards,
Nicolas
nik is offline   Reply With Quote

Old   May 13, 2013, 07:25
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by nik View Post
Hello,

I am trying to install swak4Foam and I have one question. Is it possible to define which compiler to use? On the machine I am trying to install, there is a problem with the compiler name, and when I am trying to compile I have to explicitly define CC=icc. I have the same problem with OpenFOAM, and the way around is when I am trying to compile an application, I just go to Make/options and add CC=icc.

This is what I get when I try to install swak4Foam.

Code:
SOURCE=helpers/printSwakVersion.C ;   -Dlinux64 -DWM_DP -wd327,654,819,1125,1476,1505,1572   -DNoRepository -IMake/linux64IccDPOpt  	 -I/gpfs/eb/software/OpenFOAM/2.1.1-ictce-4.0.6/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/gpfs/eb/software/OpenFOAM/2.1.1-ictce-4.0.6/OpenFOAM-2.1.1/src/sampling/lnInclude  -I/gpfs/eb/software/OpenFOAM/2.1.1-ictce-4.0.6/OpenFOAM-2.1.1/src/triSurface/lnInclude -I/gpfs/eb/software/OpenFOAM/2.1.1-ictce-4.0.6/OpenFOAM-2.1.1/src/surfMesh/lnInclude -I/gpfs/eb/software/OpenFOAM/2.1.1-ictce-4.0.6/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude -I/gpfs/eb/software/OpenFOAM/2.1.1-ictce-4.0.6/OpenFOAM-2.1.1/src/meshTools/lnInclude -IlnInclude -I. -I/gpfs/eb/software/OpenFOAM/2.1.1-ictce-4.0.6/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/gpfs/eb/software/OpenFOAM/2.1.1-ictce-4.0.6/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64IccDPOpt/printSwakVersion.o
/bin/sh: -Dlinux64: command not found
Most probably CC is empty and when expanding it leaves it blank.

Is there something I can do here?

Regards,
Nicolas
At first: for the sake of your sanity I'd recommend always using the same compiler to compile swak as the one that compiled OF

Compiler and options are determined by the appropriate sub-directory in wmake/rules whose name is taken from the environment variables WM_ARCH, WM_ARCH_OPTION and WM_COMPILER. To override any of these either edit etc/bashrc or set them in a files ~/OpenFOAM/site/2.2.x/prefs.sh. Something like
Code:
export WM_COMPILER=Icc
should use the ready-made settings for the Intel-compiler

With some architectures the compiler can be overruled by setting WM_CC and WM_CXX but only do this if you know what you're doing (see first sentence)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 13, 2013, 08:05
Default
  #5
nik
New Member
 
nicolas
Join Date: Oct 2009
Posts: 24
Rep Power: 16
nik is on a distinguished road
Dear Bernhard,

thank you very much for your reply. The problem was with the environmental variables set for the compiler options of OpenFOAM in wmake/rules. Now swak4Foam is installing. Thanks again.

Regards,
Nicolas
nik is offline   Reply With Quote

Reply

Tags
swak4foam error


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
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 04:18
error in fireFoam, when running the case wallFireSpread2D zhoubiao1088 OpenFOAM Running, Solving & CFD 9 February 1, 2018 18:45
[Other] Compiling hacFoam (Ubuntu 10.04)(OF2.0.0)(LAMMPS13Jul2010)) Henrik_E OpenFOAM Installation 3 September 29, 2016 16:16
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 04:41
Install problem in linux navaladi OpenFOAM Installation 11 July 17, 2008 02:24


All times are GMT -4. The time now is 11:35.