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

Trouble with installing OpenFOAM on Ubuntu

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2009, 07:35
Default Trouble with installing OpenFOAM on Ubuntu
  #1
Milos
Guest
 
Posts: n/a
I'm a brand new user of Linux Ubuntu 8.10 (32-bit) and I'm experiencing some issues with the installation of OpenFOAM 1.5.

ParaView binaries will work only with the Qt version with which it was made, namely 4.3.x (for the 32-bit version). Now, there is a link on the official site for the repositories, but the only thing that happens when I put the URL into my Synaptic APT is "malformed line 85...", which in addition completely crashed my Synaptic. I solved that, but I still can't find a proper repository for Qt 4.3.x.

Can anyone provide me with a full, appropriate APT address that has got Qt 4.3.x?

Thanx a lot!
  Reply With Quote

Old   March 1, 2009, 06:15
Default Re: Trouble with installing OpenFOAM on any Distro
  #2
Ahmed
Guest
 
Posts: n/a
try this one http://www.linuxfromscratch.org/blfs...ble/x/qt4.html Do you know, where exactly this version of Qt should be installed so it does not interfere with the already installed distro Qt, I mean, should it be installed within the third party folder or the OpenFOAM folder? thanks and good luck
  Reply With Quote

Old   March 1, 2009, 08:32
Default Re: Trouble with installing OpenFOAM on any Distro
  #3
pei-ying hsieh
Guest
 
Posts: n/a
Hi,

Search the OpenFOAM forum. You can find detailed steps and links on how to install OpenFOAM-1.5/paraview there (Ubuntu and OpenSUSE).

phsieh2005
  Reply With Quote

Old   March 1, 2009, 16:48
Default Re: Trouble with installing OpenFOAM on any Distro
  #4
Ahmed
Guest
 
Posts: n/a
pei-ying hsieh wrote "Search the OpenFOAM forum", no comment on that, the openFoam forum has a lot of information and a new comer to OpenFOAM/Linux will definitely get confused. Have a positive reply, put a link(s) to what you consider the proper and easy procedure to solve this situation or write a few lines telling us how?

  Reply With Quote

Old   March 1, 2009, 17:41
Default Re: Trouble with installing OpenFOAM on any Distro
  #5
Ahmed
Guest
 
Posts: n/a
for instance, look that thread http://openfoam.cfd-online.com/cgi-b...2166#POST32166 How many have succeeded and how many have failed?
  Reply With Quote

Old   March 1, 2009, 18:26
Default Re: Trouble with installing OpenFOAM on any Distro
  #6
Ahmed
Guest
 
Posts: n/a
instructions for installing are here http://doc.trolltech.com/4.4/install-x11.html

  Reply With Quote

Old   March 1, 2009, 21:23
Default Re: Trouble with installing OpenFOAM on any Distro
  #7
Harish
Guest
 
Posts: n/a
I run OpenFoam 1.5 on Ubuntu 8.10. There are two things that you need to look into.

1. Is your version of gcc higher/equal to the standard build used for openfoam 1.5 2. Check the compiler openfoam employs in the ../etc/bashrc file

Qt is required for you to compile paraview and its a bit of effort to make it work. The paraview part is totally unrelated to the solvers. Also if paraview does not work you can always use foamToVTK utility and view the vtk files in paraview directly.

Hope this helps.
  Reply With Quote

Old   March 2, 2009, 04:25
Default Re: Trouble with installing OpenFOAM on any Distro
  #8
Milos
Guest
 
Posts: n/a
Thanks a lot to everyone! I'll look up all the options and let you know how I did.
  Reply With Quote

Old   March 4, 2009, 12:42
Default Re: Trouble with installing OpenFOAM on any Distro
  #9
Ahmed
Guest
 
Posts: n/a
Open Foam 1.5 comes with an old version of paraview that requires an old version of Qt. Here is How I solved the first part of the problem, i.e., installing qt4.3.5 within the OpenFOAM's ThirdParty folder.

1- In your home directory create a Tmp folder

2- Download into this folder the following file ftp://ftp.trolltech.com/qt/source/qt...c-4.3.5.tar.gz

3- Once the download is finished, change to that Tmp directory and issue the following two commands

i- gunzip qt-x11-opensource-src-4.3.5.tar.gz

ii- tar xvf qt-x11-opensource-src-4.3.5.tar

now you have the folder qt-x11-opensource-src-4.3.5, so change to that folder and issue the following command

./configure -prefix /home/XXXXX/OpenFOAM/ThirdParty/QT-4.3.5

where XXXXX stands for your name, then accept the license by typing yes

After few minutes you will get the following:-

Qt is now configured for building. Just type "gmake" Once everything is built you must run "gmake install" Qt will be installed into /home/XXXXX/OpenFOAM/ThirdParty/Qt-4.3.5.

at the end of this process (45 minutes or more) you will have qt-4.3.5 installed into the ThirdParty folder.

Now the question is How to make OpenFOAM use this qt and not the already installed qt?

If you have solved this question and willing to share your knowledge with us, Please write back and tell us what you did.

If you plan to write "search for" or "google for", Please abstain from writing Thank you for your understanding

Harish, thanks for the tip, I did not know that foamtoVTK can be used, thanks again
  Reply With Quote

Old   March 6, 2009, 22:46
Default Re: Trouble with installing OpenFOAM on any Distro
  #10
Ahmed
Guest
 
Posts: n/a
The linker uses the following search paths to locate required shared libraries:

1. Any directories specified by -rpath-link options.

2. Any directories specified by -rpath options. The difference between -rpath

and -rpath-link is that directories specified by -rpath options are

included in the executable and used at runtime, whereas the -rpath-link

option is only effective at link time. Searching -rpath in this way is only

supported by native linkers and cross linkers which have been configured

with the --with-sysroot option.

3. On an ELF system, for native linkers, if the -rpath and -rpath-link options

were not used, search the contents of the environment variable

"LD_RUN_PATH".

4. On SunOS, if the -rpath option was not used, search any directories speci-

fied using -L options.

5. For a native linker, the search the contents of the environment variable

"LD_LIBRARY_PATH".

6. For a native ELF linker, the directories in "DT_RUNPATH" or "DT_RPATH" of a

shared library are searched for shared libraries needed by it. The

"DT_RPATH" entries are ignored if "DT_RUNPATH" entries exist.

7. The default directories, normally /lib and /usr/lib.

8. For a native linker on an ELF system, if the file /etc/ld.so.conf exists,

the list of directories found in that file.

So, set LD_LIBRARY_PATH to the "subfolder to the OpenFOAM folder".
  Reply With Quote

Old   March 11, 2009, 09:15
Default Re: Trouble with installing OpenFOAM on any Distro
  #11
Milos Stanic
Guest
 
Posts: n/a
Hi everyone!

I managed to do it relatively easy...it never actually crossed my mind that there could be a binary version of ParaView.

Ok, so here what I did:

1. Downloaded OpenFOAM 1.5 and installed it on my Linux Ubuntu 8.10 in the manner described in detail on the official OpenFOAM website.

2. Everything's fine until the point where I needed to compile ParaView, so I DIDN'T! Here's the link to the binary version which will download ParaView 3.2.2 as a .deb file, so you just need to double-click it and it will install the ParaView 3.2.2 on your computer:

http://yu.archive.ubuntu.com/ubuntu/...2.2-1_i386.deb

Hope this helps!

Cheers!
  Reply With Quote

Old   March 11, 2009, 17:57
Default Re: Trouble with installing OpenFOAM on any Distro
  #12
Ahmed
Guest
 
Posts: n/a
more important than putting the link, is your willingness to share your experience with others Good Luck
  Reply With Quote

Old   May 16, 2009, 18:21
Default
  #13
New Member
 
Join Date: May 2009
Posts: 1
Rep Power: 0
Jandre is on a distinguished road
I have ubuntu 9.04 and i did like Ahmed

1- In your home directory create a Tmp folder

2- Download into this folder the following file ftp://ftp.trolltech.com/qt/source/qt...c-4.3.5.tar.gz

3- Once the download is finished, change to that Tmp directory and issue the following two commands

i- gunzip qt-x11-opensource-src-4.3.5.tar.gz

ii- tar xvf qt-x11-opensource-src-4.3.5.tar

now you have the folder qt-x11-opensource-src-4.3.5, so change to that folder and issue the following command

./configure -prefix /home/XXXXX/OpenFOAM/ThirdParty/QT-4.3.5

where XXXXX stands for your name, then accept the license by typing yes

After few minutes you will get the following:-

Qt is now configured for building. Just type "make" Once everything is built you must run "make install" Qt will be installed into /home/XXXXX/OpenFOAM/ThirdParty/Qt-4.3.5.




Them i add the following lines to the ~/OpenFOAM/OpenFOAM-1.5/etc/bashrc at the very end

# set QT related variables
QT=~/OpenFOAM/ThirdParty/Qt-4.3.5
export PATH=$QT/bin:$PATH
export LD_LIBRARY_PATH=$QT/lib:$LD_LIBRARY_PATH

like in http://www.cfd-online.com/cgi-bin/Op...8466#POST28466

after that i just had to do all the compiling like in the README file of openFOAM (7.1 and 7.2)

thanks for you help
Jandre is offline   Reply With Quote

Old   June 15, 2009, 18:46
Default
  #14
New Member
 
alex
Join Date: Jun 2009
Posts: 17
Rep Power: 17
oort is on a distinguished road
Quote:
Originally Posted by Jandre View Post

Qt is now configured for building. Just type "make" Once everything is built you must run "make install" Qt will be installed into /home/XXXXX/OpenFOAM/ThirdParty/Qt-4.3.5.
it give me these errors:

Quote:
[sudo] password for carlos:
cd src/tools/moc/ && make -f Makefile
make[1]: Entering directory `/home/carlos/Tmp/qt-x11-opensource-src-4.3.5/src/tools/moc'
g++ -c -pipe -g -O2 -Wall -W -DQT_BOOTSTRAPPED -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_LIBRARY -DQT_NO_STL -DQT_NO_COMPRESS -DQT_NO_DATASTREAM -DQT_NO_TEXTSTREAM -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_THREAD -DQT_NO_REGEXP -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_GEOM_VARIANT -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../mkspecs/linux-g++ -I. -I../../corelib/arch/generic -I../../../include -I. -I../../../include/QtCore -I. -I.uic/release-shared -o release-shared/moc.o moc.cpp
make[1]: g++: Command not found
make[1]: *** [release-shared/moc.o] Error 127
make[1]: Leaving directory `/home/carlos/Tmp/qt-x11-opensource-src-4.3.5/src/tools/moc'
make: *** [sub-moc-make_default-ordered] Error 2
oort is offline   Reply With Quote

Old   June 15, 2009, 23:37
Default
  #15
Senior Member
 
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 251
Rep Power: 18
Ahmed is on a distinguished road
use synaptic to install g++
read the error mnessage g++ command not found
Ahmed is offline   Reply With Quote

Old   November 16, 2009, 03:39
Default
  #16
New Member
 
Join Date: Nov 2009
Posts: 6
Rep Power: 17
aliakbar82 is on a distinguished road
Jandre I have ubuntu 9.04 but use OpenFOAM1.6. I want to know Is this instruction you said usefull for OpenFOAM1.6 as well as OpenFOAM1.5 and if yes after that paraview works properly?
Thanks.
aliakbar82 is offline   Reply With Quote

Old   November 16, 2009, 03:44
Default
  #17
New Member
 
Join Date: Nov 2009
Posts: 6
Rep Power: 17
aliakbar82 is on a distinguished road
Jandre I have ubuntu 9.04 but use OpenFOAM1.6. I want to know Is this instruction you said usefull for OpenFOAM1.6 as well as OpenFOAM1.5 and if yes after that paraview works properly?
Thanks.
aliakbar82 is offline   Reply With Quote

Reply


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
Problem Installing OF 1.6 Ubuntu 9.10 (64 bit) - How to use GCC 4.4.1 Future Science OpenFOAM Installation 43 November 10, 2011 08:17
Installing OpenFOAM 1.6 on Ubuntu 10.4 sda OpenFOAM Installation 5 May 27, 2010 21:19
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
OpenFoam 1.6 Permissions in Ubuntu 9.04 AlanR OpenFOAM Installation 14 December 28, 2009 20:45
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 10:55.