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

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

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2010, 09:35
Post Installation OF 1.7.x and 1.5-dev(1.6-ext)
  #1
Member
 
Javier Basurco
Join Date: Jan 2010
Location: Rio de Janeiro, Brazil
Posts: 32
Rep Power: 16
Ingenierias2003 is on a distinguished road
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
Ingenierias2003 is offline   Reply With Quote

Old   December 27, 2010, 19:48
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Javier,

Perhaps you saw this post:
Quote:
Originally Posted by vaina74 View Post
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
__________________
wyldckat is offline   Reply With Quote

Old   December 28, 2010, 08:46
Default
  #3
Member
 
Javier Basurco
Join Date: Jan 2010
Location: Rio de Janeiro, Brazil
Posts: 32
Rep Power: 16
Ingenierias2003 is on a distinguished road
Dear Bruno,

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

My kind regards

Respectfully
Javier Basurco
Ingenierias2003 is offline   Reply With Quote

Old   December 30, 2010, 20:38
Default ThirdParty installation
  #4
Member
 
Javier Basurco
Join Date: Jan 2010
Location: Rio de Janeiro, Brazil
Posts: 32
Rep Power: 16
Ingenierias2003 is on a distinguished road
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???

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
Attached Files
File Type: txt Log.txt (7.7 KB, 2 views)
File Type: gz Log1.txt.tar.gz (13.4 KB, 2 views)
Ingenierias2003 is offline   Reply With Quote

Old   December 31, 2010, 14:58
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Javier,

Quote:
Originally Posted by Ingenierias2003 View Post
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 View Post
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
__________________
wyldckat is offline   Reply With Quote

Old   January 4, 2011, 08:45
Default
  #6
Member
 
Javier Basurco
Join Date: Jan 2010
Location: Rio de Janeiro, Brazil
Posts: 32
Rep Power: 16
Ingenierias2003 is on a distinguished road
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

I have the same Log.

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

Respectfully
Javier Basurco
Ingenierias2003 is offline   Reply With Quote

Old   January 4, 2011, 09:37
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Javier,

I must apologize, but I'm having trouble understanding what you wrote
Quote:
Originally Posted by Ingenierias2003 View Post
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 View Post
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 View 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
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 View Post
I have the same Log.
There are two log files Which one are you talking about?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 4, 2011, 14:09
Default
  #8
Member
 
Javier Basurco
Join Date: Jan 2010
Location: Rio de Janeiro, Brazil
Posts: 32
Rep Power: 16
Ingenierias2003 is on a distinguished road
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 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????:con fused:

My kind regards

Respectfully
Javier Basurco
Attached Files
File Type: gz log_makeParaview.txt.tar.gz (11.8 KB, 1 views)
Ingenierias2003 is offline   Reply With Quote

Old   January 4, 2011, 19:25
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Javier,

Many thanks for the detailed reply! I think now I'm able to help you properly
Quote:
Originally Posted by Ingenierias2003 View Post
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 View Post
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 View Post
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 View Post
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 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 View Post
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
__________________

Last edited by wyldckat; January 5, 2011 at 22:48. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   January 7, 2011, 07:14
Default
  #10
Member
 
Javier Basurco
Join Date: Jan 2010
Location: Rio de Janeiro, Brazil
Posts: 32
Rep Power: 16
Ingenierias2003 is on a distinguished road
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, 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
Ingenierias2003 is offline   Reply With Quote

Old   February 13, 2011, 18:45
Default
  #11
Senior Member
 
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19
benk is on a distinguished road
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?
benk is offline   Reply With Quote

Old   February 14, 2011, 18:44
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation of OpenFOAM 1.5 fabian_korn OpenFOAM Installation 1 April 28, 2010 09:22
Installation problem on Fedora 10 (OF 1.5) yshi095 OpenFOAM Installation 2 July 21, 2009 07:24
OpenFOAM 1.5 installation on OpenSUSE 11.0 bigphil OpenFOAM Installation 16 April 29, 2009 07:28
Installation 1.5 as a user of server (New bird) chiven OpenFOAM Installation 15 April 26, 2009 23:33
Problem installing OpenFOAM 1.5 installation on RHEL 4. vwsj84 OpenFOAM Installation 4 April 23, 2009 05:48


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