|
[Sponsors] |
[swak4Foam] installation problem: "./Allwmake: ... [[: not found" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
May 30, 2012, 18:18 |
|
#1 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
||
June 2, 2012, 12:49 |
|
#2 |
New Member
Join Date: Jan 2012
Posts: 10
Rep Power: 14 |
Indeed, bison was not installed. I thought, this is a standard application in ubuntu.
Thanks |
|
May 13, 2013, 05:20 |
compiler option
|
#3 |
New Member
nicolas
Join Date: Oct 2009
Posts: 24
Rep Power: 16 |
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 Is there something I can do here? Regards, Nicolas |
|
May 13, 2013, 07:25 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 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 |
||
May 13, 2013, 08:05 |
|
#5 |
New Member
nicolas
Join Date: Oct 2009
Posts: 24
Rep Power: 16 |
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 |
|
Tags |
swak4foam error |
|
|
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 |