CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM Install Script (http://www.cfd-online.com/Forums/openfoam-installation/57195-openfoam-install-script.html)

ljsh September 12, 2008 05:45

Tried the script and it just w
 
Tried the script and it just work great!!! Thanks a lot Jure!

elvis September 20, 2008 07:55

I tried the script on my 32 bi
 
I tried the script on my 32 bit machine with success.
So first of all! Thanks a lot Jure!
But compiling QT 4.3.5 take a lot of time.

My thoughts were to use (libqt4xx) comment wget 4 QT 4.3.5 download and put some more debs to aptitude
libqt4-dev
qt4-dev-tools
libqt4-opengl-dev

in the script, that would install QT 4.4
modify "CMakeLists.txt" => comment the line: 94
as described in
http://www.cfd-online.com/cgi-bin/OpenFOAM_Discus/show.cgi?tpc=126&post=24573#POST245 73

and use the rest of the install script as before

yongshenglian September 21, 2008 08:58

Jure, I use SUSE10 SP1 an
 
Jure,

I use SUSE10 SP1 and do not have sudo and apitude packages. I guess these two are not for SUSE. Is there another way that I can go around so I can install OpenFOAM on my server?

By the way, it is a Sun server using AMD64 processors.

Thanks,
Yongsheng

alberto September 22, 2008 08:56

Dear Lian, sudo is part of
 
Dear Lian,

sudo is part of all distributions, and SUSE installs it by default. You can check with:

rpm -qa sudo

However it is easier to use "su", so that you have to insert root's password only once.

The command line interface for the package manager o is "rug", and the syntax to install packages is:

rug in <package_name>

You might want to check if you have "zypper", that was introduced in openSUSE 10.2, and probably also in SLE 10 with SP1. The syntax is the same:

zypper in <package_name>

but it does not rely on the ZENWorks daemon, making it more efficient.

I hope this helps,
Alberto

yongshenglian September 22, 2008 16:46

Hi Alberto, Thank you for
 
Hi Alberto,

Thank you for the response

I checked with our system administrator and he knows suse but not others. So follow the instruction in the INSTALL of OPENFOAM-1.5. We almost get there but get error message like

/usr/local/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status

It seems that this is a common error. I am not sure whether there is a solution.

I use SUSE10, sp1.
gcc4.3.1
cmake 2.4--patch 6
ld --2.18

I compiled all these over the weekend and the installation still does not work. Maybe should switch to others.
Thanks,
Yongsheng

alberto September 22, 2008 21:13

I don't think the distribution
 
I don't think the distribution is the problem (I have SUSE 10 too), but a library path problem. Is the OF bashrc sourced correctly?

You might want to try the easy way of using the third party tools (compiler, cmake, ...) provided by OpenCFD.

Regards,
Alberto

yongshenglian September 25, 2008 05:48

Alberto, I compile the so
 
Alberto,

I compile the source code using the binary version of the Thirdparty package. When I compile the code, it has the same error.

/usr/bin/ld cannot find lfiniteVolume.


So I installed sudo but cannot install aptitude on my SUSE.

If I do not have apitude, how can I use the script posted here?

Thanks,
Yongsheng

alberto September 25, 2008 10:48

You don't need the script post
 
You don't need the script posted here to install OpenFOAM 1.5 on your system. That script is specific for Ubuntu.

The error you obtain is not related to the fact you don't have aptitude, but to a wrong setting in your paths.

First of all, you need to install QT 4.3.5, and being a SLE 10 user, you're lucky, because you can install the pre-packaged RPM offered on the Novell buildservice, without conflicts with newer versions. Simply add this repository to your installation sources in YaST:

http://download.opensuse.org/reposit...:/Qt43/SLE_10/

and then install libqt4-devel-4.3.5-2.1.i586.rpm and libqt4-4.3.5-2.1.i586.rpm

After that, simply follow the installation instructions provided by OpenCFD in their package, and you will be able to compile OpenFOAM.

- Create a directory called OpenFOAM in your home
- Obtain the source from the git repository, so you have the latest updated version.
- Extract the third party package.
- Run ./Allwmake in the main directory ~/OpenFOAM/OpenFOAM-1.5.x

I hope this helps.

Alberto

alberto September 25, 2008 11:44

Of course, if you work on a 64
 
Of course, if you work on a 64 bit platform, use the 64-bit RPMS for Qt.

A.

hani September 27, 2008 14:40

Hi, I just installed Ubuntu
 
Hi,

I just installed Ubuntu 8.04 LTS Desktop Edition for the first time on my new Dell Latitude D430 Laptop with Intel Core 2 Duo U7700 (64 bit) CPUs.

I used the script provided by Jure (thanks!), but I would like to add a couple of comments that might help others who are trying to do the same.

First of all, in order to be able to use the script in a freshly installed Ubuntu distribution you must first download all the packages (APT). Otherwise the sudo and aptitude will not work. I guess that this is what Jure was trying to tell me, but I'm too fresh with linux installations to understand this completely.

The script by Jure worked nicely until the buildParaView3.3-cvs. Then I had the following error message:
--------------------------------------------
-- Check for working C compiler: /home/hani/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc -- broken
CMake Error: The C compiler "/home/hani/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc" is not able to compile a simple test program.
It fails with the following output:
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/home/hani/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles/ CMakeTmp'
/home/hani/OpenFOAM/ThirdParty/cmake-2.4.6/platforms/linux64/bin/cmake -E cmake_progress_report /home/hani/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles/C MakeTmp/CMakeFiles 1
make[1]: /home/hani/OpenFOAM/ThirdParty/cmake-2.4.6/platforms/linux64/bin/cmake: Command not found
make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCCompiler.o] Error 127
make[1]: Leaving directory `/home/hani/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles/ CMakeTmp'
make: *** [cmTryCompileExec/fast] Error 2


CMake will not be able to correctly generate this project.
--------------------------------------------

This problem was solved by sourcing the OpenFOAM bashrc file in order to use the gcc-2.4.6 distributed with OpenFOAM. However, for some reason it was necessary to comment out the cmake part of the OpenFOAM-1.5/etc/apps/paraview3/bashrc so that the system cmake (version 2.4-patch 7) was used instead of the one distributed with OpenFOAM. Don't ask me why, but perhaps someone else knows why. Then I was able to continue with the rest of the script by Jure successfully.

Good luck with your installations!
Håkan.

yongshenglian September 29, 2008 20:53

Thank both. Here is what I did
 
Thank both. Here is what I did.

1: I reloaded the SUSE10 SP1 on the server. (I am afraid that I messed up some files)

2: install qmake4.3.5

3: install gmp4.2.2 (because when I compiled the OpenFOAM the makefile does not recognize the binary format of some libraries in the ThirdParty)

4: install mprf2.3.2

5: try to configure gcc4.3

However, I always get the waring message saying that Building GCC requires GMP 4.1+ and MPFR 2.3.0+.

6: I use > rpm -q mpfr and find that my mpfr/gmp are a lower version mpfr-2.2.1-6.6


Confused.

Is anyone in US? Someone can send me his contact so I can call for some help? send email to y0lian05@louisville.edu.

Thanks

mavimo January 17, 2009 12:22

I think use apt-get and not ap
 
I think use apt-get and not apitude is best solution.

jlakovic January 18, 2009 19:54

I stand corrected. Apparently
 
I stand corrected. Apparently there is an APT for RPM-based distributions:

http://www.linux-magazine.com/issue/54/apt4rpm.pdf

Jure

mavimo January 25, 2009 07:52

For Ubuntu system this package
 
For Ubuntu system this package are not aviable:

. No candidate version found for firebird2-dev
. No candidate version found for libmpfr1

change to

. firebird2.0-dev

automatically add other dependences, I try to find substitute for libmpfr1

mavimo January 25, 2009 08:00

For Ubuntu system this package
 
For Ubuntu system this package are not aviable:

. No candidate version found for firebird2-dev
. No candidate version found for libmpfr1

change to

. firebird2.0-dev

automatically add other dependences, I try to find substitute for libmpfr1

jlakovic January 25, 2009 15:53

Well, if you look closely, the
 
Well, if you look closely, the script installs both firebird2-dev and firebird2.0-dev as well as libmpfr1 and libmpfr1ldbl, because Ubuntu and Debian name some of their packages differently. So ignore the errors, the appropriate packages still get installed.

amz January 27, 2009 09:18

Hi GUYS I am running the s
 
Hi GUYS

I am running the script for the installation but after downloading and extracting the files, the installation process is halted due to missing libraries. here is on the of the message i received.

Initializing package states... Done
Couldn't find any package whose name or description matched "build-essential"
Couldn't find any package whose name or description matched "cmake"
Couldn't find any package whose name or description matched "firebird2-dev"
Couldn't find any package whose name or description matched "firebird2.0-dev"
No candidate version found for flex

please kindly give me directions

Regards

jlakovic January 27, 2009 09:30

Which Linux distribution are y
 
Which Linux distribution are you running?

amz January 27, 2009 10:18

I am runing Ubuntu 8.10
 
I am runing Ubuntu 8.10

jlakovic January 27, 2009 10:28

Post the output of the command
 
Post the output of the command

cat /etc/apt/sources.list


All times are GMT -4. The time now is 20:52.