CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Compiling OpenFOAM 1.7.1 on Ubuntu 10.10 (http://www.cfd-online.com/Forums/openfoam-installation/81193-compiling-openfoam-1-7-1-ubuntu-10-10-a.html)

samiam1000 October 19, 2010 10:39

Compiling OpenFOAM 1.7.1 on Ubuntu 10.10
 
Dear All,

I am trying to install OpenFOAM 1.7.1 on Ubuntu Maverick. Everything goes well, until I install Paraview.

Following this page, I get:
Code:

samiam@penrose:~/OpenFOAM/ThirdParty-1.7.1$ ./makeParaView
ParaView_SOURCE_DIR=/home/samiam/OpenFOAM/ThirdParty-1.7.1/paraview-3.8.0
ParaView_BINARY_DIR=/home/samiam/OpenFOAM/ThirdParty-1.7.1/platforms/build-linux64Gcc/paraview-3.8.0
ParaView_DIR=/home/samiam/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/paraview-3.8.0
date-stamp: 2010-03-26

Build stages selected
---------------------
    -config  true
    -make    true
    -install  true
---------------------
Features selected
    mesa      false
    mpi      false
    python    false
    qt        true
---------------------
Version information
    version  3.8.0
    major    3.8
---------------------
removing old build directory
    /home/samiam/OpenFOAM/ThirdParty-1.7.1/platforms/build-linux64Gcc/paraview-3.8.0
----
Configuring paraview-3.8.0 (major version: 3.8)
    MPI    support : false
    Python support : false
    MESA  support : false
    Qt dev support : true
    Source        : /home/samiam/OpenFOAM/ThirdParty-1.7.1/paraview-3.8.0
    Build          : /home/samiam/OpenFOAM/ThirdParty-1.7.1/platforms/build-linux64Gcc/paraview-3.8.0
    Target        : /home/samiam/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/paraview-3.8.0
----

cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/samiam/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/paraview-3.8.0 -DVTK_USE_TK:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=ON -DVTK_USE_RPATH:BOOL=OFF -DCMAKE_BUILD_TYPE:STRING=Release -DPARAVIEW_INSTALL_DEVELOPMENT:BOOL=ON -DPARAVIEW_GENERATE_PROXY_DOCUMENTATION:BOOL=ON -DPARAVIEW_GENERATE_PROXY_DOCUMENTATION=OFF -DPARAVIEW_BUILD_QT_GUI=ON /home/samiam/OpenFOAM/ThirdParty-1.7.1/paraview-3.8.0

----

./makeParaView: 295: cmake: not found
    Starting make
make: *** No targets specified and no makefile found.  Stop.
Command exited with non-zero status 2
0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 4400maxresident)k
0inputs+0outputs (0major+330minor)pagefaults 0swaps
    Done make
    Installing ParaView to /home/samiam/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/paraview-3.8.0
make: *** No rule to make target `install'.  Stop.
    ---
    Installation complete for paraview-3.8.0
    Set environment variables:

        export ParaView_DIR=/home/samiam/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/paraview-3.8.0
        export PATH=$ParaView_DIR/bin:$PATH
        export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-3.8
    ---

Done
samiam@penrose:~/OpenFOAM/ThirdParty-1.7.1$ ./makeParaView
ParaView_SOURCE_DIR=/home/samiam/OpenFOAM/ThirdParty-1.7.1/paraview-3.8.0
ParaView_BINARY_DIR=/home/samiam/OpenFOAM/ThirdParty-1.7.1/platforms/build-linux64Gcc/paraview-3.8.0
ParaView_DIR=/home/samiam/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/paraview-3.8.0
date-stamp: 2010-03-26

Build stages selected
---------------------
    -config  true
    -make    true
    -install  true
---------------------
Features selected
    mesa      false
    mpi      false
    python    false
    qt        true
---------------------
Version information
    version  3.8.0
    major    3.8
---------------------
removing old build directory
    /home/samiam/OpenFOAM/ThirdParty-1.7.1/platforms/build-linux64Gcc/paraview-3.8.0
----
Configuring paraview-3.8.0 (major version: 3.8)
    MPI    support : false
    Python support : false
    MESA  support : false
    Qt dev support : true
    Source        : /home/samiam/OpenFOAM/ThirdParty-1.7.1/paraview-3.8.0
    Build          : /home/samiam/OpenFOAM/ThirdParty-1.7.1/platforms/build-linux64Gcc/paraview-3.8.0
    Target        : /home/samiam/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/paraview-3.8.0
----

cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/samiam/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/paraview-3.8.0 -DVTK_USE_TK:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=ON -DVTK_USE_RPATH:BOOL=OFF -DCMAKE_BUILD_TYPE:STRING=Release -DPARAVIEW_INSTALL_DEVELOPMENT:BOOL=ON -DPARAVIEW_GENERATE_PROXY_DOCUMENTATION:BOOL=ON -DPARAVIEW_GENERATE_PROXY_DOCUMENTATION=OFF -DPARAVIEW_BUILD_QT_GUI=ON /home/samiam/OpenFOAM/ThirdParty-1.7.1/paraview-3.8.0

----

./makeParaView: 295: cmake: not found
    Starting make
make: *** No targets specified and no makefile found.  Stop.
Command exited with non-zero status 2
0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 4400maxresident)k
0inputs+0outputs (0major+329minor)pagefaults 0swaps
    Done make
    Installing ParaView to /home/samiam/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/paraview-3.8.0
make: *** No rule to make target `install'.  Stop.
    ---
    Installation complete for paraview-3.8.0
    Set environment variables:

        export ParaView_DIR=/home/samiam/OpenFOAM/ThirdParty-1.7.1/platforms/linux64Gcc/paraview-3.8.0
        export PATH=$ParaView_DIR/bin:$PATH
        export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-3.8
    ---

Done
samiam@penrose:~/OpenFOAM/ThirdParty-1.7.1$

Can you help to fix this??

Thanks a lot,

Samuele.

wyldckat October 19, 2010 11:25

Greetings Samuele,

CMake is missing in your Ubuntu box. You can install it by running:
Code:

sudo apt-get install cmake
But if you don't feel like spending time building a custom version of ParaView, you can:
  1. Install ParaView 3.8.1 built for Ubuntu 10.10, by running:
    Code:

    sudo apt-get install paraview
  2. Quote:

    Originally Posted by http://www.cfd-online.com/Forums/blogs/wyldckat/317-using-official-pre-built-paraview-3-8-0-version-openfoam.html
    Now open the file "$WM_PROJECT_DIR/bin/paraFoam" in your favorite simple text editor and replace every entry ".OpenFOAM" with ".foam". Now save and close the file.
    And voilá, you now should have a fully working paraFoam script at your disposal! Along with ParaView 3.8.0, with no further building required :)

    Well, in this case, ParaView 3.8.1 ;)
Best regards,
Bruno

marupio October 19, 2010 12:29

I hope you're not facing the mysterious "missing cmake" problem that I went through. See:

http://www.cfd-online.com/Forums/ope...directory.html

Something that the video driver update did fixed. Surely it's just an environment variable or something...

wyldckat October 19, 2010 19:11

Greetings David,
Quote:

Originally Posted by marupio (Post 279814)
I hope you're not facing the mysterious "missing cmake" problem that I went through. See:

http://www.cfd-online.com/Forums/ope...directory.html

Something that the video driver update did fixed. Surely it's just an environment variable or something...

You wouldn't by any chance still have that Linux box up and running, would you? Because that error of an application not starting and giving the error "file not found" or something like that, is sometimes related to an actually missing and unnamed library that the application depends on.
In your case, running the following command, on a working system and on a non working system, would help isolate the problem:
Code:

ldd cmake
I say unnamed, because ldd might not be able to say which library the application really depends on, in case it isn't already available in the system! Therefore isolation of the missing library can only occur by comparing the differences between in a working and in a non-working system.

Best regards,
Bruno

opencfd November 24, 2010 09:00

Packs are now available for ubuntu 10.10
 
Packs are now available for ubuntu 10.10:
http://www.openfoam.com/download/ubuntu.php


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