CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installing OpenFOAM 1.6-ext on Ubuntu 11.10 (http://www.cfd-online.com/Forums/openfoam-installation/117249-installing-openfoam-1-6-ext-ubuntu-11-10-a.html)

immortality May 5, 2013 08:52

Installing OpenFOAM 1.6-ext on Ubuntu 11.10
 
Quote:

Originally Posted by wyldckat (Post 404638)
Hi Oleg,

The differences are only:
  1. That git mirror version does not have all of the branches that the one at sf.net had. But the master branch is present as "sf/master", which is the default upon clone.
  2. You can also use the following instructions, depending on the Ubuntu version you've got: https://github.com/ogoe/OpenFOAM-1.6...uctions/Ubuntu
Best regards,
Bruno

where are instructions for ubuntu 11.10?

wyldckat May 5, 2013 09:06

Quote:

Originally Posted by immortality (Post 425341)
where are instructions for ubuntu 11.10?

Try following these instructions: http://openfoamwiki.net/index.php/In...u#Ubuntu_11.04 - they should work on Ubuntu 11.10.

immortality May 5, 2013 10:52

I downloaded 1.6ext folder and followed instructions but nothing occurred when used ./Allwmake:
Code:

bash: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc: No such file or directory
ehsan@Ehsan-com:~/Desktop/OpenFOAM-1.6-ext-sf-master$ ./AllMake > log.AllMake 2>&1
ehsan@Ehsan-com:~/Desktop/OpenFOAM-1.6-ext-sf-master$ ./AllMake > log.AllMake 2>&1
ehsan@Ehsan-com:~/Desktop/OpenFOAM-1.6-ext-sf-master$ gedit log.AllMake
ehsan@Ehsan-com:~/Desktop/OpenFOAM-1.6-ext-sf-master$ source etc/bashrc
bash: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/bin/foamEtcFile: No such file or directory
bash: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
bash: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
bash: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
bash: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/etc/settings.sh: No such file or directory
bash: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/etc/aliases.sh: No such file or directory
bash: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
bash: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
bash: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory
ehsan@Ehsan-com:~/Desktop/OpenFOAM-1.6-ext-sf-master$ ./Allwmake > make.log 2>&1ehsan@Ehsan-com:~/Desktop/OpenFOAM-1.6-ext-sf-master$ ./Allwmake > make.log 2>&1ehsan@Ehsan-com:~/Desktop/OpenFOAM-1.6-ext-sf-master$ icoFoam -help
icoFoam: command not found


wyldckat May 5, 2013 11:17

Hi Ehsan,

You didn't properly follow the instructions. Looks like you skipped step #2. Follow these instructions:
Code:

cd ~
mkdir OpenFOAM
cd OpenFOAM

mv ~/Desktop/OpenFOAM-1.6-ext-sf-master OpenFOAM-1.6-ext

Then continue from step #4 from the section "2.2 - Ubuntu 11.04": http://openfoamwiki.net/index.php/In...u#Ubuntu_11.04

Best regards,
Bruno

immortality May 5, 2013 11:29

thanks.I supposed stages before are related to downloading.
now I have extracted ext folder in the desktop and this error occurs:
Code:

ehsan@Ehsan-com:~/OpenFOAM$ cd OpenFOAM-1.6-ext
bash: cd: OpenFOAM-1.6-ext: No such file or directory

should I copy it to HOME/OpenFOAM?

wyldckat May 5, 2013 11:34

Please follow the instructions from the previous post.

By the way, I've moved this line of conversation to a new thread, given that the emphasis is about installing on Ubuntu 11.10.

immortality May 5, 2013 11:55

thanks.now is this on compiling?(nothing is shown)
Code:

ehsan@Ehsan-com:~/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty$ ./AllMake > log.AllMake 2>&1

wyldckat May 5, 2013 12:02

Quote:

Originally Posted by immortality (Post 425369)
thanks.now is this on compiling?(nothing is shown)
Code:

ehsan@Ehsan-com:~/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty$ ./AllMake > log.AllMake 2>&1

Yes, it should be and it's going to take a while. And this is just for building the "ThirdParty" applications!
When it's finished, then you'll be able to build OpenFOAM 1.6-ext.

immortality May 5, 2013 13:19

ahy does it takes this so much?its now 2hours!
even doesn't show anything that user be certain its running or when ends!
why is not like official version?

immortality May 5, 2013 13:33

why this text displayed when i open a new terminal now?whats wrong?
Code:

Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/etc/settings.sh
Using openmpi-1.4.3 from the ThirdParty package: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/etc/openmpi-1.4.3.sh
  Environment variables defined for OpenMPI:
    OPENMPI_BIN_DIR      : /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/bin
    OPENMPI_LIB_DIR      : /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib
    OPENMPI_INCLUDE_DIR  : /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/include
    OPENMPI_COMPILE_FLAGS : -I/home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/include -pthread
    OPENMPI_LINK_FLAGS    : -pthread -L/home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl

    MPI_HOME              : /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt
    MPI_ARCH_PATH        : /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt
    OPAL_PREFIX          : /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt
    PINC                  : -I/home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/include -pthread
    PLIBS                : -pthread -L/home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64GccDPOpt/etc/mesquite-2.1.2.sh
    MESQUITE_DIR is initialized to: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64GccDPOpt
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/metis-5.0pre2/platforms/linux64GccDPOpt/etc/metis-5.0pre2.sh
    METIS_DIR is initialized to: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/metis-5.0pre2/platforms/linux64GccDPOpt
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMetis-3.1.1/platforms/linux64GccDPOpt/etc/ParMetis-3.1.1.sh
    PARMETIS_DIR is initialized to: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMetis-3.1.1/platforms/linux64GccDPOpt
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMGridGen-1.0/platforms/linux64GccDPOpt/etc/ParMGridGen-1.0.sh
    PARMGRIDGEN_DIR is initialized to: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMGridGen-1.0/platforms/linux64GccDPOpt
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/libccmio-2.6.1/platforms/linux64GccDPOpt/etc/libccmio-2.6.1.sh
    LIBCCMIO_DIR is initialized to: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/libccmio-2.6.1/platforms/linux64GccDPOpt
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/scotch-5.1.10b/platforms/linux64GccDPOpt/etc/scotch-5.1.10b.sh
    SCOTCH_DIR is initialized to: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/scotch-5.1.10b/platforms/linux64GccDPOpt
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/cmake-2.8.8/platforms/linux64GccDPOpt/etc/cmake-2.8.8.sh
    CMAKE_DIR is initialized to: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/cmake-2.8.8/platforms/linux64GccDPOpt
    M4_DIR is initialized to:
    BISON_DIR is initialized to:
    FLEX_DIR is initialized to:
    ZOLTAN_DIR is initialized to:
    PYTHON_DIR is initialized to:
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/qt-everywhere-opensource-src-4.7.4/platforms/linux64GccDPOpt/etc/qt-everywhere-opensource-src-4.7.4.sh
    QT_DIR is initialized to: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/qt-everywhere-opensource-src-4.7.4/platforms/linux64GccDPOpt
    PARAVIEW_DIR is initialized to:
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/etc/aliases.sh
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/etc/prefs.sh
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/etc/settings.sh
Using openmpi-1.4.3 from the ThirdParty package: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/etc/openmpi-1.4.3.sh
  Environment variables defined for OpenMPI:
    OPENMPI_BIN_DIR      : /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/bin
    OPENMPI_LIB_DIR      : /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib
    OPENMPI_INCLUDE_DIR  : /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/include
    OPENMPI_COMPILE_FLAGS : -I/home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/include -pthread
    OPENMPI_LINK_FLAGS    : -pthread -L/home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl

    MPI_HOME              : /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt
    MPI_ARCH_PATH        : /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt
    OPAL_PREFIX          : /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt
    PINC                  : -I/home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/include -pthread
    PLIBS                : -pthread -L/home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/openmpi-1.4.3/platforms/linux64GccDPOpt/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64GccDPOpt/etc/mesquite-2.1.2.sh
    MESQUITE_DIR is initialized to: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/mesquite-2.1.2/platforms/linux64GccDPOpt
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/metis-5.0pre2/platforms/linux64GccDPOpt/etc/metis-5.0pre2.sh
    METIS_DIR is initialized to: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/metis-5.0pre2/platforms/linux64GccDPOpt
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMetis-3.1.1/platforms/linux64GccDPOpt/etc/ParMetis-3.1.1.sh
    PARMETIS_DIR is initialized to: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMetis-3.1.1/platforms/linux64GccDPOpt
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMGridGen-1.0/platforms/linux64GccDPOpt/etc/ParMGridGen-1.0.sh
    PARMGRIDGEN_DIR is initialized to: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/ParMGridGen-1.0/platforms/linux64GccDPOpt
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/libccmio-2.6.1/platforms/linux64GccDPOpt/etc/libccmio-2.6.1.sh
    LIBCCMIO_DIR is initialized to: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/libccmio-2.6.1/platforms/linux64GccDPOpt
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/scotch-5.1.10b/platforms/linux64GccDPOpt/etc/scotch-5.1.10b.sh
    SCOTCH_DIR is initialized to: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/scotch-5.1.10b/platforms/linux64GccDPOpt
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/cmake-2.8.8/platforms/linux64GccDPOpt/etc/cmake-2.8.8.sh
    CMAKE_DIR is initialized to: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/cmake-2.8.8/platforms/linux64GccDPOpt
    M4_DIR is initialized to:
    BISON_DIR is initialized to:
    FLEX_DIR is initialized to:
    ZOLTAN_DIR is initialized to:
    PYTHON_DIR is initialized to:
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/qt-everywhere-opensource-src-4.7.4/platforms/linux64GccDPOpt/etc/qt-everywhere-opensource-src-4.7.4.sh
    QT_DIR is initialized to: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/qt-everywhere-opensource-src-4.7.4/platforms/linux64GccDPOpt
    PARAVIEW_DIR is initialized to:
Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/etc/aliases.sh


wyldckat May 5, 2013 13:39

Start a new terminal, go to the same folder and run:
Code:

less log.AllMake
Press the "End" key and it should go show the end of the log. Press a couple more times and you'll see that it's updating the log file. Press the "Q" key to exit the application less.

It's taking so long because it has to build Qt and ParaView. This is to avoid some occasional running issues that occur with ParaView, when it's built with an untested or Ubuntu Qt version.
And since Ubuntu 11.10 only provides ParaView 3.10, I didn't suggest using this particular version of ParaView.

And it's not like the official version, because it does not have the same level of support and development :( At least as far as I know.

wyldckat May 5, 2013 13:41

Quote:

Originally Posted by immortality (Post 425388)
why this text displayed when i open a new terminal now?whats wrong?
Code:

Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/etc/settings.sh
Using openmpi-1.4.3 from the ThirdParty package: /home/ehsan

[...]

Sourcing: /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/etc/aliases.sh


I forgot to mention this before: those instructions currently only assume the user is installing a single OpenFOAM version. You'll have to edit the file "~/.bashrc" once again and adapt to your current settings.

The long description is a feature that 1.6-ext has got, since it provides tons of features. This way it's easier to verify if, what and where is installed and being used.

immortality May 5, 2013 14:27

its the bashrc now.what changes have to be done?
Code:

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    . /etc/bash_completion
fi
#. /opt/openfoam220/etc/bashrc
#. /opt/openfoam211/etc/bashrc
#. /opt/openfoam210/etc/bashrc
alias of220='. /opt/openfoam220/etc/bashrc'
alias of210='. /opt/openfoam210/etc/bashrc'
export PATH="$PATH:/home/ehsan/Desktop/codes"
source /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
source /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc


wyldckat May 5, 2013 14:31

Replace:
Code:

source /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc
source /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc

With:
Code:

alias of16ext='source /home/ehsan/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc'

immortality May 5, 2013 14:49

now it has ended and 1.6.ext is compiling.but I can't see its progress by before commandyou said in 1.6ext folder.
and what do you mean by:
Code:

And since Ubuntu 11.10 only provides ParaView 3.10, I didn't suggest using this particular version of ParaView.

wyldckat May 5, 2013 16:46

Quote:

Originally Posted by immortality (Post 425403)
and what do you mean by:
Code:

And since Ubuntu 11.10 only provides ParaView 3.10, I didn't suggest using this particular version of ParaView.

Ubuntu 11.10 has got ParaView 3.10 in the apt-get package system. If you were to run:
Code:

sudo apt-get install paraview
You would get ParaView 3.10.

I didn't suggest to you to install this version, because it's a very outdated version.

immortality May 6, 2013 06:27

then how It can be possible to install a recent version pof paraview?or not possible?!:(

wyldckat May 6, 2013 17:43

Quote:

Originally Posted by immortality (Post 425530)
then how It can be possible to install a recent version pof paraview?or not possible?!:(

The current instructions take so very long to perform because it builds ParaView 3.12.0, which is better than Ubuntu 11.10.

I didn't suggest installing a more recent version of ParaView, because it can be a two-edge sword: it works great for many people, but leads to crashes for others. And one wrong step can lead to bigger problems. Therefore my suggestion is usually to take the safer route of building the custom version, even if it takes longer.

Either way, instructions on how to install a pre-built version of ParaView can be found here: Using the official pre-built ParaView 3.10.1 version with OpenFOAM - It's possible to adapt to the latest ParaView 3.98.1, instead of "3.10.1".


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