CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM Solaris (https://www.cfd-online.com/Forums/openfoam-installation/57202-openfoam-solaris.html)

mamaly60 October 11, 2007 18:54

Hello I want to install Ope
 
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

msrinath80 October 11, 2007 20:01

Please check the Wiki. There i
 
Please check the Wiki. There is information on how to port OpenFOAM to different *nix platforms. See --> http://openfoamwiki.net/index.php/Main_HowTos

olesen October 12, 2007 02:53

When you get it working, it'd
 
When you get it working, it'd be nice to know if Dtrace reveals anything interesting (or not).

jblucca October 14, 2007 18:36

Direct link here: http://op
 
Direct link here:

http://openfoamwiki.net/index.php/Ho...mpile_OpenFOAM

ngj March 5, 2009 10:25

Hi I will try to bring lif
 
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

olesen March 6, 2009 02:37

I'll assume that the shell isn
 
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?

ngj March 9, 2009 04:53

Hi Mark Thanks. I will dive
 
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

vikas bhaskar May 24, 2009 15:43

solaris
 
solaris daily use commands

chiven April 19, 2010 20:05

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

Canesin April 20, 2010 09:11

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

chiven April 20, 2010 09:22

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

chiven April 22, 2010 01:15

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
......


chiven April 22, 2010 22:25

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

chiven May 10, 2010 21:16

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



All times are GMT -4. The time now is 17:26.