|
[Sponsors] |
October 11, 2007, 19:54 |
Hello
I want to install Ope
|
#1 |
New Member
mou
Join Date: Mar 2009
Posts: 20
Rep Power: 17 |
Hello
I want to install OpenFoam in Solaris. I did that successfully in Linux but about Solaris I faced some problems. Would you please help me if there is any extra things that I need to do more than for Linux? Thank you very much mou |
|
October 11, 2007, 21:01 |
Please check the Wiki. There i
|
#2 |
Senior Member
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21 |
Please check the Wiki. There is information on how to port OpenFOAM to different *nix platforms. See --> http://openfoamwiki.net/index.php/Main_HowTos
|
|
October 12, 2007, 03:53 |
When you get it working, it'd
|
#3 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
When you get it working, it'd be nice to know if Dtrace reveals anything interesting (or not).
|
|
October 14, 2007, 19:36 |
Direct link here:
http://op
|
#4 |
New Member
Jonatas
Join Date: Mar 2009
Posts: 4
Rep Power: 17 |
||
March 5, 2009, 11:25 |
Hi
I will try to bring lif
|
#5 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi
I will try to bring life back into this thread. I am currently trying to install OF-1.5 on a Sun SPARC cluster with the gcc-compiler optimized for SPARC. The version is gcc-4.2.0, thus it should be sufficient according to the documentation. I have read a bit on the forum and tried to compile it, but I run into problems, which I cannot see a solution for. While compiling the ThirdParty software, I get the following error: /xbar/nas2/home4/s00/ngja/OpenFOAM/OpenFOAM-1.5/wmake/wmake: bad substitution I have traced it to the fact that the shell-script is bugged, and even though I change #!/bin/sh to #!/bin/bash as described elsewhere on the forum, I do not gain anything. I anyone has been succesfull, I would indeed appreciate any help. Best regards, Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
March 6, 2009, 03:37 |
I'll assume that the shell isn
|
#6 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
I'll assume that the shell isn't the problem (you could also try with /usr/xpg4/bin/sh, or wherever the POSIX shell lives - pdksh isn't bad either), but you need better debugging information that simply "bad substitution".
Try "set -x" either at the command-line, or very near the top of the wmake script. This will echo the shell commands to the screen before executing them and should help pinpoint where the problem lies. Incompatibilities in 'find' or 'sed' might be the root cause. Or maybe even the bash is too ancient to recognize the POSIX ${0##*/} substitution near the top? |
|
March 9, 2009, 05:53 |
Hi Mark
Thanks. I will dive
|
#7 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Mark
Thanks. I will dive into investigating it. If I come up with a solution I will write it up either here or on the wiki. By the way, I have been looking at the makefile for wmake, and here the SHELL option is set to /bin/sh. I will try to see what happens if I change it to something else, e.g. /bin/bash or any of Mark's suggestions. Best regards, Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
May 24, 2009, 16:43 |
solaris
|
#8 |
New Member
vikas
Join Date: May 2009
Posts: 1
Rep Power: 0 |
solaris daily use commands
|
|
April 19, 2010, 21:05 |
|
#9 |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
Hi, dear all OF_friends, have a nice day.
I am trying to install OF-1.6 on Solaris 10, the system is "SunOS shm 5.10 Generic_141444-09 sun4u sparc SUNW,SPARC-Enterprise". Unfortunately, When I try to run 'foamSystemCheck', error is met shown as follows. ./foamSystemCheck: syntax error at line 56: `NOCHAR=$' unexpected I search the problem in CFD-online, and find that few people are using Solaris system. Would you please give me some advices to solve this problem? Thank you in advance. With best regards, Chiven |
|
April 20, 2010, 10:11 |
|
#10 |
Member
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16 |
You can try to build it using the StormOS and mine and Bruno script for automatic compiling in Ubuntu, than you transfer the compiled files to the install path and resource the bash...
If have any sucess let me know. StormOS - http://stormos.org/ Script - http://code.google.com/p/openfoam-ubuntu |
|
April 20, 2010, 10:22 |
|
#11 |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
Hi, Canesin, thank you for the suggestions.
Unfortunately, I am using the /bin/sh to /bin/bash way. I shall also study what you suggest, and post the progress. Have a nice day. with best regards, Chiven |
|
April 22, 2010, 02:15 |
|
#12 |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
Hi, Canesin, I run Allwmake in the directory of OpenFOAM/OpenFOAM-1.6 and meet the errors attached.
Simply speak, it prompts that 'FlexLexer.h: No such file or directory', but I find that it does exist in /usr/sfw/include/ Any comments? Thank you. Chiven HTML Code:
+ wmake libso triSurface SOURCE=triSurface/interfaces/STL/readSTLASCII.L ; flex -+ -f $SOURCE ; mv lex.yy.cc Make/SunOS64GccDPOpt/readSTLASCII.C ; g++ -m64 -DSunOS64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/g9/a094039/OpenFOAM/ThirdParty-1.6/zlib-1.2.3 -IlnInclude -I. -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c Make/SunOS64GccDPOpt/readSTLASCII.C -o Make/SunOS64GccDPOpt/readSTLASCII.o Make/SunOS64GccDPOpt/readSTLASCII.C:234:23: error: FlexLexer.h: No such file or directory Make/SunOS64GccDPOpt/readSTLASCII.C:5079: error: 'yy_state_type' does not name a type triSurface/interfaces/STL/readSTLASCII.L:44: error: 'yyFlexLexer' has not been declared triSurface/interfaces/STL/readSTLASCII.L:71: error: expected class-name before '{' token triSurface/interfaces/STL/readSTLASCII.L: In constructor 'STLLexer::STLLexer(std::istream*, Foam::label)': triSurface/interfaces/STL/readSTLASCII.L:131: error: class 'STLLexer' does not have any field named 'yyFlexLexer' lex.yy.cc: In member function 'int STLLexer::lex()': lex.yy.cc:5410: error: 'yy_state_type' does not name a type ...... |
|
April 22, 2010, 23:25 |
|
#13 |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
Hi, good morning everybody,
I copy /usr/sfw/include/FlexLexer.h to $FOAM_SRC/OpenFOAM/lnInclude, and recompile it, get the error like 'FlexLexer.h:47:22: error: iostream.h: No such file or directory'. Thus I further copy /usr/sfw/include/c++/3.4.3/backward/iostream.h to $FOAM_SRC/OpenFOAM/lnInclude, and recompile it and meet another error 'lex.yy.cc:5743: error: cannot convert 'std::istream*' to 'istream*' in assignment'. I think it is because the compiling gcc4.3.3 is not compatible with the iostream.h of c++/3.4.3. But I can NOT get the iostream.h file in 'include/c++/4.3.3/backward/'. I am wondering how to set the options when installing GCC4.3.3 to get it. Any comments are appreciated. with best regards, Chiven |
|
May 10, 2010, 22:16 |
|
#14 |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
Hello, dear OF_friends, the details of the errors are attached. Any clue what's going on and the possible remedy?
HTML Code:
+ wmake libso triSurface SOURCE=triSurface/interfaces/STL/readSTLASCII.L ; flex -+ -f $SOURCE ; mv lex.yy.cc Make/SunOS64GccDPOpt/readSTLASCII.C ; g++ -m64 -DSunOS64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/g9/a094039/OpenFOAM/ThirdParty-1.6/zlib-1.2.3 -IlnInclude -I. -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c Make/SunOS64GccDPOpt/readSTLASCII.C -o Make/SunOS64GccDPOpt/readSTLASCII.o In file included from /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/iostream.h:31, from /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/FlexLexer.h:47, from Make/SunOS64GccDPOpt/readSTLASCII.C:234: /home_shm/g9/a094039/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/SunOS64/bin/../lib/gcc/sparc-sun-solaris2.10/4.3.3/../../../../include/c++/4.3.3/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. lex.yy.cc: In member function 'int STLLexer::lex()': lex.yy.cc:5495: warning: use of old-style cast lex.yy.cc:5495: warning: use of old-style cast lex.yy.cc:5511: warning: use of old-style cast lex.yy.cc:5725: warning: use of old-style cast lex.yy.cc:5743: error: cannot convert 'std::istream*' to 'istream*' in assignment triSurface/interfaces/STL/readSTLASCII.L:212: warning: unused variable 'endPtr' lex.yy.cc: In member function 'int yyFlexLexer::yy_get_next_buffer()': lex.yy.cc:5974: warning: use of old-style cast lex.yy.cc:6001: warning: use of old-style cast lex.yy.cc:6014: warning: use of old-style cast lex.yy.cc:6015: warning: use of old-style cast lex.yy.cc:6036: warning: use of old-style cast lex.yy.cc: In member function 'yy_state_type yyFlexLexer::yy_get_previous_state()': lex.yy.cc:6084: warning: use of old-style cast lex.yy.cc:6084: warning: use of old-style cast lex.yy.cc: In member function 'void yyFlexLexer::yyunput(int, char*)': lex.yy.cc:6145: warning: use of old-style cast lex.yy.cc:6146: warning: use of old-style cast lex.yy.cc:6154: warning: use of old-style cast lex.yy.cc: In member function 'int yyFlexLexer::yyinput()': lex.yy.cc:6223: warning: use of old-style cast lex.yy.cc: In member function 'void yyFlexLexer::yy_load_buffer_state()': lex.yy.cc:6271: error: cannot convert 'istream*' to 'std::istream*' in assignment lex.yy.cc: In member function 'virtual yy_buffer_state* yyFlexLexer::yy_create_buffer(std::istream*, int)': lex.yy.cc:6280: warning: use of old-style cast lex.yy.cc:6289: warning: use of old-style cast lex.yy.cc: In member function 'virtual void yyFlexLexer::yy_delete_buffer(yy_buffer_state*)': lex.yy.cc:6307: warning: use of old-style cast lex.yy.cc:6310: warning: use of old-style cast lex.yy.cc:6312: warning: use of old-style cast lex.yy.cc: In member function 'void yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)': lex.yy.cc:6322: error: cannot convert 'std::istream*' to 'istream*' in assignment lex.yy.cc: In member function 'void yyFlexLexer::yy_push_state(int)': lex.yy.cc:6376: warning: use of old-style cast lex.yy.cc:6380: warning: use of old-style cast lex.yy.cc:6380: warning: use of old-style cast lex.yy.cc: In function 'void* yy_flex_alloc(yy_size_t)': lex.yy.cc:6482: warning: use of old-style cast lex.yy.cc: In function 'void* yy_flex_realloc(void*, yy_size_t)': lex.yy.cc:6500: warning: use of old-style cast lex.yy.cc:6500: warning: use of old-style cast lex.yy.cc: At global scope: lex.yy.cc:5314: warning: 'yy_start_stack_ptr' defined but not used lex.yy.cc:5315: warning: 'yy_start_stack_depth' defined but not used lex.yy.cc:5316: warning: 'yy_start_stack' defined but not used lex.yy.cc:5318: warning: 'void yy_push_state(int)' declared 'static' but never defined lex.yy.cc:5321: warning: 'void yy_pop_state()' declared 'static' but never defined lex.yy.cc:5324: warning: 'int yy_top_state()' declared 'static' but never defined make: *** [Make/SunOS64GccDPOpt/readSTLASCII.o] Error 1 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM Solaris | mou | Main CFD Forum | 0 | October 11, 2007 19:48 |
CFX 4.4 on Solaris 9 | Prash | CFX | 0 | February 21, 2005 11:41 |
64-bit Solaris | Steve | Siemens | 4 | April 30, 2004 05:18 |
64-bit Solaris | Steve | FLUENT | 0 | April 28, 2004 05:18 |
CFX & CAD2mesh on Solaris 64-bit | Danie | CFX | 1 | January 22, 2004 17:48 |