CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   install openfoam 1.6 on opensuse 11.0 (http://www.cfd-online.com/Forums/openfoam-installation/67570-install-openfoam-1-6-opensuse-11-0-a.html)

andresbh August 19, 2009 10:36

install openfoam 1.6 on opensuse 11.0
 
Hi,

I've been trying to install openfoam 1.6 to opensuse 11.0 64bit. currently I am running openfoam 1.5.x but I would like to take a look at the new solvers for multiphase flows. for this reason I followed the installation procedure on http://albertopassalacqua.com/?p=387


  • in directory ~/OpenFOAM run: git://repo.or.cz/OpenFOAM-1.6.x.git
  • Download the thirdparty for 64bit and copied cmake from the 32-bit version into the thirdparty directory.
  • Create a symbolic link to ThirdParty-1.6.x from ThirdParty-1.6
  • Added the lines to ~/.bashrc
  • rebuild paraview
    • rm -rf paraview-3.6.1/platforms
    • ./makeParaView
  • Rebuild OpenFOAM with ./Allwmake
rebuilding paraview I get the following
Code:


./makeParaView

ParaView_DIR=$HOME/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc
removing old build/install directory
----
Configuring paraview-3.6.1 (major version: 3.6)
    MPI    support : false
    Python support : false
    MESA  support : false
    Qt dev support : true
    Source        : $HOME/OpenFOAM/ThirdParty-1.6/paraview-3.6.1
    Target        : $HOME/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc
----

cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc -DVTK_USE_TK=FALSE -DBUILD_SHARED_LIBS:BOOL=ON -DVTK_USE_RPATH:BOOL=OFF -DCMAKE_BUILD_TYPE:STRING=Release -DPARAVIEW_INSTALL_DEVELOPMENT:BOOL=ON -DPARAVIEW_BUILD_QT_GUI=ON ../..

----

tools/makeParaViewFunctions: line 290: cmake: command not found
    Starting make
make: *** No targets specified and no makefile found.  Stop.

real    0m0.004s
user    0m0.004s
sys    0m0.000s
    Done make
    For quicker development, linking lib/paraview-3.6/ -> bin/
    Creating html documentation
make: *** No rule to make target `HTMLDocumentation'.  Stop.
    Installing ParaView to $HOME/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc
disabled 'make install' for now, just use links
    ---
    Installation complete
    Set environment variables:

        export ParaView_INST_DIR=$HOME/OpenFOAM/ThirdParty-1.6/paraview-3.6.1
        export ParaView_DIR=$HOME/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc
        export PV_PLUGIN_PATH=$HOME/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt
        export PATH=$ParaView_DIR/bin:$PATH
    ---
-- Replacing path hard links for $ParaView_DIR
  *.cmake:
-- Replacing path hard links for $ParaView_INST_DIR
  *.cmake:
-- Replacing path hard links for $WM_COMPILER_DIR
  *cmake*:
done

does anybody have a hint how to tackle this error? there is something wring with the cmake but my knowledge in linux is very very scarce.

after some compilation time for openfoam with ./Allwmake

the following error pops up

Code:



g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -I$HOME/OpenFOAM/OpenFOAM-1.6.x/src/thermophysicalModels/specie/lnInclude -IlnInclude -I. -I$HOME/OpenFOAM/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I$HOME/OpenFOAM/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude  -fPIC Make/linux64GccDPOpt/mixtureAdiabaticFlameT.o -L$HOME/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt \
            -lspecie -lOpenFOAM -liberty -ldl  -lm -o $HOME/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linux64GccDPOpt/mixtureAdiabaticFlameT
make[2]: Leaving directory `$HOME/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical/mixtureAdiabaticFlameT'
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `$HOME/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical'
make: *** [thermophysical] Error 2
make: Target `application' not remade because of errors.

thank you for your help

cheers
Andres

cnlimin August 22, 2009 04:40

it's same to me
 
Yes, I followed this method and the same errors happened. I guess this method to install v1.6.x is not correct.

My OS is ubuntu 9.04.

openfoam_user September 9, 2009 03:08

Hi OF users,

I have exactly the same problem when rebuilding paraview.
Has somebody solved this problem ?
Thanks for your help !

Regards,

Stephane Sanchi
OpenFOAM-1.6.x
Linux Suse 11.1

procuste September 9, 2009 07:37

lack the etc directory
 
I downloaded:
OpenFOAM-1.6.linux64GccDPOpt.gtgz
ThirdParty-1.6.General.gtgz
and unpacked
and was trying to follow the readme instruction but:
"The environment variable settings are contained in files in an etc/ directory in the OpenFOAM release. e.g. in $HOME/OpenFOAM/OpenFOAM-1.6/etc/"
there isn't any etc directory there and when I give:
pla@dellino:~> source $HOME/.bashrc
bash: /home/pla/OpenFOAM/OpenFOAM-1.6/etc/bashrc: No such file or directory
this is the result.
Any suggestion??
Thank you

bigphil September 29, 2009 12:26

is cmake installed?
 
Hi,

I am no expert, but I have compiled a few different versions of OF on my OpenSUSE 11.0 with relative success, I find much of the original errors come from not having the right programs installed.
In the first post the error reads:
Quote:

tools/makeParaViewFunctions: line 290: cmake: command not found
This looks like 'cmake' is not installed (or not properly).

You can check if it is installed with "which cmake", or just 'cmake' and see if anything happens.

Hopefully that helps a bit.
Philip

procuste September 29, 2009 13:55

dellino:/home/pla # which cmake
/usr/bin/cmake
dellino:/home/pla #

bigphil September 29, 2009 14:36

Hi Procuste,

Sorry my post was in reply to the original Andres post.

But in regards to your problem, if I were you I would try to download OpenFOAM again because I am fairly sure there is meant to be a bashrc file in the etc directory.

Philip

akidess September 29, 2009 16:35

Procruste, before you download OpenFOAM again, make sure you got your paths right. Did you create a directory OpenFOAM and extract the archives there?

If you are not sure about your paths, post the output of the following commands here.
ls $HOME/OpenFOAM
and
ls $HOME/OpenFOAM/OpenFOAM-1.6

alberto September 30, 2009 00:48

Quote:

Originally Posted by cnlimin (Post 227141)
Yes, I followed this method and the same errors happened. I guess this method to install v1.6.x is not correct.

My OS is ubuntu 9.04.

Hehe, the method is correct, since I have been using it for a while. The problem is that cmake is missing there, as you can easily read in the error message.

You must download the ThirdParty package for the 32 bit version, extract the cmake directory contained in it, and copy it to your ThirdParty-1.6 directory.

Then you create a symbolic link with

ln -s ~/OpenFOAM/ThirdParty-1.6/ ~/OpenFOAM/ThirdParty-1.6.x

I corrected it on the blog, since I assumed before that you were in OpenFOAM. Sorry about that, but it was quite obvious and nobody reported the problem to me, which might have fixed your issue too in a few seconds, since I usually reply as soon as possible! :mad:


All times are GMT -4. The time now is 22:06.