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

[OpenFOAM.com] Trying to install OpenFOAM 1.6 in Solaris 10

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 12, 2010, 06:58
Default Trying to install OpenFOAM 1.6 in Solaris 10
  #1
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
Quote:
Originally Posted by Don456 View Post
Hi,

I also tried to compile OF 1.6 on Mac os. After some installing of needed stuff everything worked well until I got:

make: *** No rule to make target `//finiteVolume/snGradSchemes/quadraticFitSnGrad/quadraticFitSnGradData.dep', needed by `Make/darwinIntelDPOpt/dependencies'. Stop.

Has anyone an idea how I can solve that problem?

I tried to compile under 10.6 and as well under 10.5 (32 bit).

Greetings Felix
Hi, OF_friends,
I am trying to install OF-1.6 in Solaris 10, and meet the just same errors like:
HTML Code:
+ wmake libso finiteVolume
make: *** No rule to make target `//finiteVolume/snGradSchemes/quadraticFitSnGrad/quadraticFitSnGradData.dep', needed by `Make/SunOS64GccDPOpt/dependencies'.  Stop.
The compiler version is:
HTML Code:
shm% g++ -v
Using built-in specs.
Target: sparc-sun-solaris2.10
Configured with: ../configure --prefix=/home/g9/a094039/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/SunOS64 --with-local-prefix=/home/g9/a094039/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/SunOS64 --with-system-zlib --enable-languages=c,c++ --with-pkgversion=OpenFOAM --enable-__cxa_atexit --enable-libstdcxx-allocator=new --with-mpfr=/home/g9/a094039/OpenFOAM/ThirdParty-1.6/mpfr-2.4.1/platforms/SunOS64 --with-gmp=/home/g9/a094039/OpenFOAM/ThirdParty-1.6/gmp-4.2.4/platforms/SunOS64
Thread model: posix
gcc version 4.3.3 (OpenFOAM)
"wclean; rmdepall" are also used in the $FOAM_SRC/finiteVolume-directory, but the same error is met.

"echo $FOAM_SRC", the terminal prompts,
HTML Code:
/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src
Any suggestions? Thanks in advance.
Greetings,
chiven
chiven is offline   Reply With Quote

Old   May 12, 2010, 13:01
Default
  #2
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 chiven View Post
Hi, OF_friends,
I am trying to install OF-1.6 in Solaris 10, and meet the just same errors like:
HTML Code:
+ wmake libso finiteVolume
make: *** No rule to make target `//finiteVolume/snGradSchemes/quadraticFitSnGrad/quadraticFitSnGradData.dep', needed by `Make/SunOS64GccDPOpt/dependencies'.  Stop.
Any suggestions? Thanks in advance.
Greetings,
chiven
That's an oldie'but'goodie: in the Make/files-file of that library there are some lines commented out with //. Some preprocessors don't know how to handle that. Just delete these lines and it should work

Bernhard
gschaider is offline   Reply With Quote

Old   May 13, 2010, 03:04
Default
  #3
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
Hi, Bernhard, have a nice day. you are right, it is because the Make/files-file include some lines commented out with //, and it does work after delete those lines. Thanks a lot.

What a pity, I met another error when compiler into the directory of '/home_shm/g9/a094039/OpenFOAM/OpenFOAM-1.6/applications/solvers/combustion/PDRFoam'
HTML Code:
g++ -m64 -DSunOS64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40 -IXiModels/XiModel -IXiModels/XiEqModels/XiEqModel -IXiModels/XiGModels/XiGModel -IPDRModels/dragModels/PDRDragModel -IlaminarFlameSpeed/SCOPE -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/engine/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/sampling/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/thermophysicalModels/specie/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/thermophysicalModels/basic/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/thermophysicalModels/reactionThermo/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/turbulenceModels -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/turbulenceModels/compressible/RAS/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/thermophysicalModels/laminarFlameSpeed/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/finiteVolume/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/dynamicFvMesh/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/dynamicMesh/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -I/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/triSurface/lnInclude -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 Make/SunOS64GccDPOpt/XiModel.o Make/SunOS64GccDPOpt/newXiModel.o Make/SunOS64GccDPOpt/fixed.o Make/SunOS64GccDPOpt/algebraic.o Make/SunOS64GccDPOpt/transport.o Make/SunOS64GccDPOpt/XiEqModel.o Make/SunOS64GccDPOpt/newXiEqModel.o Make/SunOS64GccDPOpt/Gulder.o Make/SunOS64GccDPOpt/instabilityXiEq.o Make/SunOS64GccDPOpt/SCOPEBlendXiEq.o Make/SunOS64GccDPOpt/SCOPEXiEq.o Make/SunOS64GccDPOpt/XiGModel.o Make/SunOS64GccDPOpt/newXiGModel.o Make/SunOS64GccDPOpt/KTS.o Make/SunOS64GccDPOpt/instabilityG.o Make/SunOS64GccDPOpt/PDRkEpsilon.o Make/SunOS64GccDPOpt/PDRDragModel.o Make/SunOS64GccDPOpt/newPDRDragModel.o Make/SunOS64GccDPOpt/basic.o Make/SunOS64GccDPOpt/basicXiSubXiEq.o Make/SunOS64GccDPOpt/basicXiSubG.o Make/SunOS64GccDPOpt/SCOPELaminarFlameSpeed.o Make/SunOS64GccDPOpt/PDRFoam.o -L/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt \
             -lengine -lmeshTools -lcompressibleRASModels -lbasicThermophysicalModels -lreactionThermophysicalModels -lspecie -llaminarFlameSpeedModels -lfiniteVolume -ldynamicFvMesh -lOpenFOAM -liberty -lnsl -lsocket -L/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt/dummy -lPstream   -lm -o /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/applications/bin/SunOS64GccDPOpt/PDRFoam
Undefined                       first referenced
 symbol                             in file
Foam::compressible::turbulenceModel::typeName     Make/SunOS64GccDPOpt/PDRkEpsilon.o  (symbol belongs to implicit dependency /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt/libcompressibleTurbulenceModel.so)
ld: fatal: Symbol referencing errors. No output written to /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/applications/bin/SunOS64GccDPOpt/PDRFoam
collect2: ld returned 1 exit status
make: *** [/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/applications/bin/SunOS64GccDPOpt/PDRFoam] Error 1
Would you please further give me some comments on this problems?

with best regards,
Chiven
chiven is offline   Reply With Quote

Old   May 14, 2010, 06:11
Default
  #4
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 chiven View Post
Hi, Bernhard, have a nice day. you are right, it is because the Make/files-file include some lines commented out with //, and it does work after delete those lines. Thanks a lot.

What a pity, I met another error when compiler into the directory of '/home_shm/g9/a094039/OpenFOAM/OpenFOAM-1.6/applications/solvers/combustion/PDRFoam'
HTML Code:
g++ -m64 -DSunOS64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-

<snipped>

  -lm -o /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/applications/bin/SunOS64GccDPOpt/PDRFoam
Undefined                       first referenced
 symbol                             in file
Foam::compressible::turbulenceModel::typeName     Make/SunOS64GccDPOpt/PDRkEpsilon.o  (symbol belongs to implicit dependency /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt/libcompressibleTurbulenceModel.so)
ld: fatal: Symbol referencing errors. No output written to /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/applications/bin/SunOS64GccDPOpt/PDRFoam
collect2: ld returned 1 exit status
make: *** [/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/applications/bin/SunOS64GccDPOpt/PDRFoam] Error 1
Would you please further give me some comments on this problems?

with best regards,
Chiven
That is another classic: the loader for dynamic libs doesn't automatically load the general turbulence lib. Just go to the Make/options of the solver and add the line that is marked with + in the following example (without the + of cource)
Code:
 EXE_LIBS = \
     -lengine \
+    -lcompressibleTurbulenceModel \
     -lcompressibleRASModels \
     -lcompressibleLESModels \
Bernhard
gschaider is offline   Reply With Quote

Old   May 14, 2010, 09:32
Default
  #5
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
Hi, Bernhard, thanks a lot and have a nice weekend. I have compiled the OF successfully with Allwmake command.
However, when I try to run the cavity tutorial case of icoFoam, I meet an error like,
HTML Code:
ld.so.1: icoFoam: fatal: libfiniteVolume.so: open failed: No such file or directory
Killed
Then I went to the directory of /home_shm/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/finiteVolume, run 'wmake', and meet the error:
HTML Code:
Make/SunOS64GccDPOpt/timeActivatedExplicitSource.o Make/SunOS64GccDPOpt/timeActivatedExplicitCellSource.o Make/SunOS64GccDPOpt/timeActivatedExplicitMulticomponentPointSource.o Make/SunOS64GccDPOpt/pointSourceProperties.o Make/SunOS64GccDPOpt/pointSourcePropertiesIO.o -L/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt \
              -lOpenFOAM -liberty -lnsl -lsocket -L/home/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt/dummy -lPstream   -lm -o OpenFOAM.out
Undefined                       first referenced
 symbol                             in file
main                                /home_shm/g9/a094039/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/SunOS64/bin/../lib/gcc/sparc-sun-solaris2.10/4.3.3/sparcv9/crt1.o
Foam::patchWave::patchWave(Foam::polyMesh const&, Foam::HashSet<int, Foam::Hash<int> > const&, bool) Make/SunOS64GccDPOpt/wallDist.o
Foam::cellSet::cellSet(Foam::polyMesh const&, Foam::word const&, int, Foam::IOobject::writeOption) Make/SunOS64GccDPOpt/pressureGradientExplicitSource.o
Foam::coordinateSystem::coordinateSystem(Foam::word const&, Foam::Vector<double> const&, Foam::Vector<double> const&, Foam::Vector<double> const&) Make/SunOS64GccDPOpt/timeVaryingMappedFixedValueFvPatchFields.o
Foam::cellDistFuncs::getPointNeighbours(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, int, Foam::List<int>&) const Make/SunOS64GccDPOpt/nearWallDist.o
Foam::directMappedPolyPatch::typeName     Make/SunOS64GccDPOpt/directMappedVelocityFluxFixedValueFvPatchField.o
Foam::directMappedPatchBase::typeName     Make/SunOS64GccDPOpt/directMappedFixedValueFvPatchFields.o
Foam::topoSetSource::New(Foam::word const&, Foam::polyMesh const&, Foam::dictionary const&) Make/SunOS64GccDPOpt/pressureGradientExplicitSource.o
Foam::faceSet::faceSet(Foam::polyMesh const&, Foam::word const&, Foam::HashSet<int, Foam::Hash<int> > const&, Foam::IOobject::writeOption) Make/SunOS64GccDPOpt/MRFZone.o
Foam::coordinateSystem::~coordinateSystem() Make/SunOS64GccDPOpt/porousZone.o
Foam::cellDistFuncs::sumPatchSize(Foam::HashSet<int, Foam::Hash<int> > const&) const Make/SunOS64GccDPOpt/wallDistReflection.o
Foam::triSurface::write(Foam::fileName const&, bool) const Make/SunOS64GccDPOpt/timeVaryingMappedFixedValueFvPatchFields.o
Foam::cellSet::~cellSet()           Make/SunOS64GccDPOpt/pressureGradientExplicitSource.o
Foam::faceSet::~faceSet()           Make/SunOS64GccDPOpt/MRFZone.o
Foam::patchWave::~patchWave()       Make/SunOS64GccDPOpt/wallDist.o
Foam::cellDistFuncs::correctBoundaryPointCells(Foam::HashSet<int, Foam::Hash<int> > const&, Foam::Field<double>&, Foam::Map<int>&) const Make/SunOS64GccDPOpt/wallDistReflection.o
Foam::cellDistFuncs::maxPatchSize(Foam::HashSet<int, Foam::Hash<int> > const&) const Make/SunOS64GccDPOpt/nearWallDist.o
Foam::directMappedPatchBase::calcMapping() const Make/SunOS64GccDPOpt/directMappedFixedValueFvPatchFields.o
Foam::triSurfaceTools::delaunay2D(Foam::List<Foam::Vector2D<double> > const&) Make/SunOS64GccDPOpt/timeVaryingMappedFixedValueFvPatchFields.o
Foam::faceSet::faceSet(Foam::polyMesh const&, Foam::word const&, int, Foam::IOobject::writeOption) Make/SunOS64GccDPOpt/MRFZone.o
Foam::cellDistFuncs::smallestDist(Foam::Vector<double> const&, Foam::polyPatch const&, int, Foam::List<int> const&, int&) const Make/SunOS64GccDPOpt/nearWallDist.o
Foam::cellDistFuncs::cellDistFuncs(Foam::polyMesh const&) Make/SunOS64GccDPOpt/nearWallDist.o
Foam::cellDistFuncs::cellDistFuncs(Foam::polyMesh const&) Make/SunOS64GccDPOpt/wallDist.o
Foam::directMappedPatchBase::sampleMesh() const Make/SunOS64GccDPOpt/directMappedFixedValueFvPatchFields.o
Foam::wallPoint::greatPoint         Make/SunOS64GccDPOpt/wallDistReflection.o
Foam::coordinateSystem::writeDict(Foam::Ostream&, bool) const Make/SunOS64GccDPOpt/porousZone.o
typeinfo for Foam::directMappedPatchBase Make/SunOS64GccDPOpt/directMappedFixedValueFvPatchFields.o
Foam::triSurfaceTools::calcInterpolationWeights(Foam::triSurface const&, Foam::Field<Foam::Vector<double> > const&, Foam::List<Foam::FixedList<int, 3u> >&, Foam::List<Foam::FixedList<double, 3u> >&) Make/SunOS64GccDPOpt/timeVaryingMappedFixedValueFvPatchFields.o
Foam::cellDistFuncs::getPatchIDs(Foam::word const&) const Make/SunOS64GccDPOpt/nearWallDist.o
Foam::operator>>(Foam::Istream&, Foam::wallPoint&) Make/SunOS64GccDPOpt/wallDistReflection.o
Foam::cellDistFuncs::correctBoundaryFaceCells(Foam::HashSet<int, Foam::Hash<int> > const&, Foam::Field<double>&, Foam::Map<int>&) const Make/SunOS64GccDPOpt/wallDistReflection.o
Foam::triSurface::~triSurface()     Make/SunOS64GccDPOpt/timeVaryingMappedFixedValueFvPatchFields.o
typeinfo for Foam::directMappedPolyPatch Make/SunOS64GccDPOpt/directMappedVelocityFluxFixedValueFvPatchField.o
Foam::operator<<(Foam::Ostream&, Foam::wallPoint const&) Make/SunOS64GccDPOpt/wallDistReflection.o
Foam::coordinateSystem::coordinateSystem(Foam::dictionary const&, Foam::objectRegistry const&) Make/SunOS64GccDPOpt/porousZone.o
ld: fatal: Symbol referencing errors. No output written to OpenFOAM.out
collect2: ld returned 1 exit status
make: *** [OpenFOAM.out] Error 1
 
I am sorry to bother you again and thank you very much again.
Chiven
chiven is offline   Reply With Quote

Old   May 15, 2010, 03:19
Default
  #6
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
I use find-command to check that the libfiniteVolume.so-file is including in /home_shm/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt/ and the ld.so.1-file is including in /usr/lib/sparcv9/.
I am wondering why it is 'No such file or directory'.
Chiven
chiven is offline   Reply With Quote

Old   May 15, 2010, 11:57
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Chiven,

Congratulations on getting OpenFOAM built in Solaris I personally have no experience with Solaris, but I do have some experience in building OpenFOAM in Linux.

Now, as for the problems you're having:
Quote:
Originally Posted by chiven View Post
Then I went to the directory of /home_shm/g9/a094039/OpenFOAM/OpenFOAM-1.6/src/finiteVolume, run 'wmake', and meet the error:
Running only wmake is for applications only. For building libraries, you must run:
Code:
wmake libso
But since you have managed to get all of OpenFOAM built, then the problem should be elsewhere, so it shouldn't be necessary to rebuild libfiniteVolume.so.

So, lets check the following possibilities:
  1. Make sure you have the OpenFOAM environment active. For that, you can run any of the following commands:
    • To check if the wmake variable that has the full path to your OpenFOAM folder:
      Code:
      echo $WM_PROJECT_DIR
      It should show you this:
      Code:
      /home_shm/g9/a094039/OpenFOAM/OpenFOAM-1.6
    • To check if the libraries are in the usual search path:
      Code:
      echo $LD_LIBRARY_PATH
      Somewhere in the middle of the text it outputs, it should have this:
      Code:
      /home_shm/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt
      If it does, then check points 2 and 3 below.
    • Run:
      Code:
      env | sort
      or
      Code:
      export
      Either one of these should show you the list of variables active in the shell/terminal environment. You should be able so see a lot of references to OpenFOAM folders.
  2. Check if the library files have the proper prefix and extension. For that, run:
    Code:
    ls -l $FOAM_LIBBIN/lib*.so
    If no files are listed, then run:
    Code:
    ls -l $FOAM_LIBBIN/
    And check what prefixes and extensions do the files have. Standard is to have "lib" as prefix and ".so" as extension.
    Er, then again, you probably already checked this:
    Quote:
    Originally Posted by chiven View Post
    I use find-command to check that the libfiniteVolume.so-file is including in /home_shm/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt/
  3. Now, if the proper prefix and extensions exist, then the problem lies in the security system that Solaris could have in effect, which neutralizes the environment variable LD_LIBRARY_PATH. If this is the case, then you should check with the system's administrator of the machine you're using, as to which variables should you be using in Solaris as substitute for LD_LIBRARY_PATH.
As for point 3, I've searched a little bit, and found this: Where to set LD_LIBRARY_PATH on solaris?
I've got a hunch that the Solaris system you are using doesn't use LD_LIBRARY_PATH, but instead uses LD_LIBRARY_PATH_64. If this is the case, try this before running blockMesh or icoFoam:
Code:
export LD_LIBRARY_PATH_64=LD_LIBRARY_PATH
If icoFoam works with this, then edit the file $WM_PROJECT_DIR/etc/settings.sh, and change where it has LD_LIBRARY_PATH to LD_LIBRARY_PATH_64.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 15, 2010, 22:44
Default
  #8
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
Hi, Bruno, have a nice day and thanks for the comments.

You are right, it is because Solaris uses LD_LIBRARY_PATH_64, so it works after run
HTML Code:
setenv LD_LIBRARY_PATH_64 "$LD_LIBRARY_PATH":"$LD_LIBRARY_PATH_64"
However, a new error is met:
HTML Code:
shm% icoFoam
ld.so.1: icoFoam: fatal: /home/g9/a094039/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/SunOS64/lib/libstdc++.so.6: wrong ELF class: ELFCLASS32
Fortunately, it is solved by adding a new LD through
HTML Code:
setenv LD_LIBRARY_PATH_64 "/usr/sfw/lib/sparcv9":"$LD_LIBRARY_PATH_64"
But, at this time, another error is encountered:
HTML Code:
shm% icoFoam
ld.so.1: icoFoam: fatal: relocation error: file /home/g9/a094039/OpenFOAM/OpenFOAM-1.6/lib/SunOS64GccDPOpt/libOpenFOAM.so: symbol _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l: referenced symbol not found
Killed
I searched in google, the same error was also met by other people shown in follows, and I cannot find the solution way.
HTML Code:
> ld.so.1: mongod: fatal: relocation error: file /opt/mongodb-sunos5-
> x86_64-1.2.4/bin/mongod: symbol
> _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l:
> referenced symbol not found
It is a very hard time to use OF in Solaris system.
Best regards,
Chiven
chiven is offline   Reply With Quote

Old   May 18, 2010, 06:59
Default
  #9
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
Hi, I found '_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13b asic_ostreamIT_T0_ES6_PKS3_l' is defined in libstdc++.so in the directory of '/home_shm/g9/a094039/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/SunOS64/lib/sparcv9'.
HTML Code:
shm% nm -A *.* | grep _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
nm: libgomp.la: invalid file type
nm: libgomp.spec: invalid file type
nm: libssp.la: invalid file type
nm: libssp_nonshared.la: invalid file type
libstdc++.a[complex_io.o]: [112]        |             0|           0|NOTY |GLOB |0    |UNDEF  |_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
libstdc++.a[misc-inst.o]: [134] |             0|           0|NOTY |GLOB |0    |UNDEF  |_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
libstdc++.a[ostream-inst.o]: [300]      |             0|         836|FUNC |WEAK |0    |73     |_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
nm: libstdc++.la: invalid file type
libstdc++.so: [7920]    |        794200|         836|FUNC |WEAK |0    |1816   |_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
libstdc++.so.6: [7920]  |        794200|         836|FUNC |WEAK |0    |1816   |_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
libstdc++.so.6.0.10: [7920]     |        794200|         836|FUNC |WEAK |0    |1816   |_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l
nm: libsupc++.la: invalid file type
Now the point is how to let it known. Thanks a lot in advance.
with best regards,
Chiven
chiven is offline   Reply With Quote

Old   May 18, 2010, 07:41
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Chiven,

The only hypothesis that comes to mind is to swap the path to the system's sparcv9 libraries. In other words, run this after starting a new terminal with the OpenFOAM environment set:
Code:
setenv LD_LIBRARY_PATH_64 "$LD_LIBRARY_PATH":"/usr/sfw/lib/sparcv9":"$LD_LIBRARY_PATH_64"
Without knowing more about Solaris, this is only how far I can go

Good luck, best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 20, 2010, 01:16
Default
  #11
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Chiven,

The only hypothesis that comes to mind is to swap the path to the system's sparcv9 libraries. In other words, run this after starting a new terminal with the OpenFOAM environment set:
Code:
setenv LD_LIBRARY_PATH_64 "$LD_LIBRARY_PATH":"/usr/sfw/lib/sparcv9":"$LD_LIBRARY_PATH_64"
Without knowing more about Solaris, this is only how far I can go

Good luck, best regards,
Bruno

Hi, Bruno, thank you.
It works after running
HTML Code:
setenv LD_LIBRARY_PATH_64 "$WM_THIRD_PARTY_DIR/gcc-4.3.3/platforms/SunOS64/lib/sparcv9":"/usr/sfw/lib/sparcv9":"$LD_LIBRARY_PATH_64"
Till now, I have installed OpenFOAM in Solaris with old FJMPI, RedHat with new FJMPI, Altix of IA64 with OpenMPI and Suse10.3 successfully.
Many difficults are met, and solved with so many OF friends' helps. Thanks a lot.
If anyone meets questions when using these platform, please feel free to discuss with me.
Enjoy,
Chiven
chiven is offline   Reply With Quote

Old   December 3, 2015, 00:09
Default OpenFOAM 1.6.x in Solaris 10
  #12
New Member
 
ramakrishna
Join Date: Dec 2015
Posts: 5
Rep Power: 10
ramki37 is on a distinguished road
Hi chiven

I read your posts on OpenFoam in Solaris 10.

I would like to install OpenFoam1.6 in Solaris 10 (SunOS) and gcc compiler version is 3.4.3

I have downloaded ThridPrty-1.6 general in home directory($HOME/OpenFOAM) and renamed the unpacked directory ThirdParty-1.6.x .

I don't know how to proceed next. Please help me.

Thanks& Regards
ramki.

Last edited by ramki37; December 3, 2015 at 05:58.
ramki37 is offline   Reply With Quote

Old   December 24, 2015, 08:39
Default Allwmake error
  #13
New Member
 
ramakrishna
Join Date: Dec 2015
Posts: 5
Rep Power: 10
ramki37 is on a distinguished road
Hi everyone,,,

I met an error, while running thirdparty-1.6 source pack file in solaris 10.

Please help me...



-------------------
bash-3.2$ ./Allwmake
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n '' ']'
++ cd malloc
++ ./Allwmake
+ wmake libso hoard
./Allwmake: wmake: not found
+ wmake libo fbsdmalloc
./Allwmake: wmake: not found
++ case "$WM_MPLIB" in
++ cd scotch_5.1
++ wmake libso src/libscotch
./Allwmake: line 167: wmake: command not found
++ cd metis-5.0pre2
++ wmake libso GKlib
./Allwmake: line 170: wmake: command not found
++ '[' '' = MPI -o -d ']'
./Allwmake: line 173: [: argument expected
++ wmake libso ParMGridGen-1.0/MGridGen/IMlib
./Allwmake: line 180: wmake: command not found
++ wmake libso ParMGridGen-1.0/MGridGen/Lib
./Allwmake: line 181: wmake: command not found
----------------------------------------


Thanks.
ramki37 is offline   Reply With Quote

Old   December 24, 2015, 15:40
Default
  #14
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Ramki,

Try following the instructions given here: http://openfoamwiki.net/index.php/In...OAM-1.6/Ubuntu - but keep in mind that since you're not using Ubuntu, you will have to adjust or even skip some of the instructions given there.

Either way, the essential step you're missing is this one:
Code:
source $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc
Best regards,
Bruno
__________________
wyldckat 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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 08:51
[OpenFOAM.org] Install OpenFOAM without admin right OpenFoamlove OpenFOAM Installation 1 December 31, 2017 11:45
Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 7 January 19, 2010 15:39
OpenFOAM Version 1.6 Released opencfd OpenFOAM Announcements from ESI-OpenCFD 0 July 27, 2009 17:55


All times are GMT -4. The time now is 08:32.