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

OpenFOAM Solaris

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2007, 19:54
Default Hello I want to install Ope
  #1
New Member
 
mou
Join Date: Mar 2009
Posts: 20
Rep Power: 17
mamaly60 is on a distinguished road
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
mamaly60 is offline   Reply With Quote

Old   October 11, 2007, 21:01
Default 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
msrinath80 is on a distinguished road
Please check the Wiki. There is information on how to port OpenFOAM to different *nix platforms. See --> http://openfoamwiki.net/index.php/Main_HowTos
msrinath80 is offline   Reply With Quote

Old   October 12, 2007, 03:53
Default When you get it working, it'd
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
When you get it working, it'd be nice to know if Dtrace reveals anything interesting (or not).
olesen is offline   Reply With Quote

Old   October 14, 2007, 19:36
Default Direct link here: http://op
  #4
New Member
 
Jonatas
Join Date: Mar 2009
Posts: 4
Rep Power: 17
jblucca is on a distinguished road
Direct link here:

http://openfoamwiki.net/index.php/Ho...mpile_OpenFOAM
jblucca is offline   Reply With Quote

Old   March 5, 2009, 11:25
Default Hi I will try to bring lif
  #5
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
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.
ngj is offline   Reply With Quote

Old   March 6, 2009, 03:37
Default I'll assume that the shell isn
  #6
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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?
olesen is offline   Reply With Quote

Old   March 9, 2009, 05:53
Default Hi Mark Thanks. I will dive
  #7
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
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.
ngj is offline   Reply With Quote

Old   May 24, 2009, 16:43
Question solaris
  #8
New Member
 
vikas
Join Date: May 2009
Posts: 1
Rep Power: 0
vikas bhaskar is on a distinguished road
solaris daily use commands
vikas bhaskar is offline   Reply With Quote

Old   April 19, 2010, 21:05
Default
  #9
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
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
chiven is offline   Reply With Quote

Old   April 20, 2010, 10:11
Default
  #10
Member
 
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16
Canesin is on a distinguished road
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
Canesin is offline   Reply With Quote

Old   April 20, 2010, 10:22
Default
  #11
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
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 is offline   Reply With Quote

Old   April 22, 2010, 02:15
Default
  #12
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
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 is offline   Reply With Quote

Old   April 22, 2010, 23:25
Default
  #13
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
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 is offline   Reply With Quote

Old   May 10, 2010, 22:16
Default
  #14
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
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
chiven is offline   Reply With Quote

Reply


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


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