CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] difficulties installing swak4foam (https://www.cfd-online.com/Forums/openfoam-community-contributions/103805-difficulties-installing-swak4foam.html)

wyldckat January 14, 2015 15:36

Hi hkiani,

If you had executed the following commands:
Code:

./Allwmake > make.log 2>&1
tar -czf make.log.tar.gz make.log

you could have attached the file "make.log.tar.gz" to your post and we would be able to see the whole output ;)

From what I can see, this is a reason for concern:
Code:

Flex is version Apple(flex-31)
If you could install the GNU version of flex, it would be preferable. I'm guessing it's available in Macports.

As for "g++" and "gcc", please try the following commands:
Code:

gcc --version
g++ --version

and let us know what they gave you.

Beyond this, I believe that Bernhard, the author of swak4Foam, usually develops swak4Foam on Mac OS X in the first place, so it should work just fine.
My guess is that the problem is in fact that since you didn't go through the ordeal of building foam-extend from source code on Mac OS X, you're now having trouble building swak4Foam from source code. If you had built foam-extend from source code, you would likely have had similar issues sooner and would have had to look better into installing the necessary tools ;)

Best regards,
Bruno

Elham July 6, 2015 00:07

I try to install flex and bison for using swak4Foam but whenever I want to run the following code:

apt-get install qt4-dev-tools libqt4-dev libqt4-opengl-dev freeglut3-dev libqtwebkit-dev

I have got the following error:

Ignoring file 'openfoam.listsudo' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension


Do you have any idea to fix the problem?
Thanks
Elham

wyldckat July 18, 2015 17:16

Greetings Elham,

You must do the following command very carefully, without missing a single character, otherwise you risk compromising your Ubuntu installation:
Code:

sudo rm -i /etc/apt/sources.list.d/openfoam.listsudo
This will remove the file "openfoam.listsudo", which was likely created due to an incorrect copy-paste of the instructions from the OpenFOAM Deb package installation instructions: http://www.openfoam.org/download/ubuntu.php

Then run:
[CODE]sudo apt-get update[CODE]
and it should then allow you to run the command:
Code:

sudo apt-get install qt4-dev-tools libqt4-dev libqt4-opengl-dev freeglut3-dev libqtwebkit-dev
Best regards,
Bruno

viraj20feb November 24, 2018 13:35

1 Attachment(s)
Quote:

Originally Posted by wyldckat (Post 477609)
Well... swak4Foam was designed for the user to build it, without the need for administrative intervention.

The problem is that the system's Bison version is 2.3 and swak4Foam is asking for at least 2.4. Since Bison is only needed for the build process, I suggest that you do the following steps:
  1. Go into the source code folder where you have swak4Foam's source code.
  2. Download and unpack Bison in the swak4Foam folder: http://ftpmirror.gnu.org/bison/bison-2.7.tar.gz
  3. Go into the Bison folder, configure it and compile+install it:
    Code:

    cd bison-2.7
    ./configure --prefix $PWD/../bison
    make
    make install

    It will install into the folder named bison inside swak4Foam.
  4. Go back into the main folder and add it to the search path:
    Code:

    cd ..
    export PATH=$PWD/bison/bin:$PATH

  5. Now you can proceed to building swak4Foam:
    Code:

    ./Allwmake

Greetings!


I am trying to install swak4Foam development version with OpenFOAM-5.0 on Ubuntu 18.04.1 LTS. The steps that I follow are as follows:


Code:

sudo apt-get install build-essential flex subversion git mercurial wget
Code:

of50
mkdir -p $FOAM_RUN cd "$HOME/OpenFOAM/$USER-$WM_PROJECT_VERSION"

Code:

git clone https://github.com/Unofficial-Extend-Project-Mirror/openfoam-extend-swak4Foam-dev.git swak4Foam
cd swak4Foam git checkout branches/develop cd ..

Code:

cd swak4Foam
./maintainanceScripts/compileRequirements.sh
export PATH=/home/viraj/OpenFOAM/viraj-5.0/swak4Foam/privateRequirements/bin:$PATH

./Allwmake > log.make 2>&1
./Allwmake > log.make 2>&1

When I do this, I get the error:
Code:

/opt/openfoam5/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o' failed
make: *** [Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o] Error 1

I have attached the log file. Could you please help?


Thanks,
Viraj

gschaider November 25, 2018 07:07

Quote:

Originally Posted by viraj20feb (Post 716717)
Greetings!


I am trying to install swak4Foam development version with OpenFOAM-5.0 on Ubuntu 18.04.1 LTS. The steps that I follow are as follows:


Code:

sudo apt-get install build-essential flex subversion git mercurial wget
Code:

of50
mkdir -p $FOAM_RUN cd "$HOME/OpenFOAM/$USER-$WM_PROJECT_VERSION"

Code:

git clone https://github.com/Unofficial-Extend-Project-Mirror/openfoam-extend-swak4Foam-dev.git swak4Foam
cd swak4Foam git checkout branches/develop cd ..

Code:

cd swak4Foam
./maintainanceScripts/compileRequirements.sh
export PATH=/home/viraj/OpenFOAM/viraj-5.0/swak4Foam/privateRequirements/bin:$PATH

./Allwmake > log.make 2>&1
./Allwmake > log.make 2>&1

When I do this, I get the error:
Code:

/opt/openfoam5/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o' failed
make: *** [Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o] Error 1

I have attached the log file. Could you please help?


Thanks,
Viraj


I can't. You're using the unsupported git-repository. Because of this the output "hg info: 000000000000 tip" in your log doesn't give me an indication which version of the sources you're using

viraj20feb November 25, 2018 10:06

Quote:

Originally Posted by gschaider (Post 716752)
I can't. You're using the unsupported git-repository. Because of this the output "hg info: 000000000000 tip" in your log doesn't give me an indication which version of the sources you're using

Hello Mr. Gschaider,

Could you please point me towards the correct set of installation steps and repository to install swak4Foam? I have OpenFOAM-5.0 installed in Ubuntu 18.04.1 LTS. Thank you very much!

LeOtTeRz November 26, 2018 22:36

1 Attachment(s)
Quote:

Originally Posted by gschaider (Post 716752)
I can't. You're using the unsupported git-repository. Because of this the output "hg info: 000000000000 tip" in your log doesn't give me an indication which version of the sources you're using


Hello Mr. Gschaider


I have the same error of Vijaj but in my log if it is indicated the version of the sources that I have been using.


Could you please help?


Thanks
Leandro

gschaider November 27, 2018 17:23

Quote:

Originally Posted by viraj20feb (Post 716758)
Hello Mr. Gschaider,

Could you please point me towards the correct set of installation steps and repository to install swak4Foam? I have OpenFOAM-5.0 installed in Ubuntu 18.04.1 LTS. Thank you very much!


The best way to get the sources is

Code:

hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam
cd openfoam-extend-swak4Foam
hg update development


Then compile according to https://openfoamwiki.net/index.php/C...4Foam#Building

viraj20feb December 11, 2018 18:07

Quote:

Originally Posted by gschaider (Post 717076)
The best way to get the sources is

Code:

hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam
cd openfoam-extend-swak4Foam
hg update development


Then compile according to https://openfoamwiki.net/index.php/C...4Foam#Building

Hi Gschaider,

I used the way suggested by you to get the sources. But I still get the following error:
Code:

/opt/openfoam5/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o' failed
make: *** [Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it

Can you please help?

AnkitRK August 30, 2019 11:07

Difficulties installing Swak4foam for openFoam2.1
 
Dear all,


I am new to the Linux and trying to install Swak4foam for openfoam2.1. During the build I got the following error.

Include/patchedInterpolation2DTable.C(38): error: call of an object of a class type without appropriate operator() or conversion functions to pointer-to-function type
reader_()(fName, *this);
^
detected during:
instantiation of "void Foam::interpolation2DTable<Type>::readTable() [with Type=Foam::scalar={Foam::doubleScalar={double}}]" at line 101
instantiation of "Foam::interpolation2DTable<Type>::interpolation2D Table(const Foam::dictionary &) [with Type=Foam::scalar={Foam::doubleScalar={double}}]" at line 1624 of "CommonValueExpressionDriver.C"
instantiation of "void Foam::CommonValueExpressionDriver::readTables(Foam ::Istream &, Foam::HashTable<TableType, Foam::word, Foam::string::hash> &, bool) [with TableType=Foam::interpolation2DTable<Foam::scalar= {Foam::doubleScalar={double}}>]" at line 389 of "CommonValueExpressionDriver.C"

lnInclude/patchedInterpolation2DTable.C(377): error: identifier "lessOp" is undefined
label x0i = Xi(lessOp<scalar>(), valueX, false);
^

lnInclude/patchedInterpolation2DTable.C(377): error: type name is not allowed
label x0i = Xi(lessOp<scalar>(), valueX, false);
^

lnInclude/patchedInterpolation2DTable.C(377): error: expected an expression
label x0i = Xi(lessOp<scalar>(), valueX, false);
^

lnInclude/patchedInterpolation2DTable.C(378): error: identifier "greaterOp" is undefined
label x1i = Xi(greaterOp<scalar>(), valueX, true);
^

lnInclude/patchedInterpolation2DTable.C(378): error: type name is not allowed
label x1i = Xi(greaterOp<scalar>(), valueX, true);
^

lnInclude/patchedInterpolation2DTable.C(378): error: expected an expression
label x1i = Xi(greaterOp<scalar>(), valueX, true);
^

compilation aborted for CommonValueExpressionDriver.C (code 2)
CommonValueExpressionDriver.dep:543: recipe for target 'Make/linux64IccDPOpt/CommonValueExpressionDriver.o' failed
make: *** [Make/linux64IccDPOpt/CommonValueExpressionDriver.o] Error 2
Parser library did not compile OK. No sense continuing as everything else depends on it

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard


It would be helpful if you can guide me how to handle this error.

Thank you in advance:)

gschaider August 30, 2019 18:37

Quote:

Originally Posted by AnkitRK (Post 743483)
Dear all,


I am new to the Linux and trying to install Swak4foam for openfoam2.1. During the build I got the following error.

Include/patchedInterpolation2DTable.C(38): error: call of an object of a class type without appropriate operator() or conversion functions to pointer-to-function type
reader_()(fName, *this);
^
detected during:
instantiation of "void Foam::interpolation2DTable<Type>::readTable() [with Type=Foam::scalar={Foam::doubleScalar={double}}]" at line 101
instantiation of "Foam::interpolation2DTable<Type>::interpolation2D Table(const Foam::dictionary &) [with Type=Foam::scalar={Foam::doubleScalar={double}}]" at line 1624 of "CommonValueExpressionDriver.C"
instantiation of "void Foam::CommonValueExpressionDriver::readTables(Foam ::Istream &, Foam::HashTable<TableType, Foam::word, Foam::string::hash> &, bool) [with TableType=Foam::interpolation2DTable<Foam::scalar= {Foam::doubleScalar={double}}>]" at line 389 of "CommonValueExpressionDriver.C"

lnInclude/patchedInterpolation2DTable.C(377): error: identifier "lessOp" is undefined
label x0i = Xi(lessOp<scalar>(), valueX, false);
^

lnInclude/patchedInterpolation2DTable.C(377): error: type name is not allowed
label x0i = Xi(lessOp<scalar>(), valueX, false);
^

lnInclude/patchedInterpolation2DTable.C(377): error: expected an expression
label x0i = Xi(lessOp<scalar>(), valueX, false);
^

lnInclude/patchedInterpolation2DTable.C(378): error: identifier "greaterOp" is undefined
label x1i = Xi(greaterOp<scalar>(), valueX, true);
^

lnInclude/patchedInterpolation2DTable.C(378): error: type name is not allowed
label x1i = Xi(greaterOp<scalar>(), valueX, true);
^

lnInclude/patchedInterpolation2DTable.C(378): error: expected an expression
label x1i = Xi(greaterOp<scalar>(), valueX, true);
^

compilation aborted for CommonValueExpressionDriver.C (code 2)
CommonValueExpressionDriver.dep:543: recipe for target 'Make/linux64IccDPOpt/CommonValueExpressionDriver.o' failed
make: *** [Make/linux64IccDPOpt/CommonValueExpressionDriver.o] Error 2
Parser library did not compile OK. No sense continuing as everything else depends on it

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard


It would be helpful if you can guide me how to handle this error.

Thank you in advance:)


Hm. I guess there is a reason that you use a 8 year old version of OF. The oldest version that I have currently available is 2.3 and that compiles without problems (it is the oldest version that I test against). The file you're having problems with is in swa since 2015 and hasn't been changed since. So I guess all swak-versions since 2015 break with OF 2.1.
So your best chance is going back to a version that was released before October 2015 and try to compile that (of course the latest features features would be missing)
Or if you're hardcore: find the relevant commit, try to reverse apply it and hope that compiles without these changes (if that makes you go "hä?" then you're probably not hardcore)

AnkitRK August 31, 2019 06:11

I am definitely not "hardcore" :)
Thanks for the suggestion, I tried to build the older version of Swak4foam. Still does not work and i get the same error! Not a clue, what went wrong.

gschaider August 31, 2019 16:48

Quote:

Originally Posted by AnkitRK (Post 743519)
I am definitely not "hardcore" :)
Thanks for the suggestion, I tried to build the older version of Swak4foam. Still does not work and i get the same error! Not a clue, what went wrong.


The "youngest" release before the offending changes would be 0.3.2. But that is rather old


BTW: what is the reason for you to use such an old OF-Version (I guess you have a good one)

quarkz September 17, 2019 04:03

Hi,

I tried to build the latest version 0.4.2 but there seems to be readline error:

When I use the system readline 6.3, I got the error:

ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o loadlib.o linit.o
ranlib liblua.a
gcc -fPIC -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -c -o lua.o lua.c
gcc -fPIC -std=gnu99 -o lua lua.o liblua.a -lm -Wl,-E -ldl -lreadline
/app/readline/6.3/lib/libreadline.so: undefined reference to `tputs'
/app/readline/6.3/lib/libreadline.so: undefined reference to `tgoto'
/app/readline/6.3/lib/libreadline.so: undefined reference to `tgetflag'
/app/readline/6.3/lib/libreadline.so: undefined reference to `UP'
/app/readline/6.3/lib/libreadline.so: undefined reference to `tgetent'
/app/readline/6.3/lib/libreadline.so: undefined reference to `tgetnum'
/app/readline/6.3/lib/libreadline.so: undefined reference to `PC'
/app/readline/6.3/lib/libreadline.so: undefined reference to `tgetstr'
/app/readline/6.3/lib/libreadline.so: undefined reference to `BC'
collect2: error: ld returned 1 exit status
make[2]: *** [lua] Error 1
make[2]: Leaving directory `/home/projects/11000324/OpenFOAM/swak4Foam/privateRequirements/compilation/lua-5.3.4/src'
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/home/projects/11000324/OpenFOAM/swak4Foam/privateRequirements/compilation/lua-5.3.4/src'
make: *** [linux] Error 2
cd src && mkdir -p /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/bin /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/include /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/lib /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/man/man1 /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/share/lua/5.3 /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/lib/lua/5.3
cd src && install -p -m 0755 lua luac /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/bin
install: cannot stat `lua': No such file or directory
install: cannot stat `luac': No such file or directory
make: *** [install] Error 1
If there were problems during compilation install the readline-devel package (name may be different on platforms)

Lua not compiled. Check output


When I install readline 8.0, it seems that readline is not found and I got the error:

ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o loadlib.o linit.o
ranlib liblua.a
gcc -fPIC -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -c -o lua.o lua.c
lua.c:82:31: fatal error: readline/readline.h: No such file or directory
#include <readline/readline.h>
^
compilation terminated.
make[2]: *** [lua.o] Error 1
make[2]: Leaving directory `/home/projects/11000324/OpenFOAM/swak4Foam/privateRequirements/compilation/lua-5.3.4/src'
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/home/projects/11000324/OpenFOAM/swak4Foam/privateRequirements/compilation/lua-5.3.4/src'
make: *** [linux] Error 2
cd src && mkdir -p /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/bin /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/include /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/lib /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/man/man1 /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/share/lua/5.3 /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/lib/lua/5.3
cd src && install -p -m 0755 lua luac /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/bin
install: cannot stat `lua': No such file or directory
install: cannot stat `luac': No such file or directory
make: *** [install] Error 1
If there were problems during compilation install the readline-devel package (name may be different on platforms)

Lua not compiled. Check output

Hope someone can help. Thanks!

gschaider September 18, 2019 03:34

I wouldn't bother about it to much. Lua is only needed for a rather esoteric part of swak4Foam


But I'm curious. Which Linux Distro are you using? (Lua is rather robust in its requirements for compilation)



Quote:

Originally Posted by quarkz (Post 744858)
Hi,

I tried to build the latest version 0.4.2 but there seems to be readline error:

When I use the system readline 6.3, I got the error:

ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o loadlib.o linit.o
ranlib liblua.a
gcc -fPIC -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -c -o lua.o lua.c
gcc -fPIC -std=gnu99 -o lua lua.o liblua.a -lm -Wl,-E -ldl -lreadline
/app/readline/6.3/lib/libreadline.so: undefined reference to `tputs'
/app/readline/6.3/lib/libreadline.so: undefined reference to `tgoto'
/app/readline/6.3/lib/libreadline.so: undefined reference to `tgetflag'
/app/readline/6.3/lib/libreadline.so: undefined reference to `UP'
/app/readline/6.3/lib/libreadline.so: undefined reference to `tgetent'
/app/readline/6.3/lib/libreadline.so: undefined reference to `tgetnum'
/app/readline/6.3/lib/libreadline.so: undefined reference to `PC'
/app/readline/6.3/lib/libreadline.so: undefined reference to `tgetstr'
/app/readline/6.3/lib/libreadline.so: undefined reference to `BC'
collect2: error: ld returned 1 exit status
make[2]: *** [lua] Error 1
make[2]: Leaving directory `/home/projects/11000324/OpenFOAM/swak4Foam/privateRequirements/compilation/lua-5.3.4/src'
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/home/projects/11000324/OpenFOAM/swak4Foam/privateRequirements/compilation/lua-5.3.4/src'
make: *** [linux] Error 2
cd src && mkdir -p /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/bin /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/include /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/lib /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/man/man1 /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/share/lua/5.3 /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/lib/lua/5.3
cd src && install -p -m 0755 lua luac /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/bin
install: cannot stat `lua': No such file or directory
install: cannot stat `luac': No such file or directory
make: *** [install] Error 1
If there were problems during compilation install the readline-devel package (name may be different on platforms)

Lua not compiled. Check output


When I install readline 8.0, it seems that readline is not found and I got the error:

ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o loadlib.o linit.o
ranlib liblua.a
gcc -fPIC -std=gnu99 -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -c -o lua.o lua.c
lua.c:82:31: fatal error: readline/readline.h: No such file or directory
#include <readline/readline.h>
^
compilation terminated.
make[2]: *** [lua.o] Error 1
make[2]: Leaving directory `/home/projects/11000324/OpenFOAM/swak4Foam/privateRequirements/compilation/lua-5.3.4/src'
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/home/projects/11000324/OpenFOAM/swak4Foam/privateRequirements/compilation/lua-5.3.4/src'
make: *** [linux] Error 2
cd src && mkdir -p /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/bin /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/include /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/lib /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/man/man1 /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/share/lua/5.3 /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/lib/lua/5.3
cd src && install -p -m 0755 lua luac /home/users/nus/tsltaywb/speedster/OpenFOAM/swak4Foam/privateRequirements/bin
install: cannot stat `lua': No such file or directory
install: cannot stat `luac': No such file or directory
make: *** [install] Error 1
If there were problems during compilation install the readline-devel package (name may be different on platforms)

Lua not compiled. Check output

Hope someone can help. Thanks!


ksgr May 9, 2020 04:48

Problem installing swak4Foam with OF 2.1.1
 
1 Attachment(s)
Hello,

I am not an expert FOAM user. However, I am trying to run a project which was done in OF 2.1.1 about an Euler-Lagrange problem. Reason to use such an old version of OF being that OF has brought in big changes post OF 4.x in thermo libraries and I am finding hard time using Chemkin files and thermo libraries which are used in the current project of OF 2.1.1

Ok, now to the problem, I have cleanly installed OF 2.1.1 without any problems. After that I installed swak4Foam (version 0.3.2) as directed in the openfoamwiki.net. Also, followed the dependencies requirements. When I do Allwmake I get problem as attached in the log file. I am not able to understand the error and hence debug it. Any help would be greatly appreciated.

P.S: I have installed my swak4Foam in "$HOME/OpenFOAM/$USER-$WM_PROJECT_VERSION" if it is of any use for the problem.

Regards
Sagar

gschaider May 9, 2020 07:38

Quote:

Originally Posted by ksgr (Post 769565)
Hello,

I am not an expert FOAM user. However, I am trying to run a project which was done in OF 2.1.1 about an Euler-Lagrange problem. Reason to use such an old version of OF being that OF has brought in big changes post OF 4.x in thermo libraries and I am finding hard time using Chemkin files and thermo libraries which are used in the current project of OF 2.1.1

Ok, now to the problem, I have cleanly installed OF 2.1.1 without any problems. After that I installed swak4Foam (version 0.3.2) as directed in the openfoamwiki.net. Also, followed the dependencies requirements. When I do Allwmake I get problem as attached in the log file. I am not able to understand the error and hence debug it. Any help would be greatly appreciated.

P.S: I have installed my swak4Foam in "$HOME/OpenFOAM/$USER-$WM_PROJECT_VERSION" if it is of any use for the problem.

Regards
Sagar


So you're using an old OF/swak on a newer machine (with a newer compiler). I think this HUGE that was a preprocessor-symbol for a ridiculously large floating point number (but not the largest on) that used to be in the headers of gcc but no longer is. Try
Code:

#define HUGE 1e15
at the top of namedEnums/NumericAccumulationNamedEnum.C

ksgr May 10, 2020 06:45

Thank you Bernhard Gschaider for your quick reply. I followed your suggestion and defined HUGE. It occurred in multiple files and I did the same and was able to successfully compile it.

Thanks
Sagar

Bodo1993 August 2, 2020 20:06

Installing swak4foam on cluster
 
Hi all,
I have used the following commands to install swak4foam in a frontal node in a cluster.
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam
cd swak4Foam
./AllwmakeAll

The swak4foam was installed at the home directory. I then loaded openfoam to the cluster, but it seems that it did not recognize the swak4foam installation. The error:
"funkySetFields: command not found"

I am wondering if there is any especial treatment to make swak4foam working on the cluster. I did the same steps on my local machine and it is working well.

I appreciate your assistance.

gschaider August 3, 2020 06:07

Quote:

Originally Posted by Bodo1993 (Post 779412)
Hi all,
I have used the following commands to install swak4foam in a frontal node in a cluster.
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam
cd swak4Foam
./AllwmakeAll

The swak4foam was installed at the home directory. I then loaded openfoam to the cluster, but it seems that it did not recognize the swak4foam installation. The error:
"funkySetFields: command not found"

I am wondering if there is any especial treatment to make swak4foam working on the cluster. I did the same steps on my local machine and it is working well.

I appreciate your assistance.


swak4Foam compiles itself into the $FOAM_USER_APPBIN and $FOAM_USER_LIBBIN of the current user (not into $FOAM_SITE_APPBIN/LIBBIN or $FOAM_APPBIN/LIBBIN where all users can find it. In the maintainanc-directory are scripts to copy the binaries there). If you are a different user on the cluster and/or $FOAM_USER_APPBIN/LIBBIN is on a different file system then swak4Foam can't be found on the cluster


All times are GMT -4. The time now is 00:51.