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

Compiling OpenFOAM 1.7.1 on Ubuntu 10.10

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 19, 2010, 09:39
Default Compiling OpenFOAM 1.7.1 on Ubuntu 10.10
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
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.
samiam1000 is offline   Reply With Quote

Old   October 19, 2010, 10:25
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,494
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is online now   Reply With Quote

Old   October 19, 2010, 11:29
Default
  #3
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 397
Rep Power: 12
marupio is on a distinguished road
I hope you're not facing the mysterious "missing cmake" problem that I went through. See:

cmake: No such file or directory

Something that the video driver update did fixed. Surely it's just an environment variable or something...
marupio is offline   Reply With Quote

Old   October 19, 2010, 18:11
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,494
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings David,
Quote:
Originally Posted by marupio View Post
I hope you're not facing the mysterious "missing cmake" problem that I went through. See:

cmake: No such file or directory

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
wyldckat is online now   Reply With Quote

Old   November 24, 2010, 09:00
Default Packs are now available for ubuntu 10.10
  #5
Member
 
OpenCFD
Join Date: Mar 2009
Posts: 42
Rep Power: 8
opencfd is on a distinguished road
Packs are now available for ubuntu 10.10:
http://www.openfoam.com/download/ubuntu.php
opencfd is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam 1.7.1 in Ubuntu 10.04 won't start working Leech OpenFOAM Installation 8 August 10, 2014 20:42
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
OpenFOAM on non-English Ubuntu distribution fabian_roesler OpenFOAM 3 January 11, 2010 08:16
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


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