CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installation OF 1.7.x and 1.5-dev(1.6-ext) (https://www.cfd-online.com/Forums/openfoam-installation/83398-installation-1-7-x-1-5-dev-1-6-ext.html)

Ingenierias2003 December 27, 2010 08:35

Installation OF 1.7.x and 1.5-dev(1.6-ext)
 
Dear OFoamers,

I would like to know if is possible to install to version of OpenFOAM in the same place OpenFOAM directory. I was trying but before the compile the second version look like the first version was overwrite (is not problem of permission). For bashrc is more easy because is possible use different alias, to recognize the two version.

I see another post but is not really clear how to do exactly?

Thanks in advance, I will waiting for yours comments.

Respectfully
Javier Basurco

wyldckat December 27, 2010 18:48

Greetings Javier,

Perhaps you saw this post:
Quote:

Originally Posted by vaina74 (Post 288095)
Code:

# OpenFOAM 1.7
alias OF17="source /opt/openfoam171/etc/bashrc"
alias OFdev="source /usr/lib/OpenFOAM-1.5-dev/etc/bashrc"


In your case, I suppose that it should be something like this:
Code:

alias of17x="source $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc"
alias of15dev="source $HOME/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc"

These two lines are to be inserted near the end of the file "~/.bashrc", also known as "$HOME/.bashrc".

Now, a few very important details:
  1. DO NOT leave breadcrumbs from the previous copy-paste you might have done. In other words, don't leave other lines in "~/.bashrc" with the code:
    Code:

    . $HOME/OpenFOAM/OpenFOAM-1.7.x/etc/bashrc
    Nor anything similar! If you leave anything like this before or after the alias lines, then those alias lines won't work :( This is because OpenFOAM's bashrc file is designed to preserve the current environment, instead of overwriting it with new values.
  2. Start a new terminal after saving the modifications to the "~/.bashrc" file. This is the most effective way of making sure that your environment is clean and ready to be used.
  3. Keep in mind point #1 of this list. The only correct way (if you use the original versions of the bashrc files) for you to use the other OpenFOAM environment is to start another terminal window/tab and run the respective alias command, namely:
    Code:

    of17x
    or
    Code:

    of15dev
I hope this is clear now :)

Best regards,
Bruno

Ingenierias2003 December 28, 2010 07:46

Dear Bruno,

Many thanks for your help. I am trying to do this right now:D:D:D.

My kind regards

Respectfully
Javier Basurco

Ingenierias2003 December 30, 2010 19:38

ThirdParty installation
 
2 Attachment(s)
Dear Bruno,

I compile OF 1.5-dev and Thirdparty after compile OF 1.7-x all its ok but when trying to compile the Thirdparty-1.7.x appear some problems in appends send the LOG`s files. Please help to resolve this problem???:confused::confused:

First: When run Allclean, appear some problems related to gmake.

Second: When trying to compile the paraview with mpi, appear an error.

I look a forward to hearing from you. Thanks in advance for your help!!!

Happy new 2011 year!!!

Respectfully
Javier Basurco

wyldckat December 31, 2010 13:58

Hi Javier,

Quote:

Originally Posted by Ingenierias2003 (Post 288896)
First: When run Allclean, appear some problems related to gmake.

The error associated to gmake is an ironic error: gmake stands for GNU make, which is the version usually packed with Linux distributions and always named as make. So, the simplest fix is to make a symbolic link of gmake to make; a simple non-root way to do this is:
Code:

ln -s `which make` $WM_PROJECT_DIR/bin/gmake
This should create a symbolic link of make to the link gmake in OpenFOAM's bin folder.

Quote:

Originally Posted by Ingenierias2003 (Post 288896)
Second: When trying to compile the paraview with mpi, appear an error.

I've already reported this issue as a bug; see here the report and solution (see both the description and in the notes)... No, wait, I made a bad assumption... I've now read the log file... the error you got is related to missing OpenGL libraries... or so I think. In Ubuntu I usually install the package "freeglut3-dev".
I guess the other solution might come in handy sooner or later, depending on whether you use a custom build of OpenMPI or the system's build.

Happy New 2011 to you too :)
Bruno

Ingenierias2003 January 4, 2011 07:45

Dear Bruno,

I looking for this library but this is install. I don't understand where is the problem, for the 1.5dev version install paraview 3.8.0 according to your post. When I trying to do the same with ThirParty-1.7.x, have the same problem when trying to use blockMesh, say that needs some things of paraview, please help:confused::confused::confused::confused:

I have the same Log.:confused::confused::confused::confused:

I look a forward to hearing from you, thanks in advance

Respectfully
Javier Basurco

wyldckat January 4, 2011 08:37

Greetings Javier,

I must apologize, but I'm having trouble understanding what you wrote :(
Quote:

Originally Posted by Ingenierias2003 (Post 289191)
I looking for this library but this is install.

OK, if I understand you correctly, "freeglut3-dev" is already installed. If you told us which Linux version you are using, it would be easier to help you!


Quote:

Originally Posted by Ingenierias2003 (Post 289191)
I don't understand where is the problem, for the 1.5dev version install paraview 3.8.0 according to your post.

Uhm, I'm having trouble understanding this phrase: do you mean that you managed to install ParaView 3.8.0 in 1.5-dev, according to my post? My questions are:
  • which post exactly?
  • do you mean that you built ParaView with MPI for OpenFOAM 1.5-dev, or did you simply installed and already existing built version?

Quote:

Originally Posted by Ingenierias2003 (Post 289191)
When I trying to do the same with ThirParty-1.7.x, have the same problem when trying to use blockMesh, say that needs some things of paraview

:confused: OK, what exactly did you do in ThirdParty-1.7.x?
And I fail to see the relation between blockMesh and ParaView :(
What is being said about ParaView?

Quote:

Originally Posted by Ingenierias2003 (Post 289191)
I have the same Log.

There are two log files :( Which one are you talking about?

Best regards,
Bruno

Ingenierias2003 January 4, 2011 13:09

1 Attachment(s)
Dear Bruno,

I am explain me better: I aam using ubuntu 10.04 in a sony vaio laptop core i7 with nvidia graphics board.

1° I am install this packages, that you suggested

sudo apt-get install binutils-dev flex bison git-core build-essential python-dev libreadline5-dev wget zlib1g-dev cmake libpng12-dev libxt-dev libxi-dev libxrender-dev libxrandr-dev libxcursor-dev libxinerama-dev libfreetype6-dev libfontconfig1-dev libglib2.0-dev freeglut3-dev libqt4-dev qt4-dev-tools

2° I am using the svn and download the openfoam-1.5-dev and thirdparty. When trying to using the paraview I have problems then follow this threat of Chalmers university:
http://www.tfd.chalmers.se/~hani/kur...OwnLaptop.html
The main objective was using paraview 3.8.0. Finally works very well

3° Then using git to download openfoam 1.7.x and follow the openfoam cfd to install the thirdparty
./Allclean ( I am using your advice and work very well, the space is clean)
when trying to run ./makeParaView, obtain many strange:confused: things. I thing the some 64 bit library are not recognize the many message about GLX-some numbers apper. After that some minutes more the compilation crash
4° I am trying the follow your post:
http://www.cfd-online.com/Forums/blo...-openfoam.html
but not work for me.

I am appending the Log of the compilation, I hope you can help me????:confused::confused::confused::confused::con fused:

My kind regards

Respectfully
Javier Basurco

wyldckat January 4, 2011 18:25

Hi Javier,

Many thanks for the detailed reply! I think now I'm able to help you properly :)
Quote:

Originally Posted by Ingenierias2003 (Post 289241)
I am explain me better: I aam using ubuntu 10.04 in a sony vaio laptop core i7 with nvidia graphics board.

OK, hopefully the drivers are properly installed and there are no issues with the graphics card. If ParaView works well with OpenFOAM 1.5-dev, then all should be okay with the graphics card + drivers.

Quote:

Originally Posted by Ingenierias2003 (Post 289241)
1° I am install this packages, that you suggested

sudo apt-get install binutils-dev flex bison git-core build-essential python-dev libreadline5-dev wget zlib1g-dev cmake libpng12-dev libxt-dev libxi-dev libxrender-dev libxrandr-dev libxcursor-dev libxinerama-dev libfreetype6-dev libfontconfig1-dev libglib2.0-dev freeglut3-dev libqt4-dev qt4-dev-tools

OK, this is good to know. I've cross-checked with my other list and I can't find anything missing, at least not yet.

Quote:

Originally Posted by Ingenierias2003 (Post 289241)
2° I am using the svn and download the openfoam-1.5-dev and thirdparty. When trying to using the paraview I have problems then follow this threat of Chalmers university:
http://www.tfd.chalmers.se/~hani/kurser/OS_CFD/OpenFOAMonYourOwnLaptop.html
The main objective was using paraview 3.8.0. Finally works very well

OK, this is good to know! I'm glad it's working :)

Quote:

Originally Posted by Ingenierias2003 (Post 289241)
3° Then using git to download openfoam 1.7.x and follow the openfoam cfd to install the thirdparty
./Allclean ( I am using your advice and work very well, the space is clean)
when trying to run ./makeParaView, obtain many strange:confused: things. I thing the some 64 bit library are not recognize the many message about GLX-some numbers apper. After that some minutes more the compilation crash
...
I am appending the Log of the compilation, I hope you can help me????

OK, now the error is related to mpi.h not being found. What do these commands output:
Code:

echo $MPI_ARCH_PATH/include
echo $WM_MPLIB

Now:
  • If the first line only outputs "/include", then see the next point. If it outputs more than just that, and the second line outputs OPENMPI, then when you ran Allclean, you took out the custom build OpenMPI you had from building OpenFOAM 1.7.x. If you build OpenFOAM 1.7.x again (no need for cleaning), then OpenMPI should be available once again and ParaView should build as well.
  • If the second line outputs SYSTEMOPENMPI, then it's like I said in a previous post: I've already reported this issue as a bug; see here the report and solution (see both the description and in the notes).
    If you have trouble following the instructions in that link, tomorrow I can post more detailed instructions.

Quote:

Originally Posted by Ingenierias2003 (Post 289241)
4° I am trying the follow your post:
http://www.cfd-online.com/Forums/blo...-openfoam.html
but not work for me.

Ah, now I know what the problem was with blockMesh... it's because the pre-built ParaView carries its own set of libraries that will clash with the system's libraries, thus making OpenFOAM applications not run properly. I already know a solution for this, but I keep forgetting to write about the fix :(

_______
edit: I've read my own blog post and there are already instructions there to avoid those issues with blockMesh!! The relevant fix starts here:
Quote:

Originally Posted by http://www.cfd-online.com/Forums/blogs/wyldckat/317-using-official-pre-built-paraview-3-8-0-version-openfoam.html
But, if next time you start getting error messages like this:
Code:

(...)OpenFOAM/ThirdParty-1.7.x/platforms/linux64Gcc/paraview-3.8.0/lib/paraview-3.8/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libkdecore.so.5)

I didn't even remember that I've written about it a sometime ago!!
______


Best regards,
Bruno

Ingenierias2003 January 7, 2011 06:14

Dear Bruno

I am very gratefully with your help and your time. But, I think that there are some conflicts with the libGL.so (video hardware) that make with paraview dont build in my system. I don't understand why:confused::confused::confused:, because I use paraview 3.8.0 with openfoam-1.5-dev and openfoam-1.6-ext(installed with cae ppa repository and paraview too).
Finally, maybe in the future is possibly, one more time thanks for your help.

My deep regards
Respectfully
Javier Basurco
P.D.: I follow the last advice to no compile paraview but always appear the same message: blockMesh need some libraries for ThirdaParty-1.7.x - paraview. I think at moment there is no solution

benk February 13, 2011 17:45

Hi Bruno, I've been trying to install 1.6-ext on my Ubuntu 10.10 computer today but I'm also having problems with the installer not being able to find mpi.h.

The first of many error messages involves mpi.h:
Code:

Note: ignore spurious warnings about missing mpicxx.h headers
+ WM_OPTIONS=linux64GccDPOptOPENMPI
+ wmake libso mpi
SOURCE=OPwrite.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -DOMPI_SKIP_MPICXX -I/include -IlnInclude -I. -I/home/ben/OpenFOAM/1.6-ext/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/1.6-ext/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOptOPENMPI/OPwrite.o
SOURCE=IPread.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -DOMPI_SKIP_MPICXX -I/include -IlnInclude -I. -I/home/ben/OpenFOAM/1.6-ext/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/1.6-ext/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOptOPENMPI/IPread.o
SOURCE=Pstream.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -DOMPI_SKIP_MPICXX -I/include -IlnInclude -I. -I/home/ben/OpenFOAM/1.6-ext/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/1.6-ext/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOptOPENMPI/Pstream.o
SOURCE=PstreamGlobals.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-40 -DOMPI_SKIP_MPICXX -I/include -IlnInclude -I. -I/home/ben/OpenFOAM/1.6-ext/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/home/ben/OpenFOAM/1.6-ext/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOptOPENMPI/PstreamGlobals.o
Pstream.C:27: fatal error: mpi.h: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOptOPENMPI/Pstream.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from PstreamGlobals.C:26:
PstreamGlobals.H:39: fatal error: mpi.h: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOptOPENMPI/PstreamGlobals.o] Error 1
OPwrite.C:29: fatal error: mpi.h: No such file or director


Maybe I'm missing something, but this is what I've done:

1. I pulled 1.6-ext from git and sourced bashrc
2. In the ThirdParty directory, I did a ./Allwmake and it seemed to install stuff via rpm succesffuly, then I re-sourced bashrc
3. Then in OpenFOAM-1.6-ext I did a ./Allwmake and I can't get passed the error I posted above.

When I type
Code:

echo $MPI_ARCH_PATH/include
echo $WM_MPLIB

I get
Code:

/include
OPENMPI

So then I follwed your advice and edited settings.sh to look like this:

Code:

    # Make sure OPENMPI_LIB_DIR is set
    if [ ! -n "${OPENMPI_LIB_DIR}" ]
    then
        # Initialize OPENMPI_LIB_DIR using the path to mpicc
        export OPENMPI_LIB_DIR="`mpicc --showme:libdirs`"
        export MPI_ARCH_PATH="${libDir%/*}"
    fi

And still I get the exact same error message. Any hints on how I can proceed?

wyldckat February 14, 2011 17:44

Hi Ben,

I have yet to try and build OpenFOAM 1.6-ext, so I don't have any experience with it. Right now I can only assume that some details are different between 1.6-ext and 1.6.x/1.7.x.
Next weekend I can try and give it a whirl, but if you're in a hurry you better check this thread: http://www.cfd-online.com/Forums/ope...m-1-6-ext.html

Best regards,
Bruno


All times are GMT -4. The time now is 03:36.