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

[swak4Foam] difficulties installing swak4foam

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

Like Tree13Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2015, 16:36
Default
  #81
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
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
wyldckat is offline   Reply With Quote

Old   July 6, 2015, 01:07
Default
  #82
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 17
Elham is on a distinguished road
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
Elham is offline   Reply With Quote

Old   July 18, 2015, 18:16
Default
  #83
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 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
__________________
wyldckat is offline   Reply With Quote

Old   November 24, 2018, 14:35
Default
  #84
Member
 
Viraj Belekar
Join Date: Jun 2016
Posts: 68
Rep Power: 10
viraj20feb is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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
Attached Files
File Type: txt log.txt (12.1 KB, 4 views)
viraj20feb is offline   Reply With Quote

Old   November 25, 2018, 08:07
Default
  #85
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 viraj20feb View Post
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
__________________
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   November 25, 2018, 11:06
Default
  #86
Member
 
Viraj Belekar
Join Date: Jun 2016
Posts: 68
Rep Power: 10
viraj20feb is on a distinguished road
Quote:
Originally Posted by gschaider View Post
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!
viraj20feb is offline   Reply With Quote

Old   November 26, 2018, 23:36
Default
  #87
New Member
 
Leandro
Join Date: Sep 2018
Location: Colombia
Posts: 4
Rep Power: 8
LeOtTeRz is on a distinguished road
Quote:
Originally Posted by gschaider View Post
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
Attached Files
File Type: txt log.make.txt (12.1 KB, 2 views)
LeOtTeRz is offline   Reply With Quote

Old   November 27, 2018, 18:23
Default
  #88
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 viraj20feb View Post
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
__________________
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   December 11, 2018, 19:07
Default
  #89
Member
 
Viraj Belekar
Join Date: Jun 2016
Posts: 68
Rep Power: 10
viraj20feb is on a distinguished road
Quote:
Originally Posted by gschaider View Post
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?
viraj20feb is offline   Reply With Quote

Old   August 30, 2019, 12:07
Default Difficulties installing Swak4foam for openFoam2.1
  #90
New Member
 
Ankit Khot
Join Date: Aug 2019
Posts: 3
Rep Power: 7
AnkitRK is on a distinguished road
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

Last edited by AnkitRK; August 30, 2019 at 15:29.
AnkitRK is offline   Reply With Quote

Old   August 30, 2019, 19:37
Default
  #91
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 AnkitRK View Post
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)
__________________
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   August 31, 2019, 07:11
Default
  #92
New Member
 
Ankit Khot
Join Date: Aug 2019
Posts: 3
Rep Power: 7
AnkitRK is on a distinguished road
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.
AnkitRK is offline   Reply With Quote

Old   August 31, 2019, 17:48
Default
  #93
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 AnkitRK View Post
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)
__________________
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   September 17, 2019, 05:03
Default
  #94
Senior Member
 
TWB
Join Date: Mar 2009
Posts: 414
Rep Power: 19
quarkz is on a distinguished road
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!
quarkz is offline   Reply With Quote

Old   September 18, 2019, 04:34
Default
  #95
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
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 View Post
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!
__________________
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 9, 2020, 05:48
Default Problem installing swak4Foam with OF 2.1.1
  #96
New Member
 
Sagar
Join Date: Apr 2016
Posts: 23
Rep Power: 10
ksgr is on a distinguished road
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
Attached Files
File Type: gz log.make.tar.gz (1.6 KB, 3 views)

Last edited by ksgr; May 9, 2020 at 06:55. Reason: Added missing information on swak4Foam
ksgr is offline   Reply With Quote

Old   May 9, 2020, 08:38
Default
  #97
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 ksgr View Post
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
__________________
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 10, 2020, 07:45
Default
  #98
New Member
 
Sagar
Join Date: Apr 2016
Posts: 23
Rep Power: 10
ksgr is on a distinguished road
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
ksgr is offline   Reply With Quote

Old   August 2, 2020, 21:06
Default Installing swak4foam on cluster
  #99
Senior Member
 
Join Date: Jul 2019
Posts: 148
Rep Power: 7
Bodo1993 is on a distinguished road
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.
Bodo1993 is offline   Reply With Quote

Old   August 3, 2020, 07:07
Default
  #100
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 Bodo1993 View Post
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
__________________
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

Reply

Tags
swak4faom, swak4foam error

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] Installing swak4Foam 0.4.0 on ubuntu 14.04 JFM OpenFOAM Community Contributions 1 October 30, 2016 10:43
[swak4Foam] Installing swak4Foam on ubuntu 12.04 fluidflowsteel OpenFOAM Community Contributions 1 June 28, 2016 15:02
[swak4Foam] Installing swak4Foam with openFoam v3.0+ RebelLion OpenFOAM Community Contributions 0 March 11, 2016 20:10
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 14:00
[swak4Foam] Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Community Contributions 22 January 21, 2013 12:51


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