CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM 13 on IBM AIX 51 (https://www.cfd-online.com/Forums/openfoam-installation/57630-openfoam-13-ibm-aix-51-a.html)

msrinath80 July 22, 2006 13:47

Hi all, I have access to tw
 
Hi all,

I have access to two IBM AIX machines (each is a 4 processor, 2 GB RAM per processor). They run AIX 5.1. I want to try and install OpenFOAM starting with small steps (i.e. first build the essentials and just icoFoam), before moving on to building all solvers. Also FoamX/Paraview are not of utmost importance during this phase. I can build them later if necessary. The objective is to merely get icoFOAM running in serial mode (and later in parallel so that can use all 4 CPUs).

I don't want to get into the gcc compiling business, so I've just installed a pre-compiled gcc 4.0.0 binary from the AIX toolbox for linux applications at IBM's webpage. The following is a list of GNU (mostly) utils I've installed:

autoconf-2.59-1.aix5.1.noarch.rpm


libstdcplusplus-4.0.0-1.aix5.1.ppc.rpm


automake-1.8.5-1.aix5.1.noarch.rpm


libstdcplusplus-devel-4.0.0-1.aix5.1.ppc.rpm


bash-3.0-1.aix5.1.ppc.rpm


libtool-1.5.8-1.aix5.1.ppc.rpm


bc-1.06-2.aix4.3.ppc.rpm

lsof-4.61-3.aix5.1.ppc.rpm

binutils-2.14-3.aix5.1.ppc.rpm

lynx-2.8.4-2.aix5.1.ppc.rpm

bison-1.875-3.aix5.1.ppc.rpm

m4-1.4.1-1.aix5.1.ppc.rpm

bzip2-1.0.2-3.aix5.1.ppc.rpm

make-3.80-1.aix5.1.ppc.rpm

coreutils-5.2.1-2.aix5.1.ppc.rpm

patch-2.5.4-4.aix4.3.ppc.rpm

dejagnu-1.4.2-1.aix4.3.ppc.rpm

pkgconfig-0.15.0-1.aix4.3.ppc.rpm

diffutils-2.8.1-1.aix4.3.ppc.rpm

popt-1.7-1.aix4.3.ppc.rpm

findutils-4.1-3.aix4.3.ppc.rpm

python-2.3.4-2.aix5.1.ppc.rpm

flex-2.5.4a-6.aix4.3.ppc.rpm

readline-4.3-2.aix5.1.ppc.rpm

gawk-3.1.3-1.aix5.1.ppc.rpm

readline-devel-4.3-2.aix5.1.ppc.rpm

gcc-4.0.0-1.aix5.1.ppc.rpm

gcc-cplusplus-4.0.0-1.aix5.1.ppc.rpm

tar-1.14-1.aix5.1.ppc.rpm

gdb-6.0-1.aix5.1.ppc.rpm

vnc-3.3.3r2-4.aix5.1.ppc.rpm

git-4.3.20-4.aix5.1.ppc.rpm

wget-1.9.1-1.aix5.1.ppc.rpm

grep-2.5.1-1.aix4.3.ppc.rpm

gzip-1.2.4a-7.aix4.3.ppc.rpm

which-2.14-1.aix5.1.ppc.rpm

less-382-1.aix5.1.ppc.rpm

zip-2.3-3.aix4.3.ppc.rpm

I am familiar with the usual (in linux) ./configure && make && make install procedure. I've also noticed that there are quite a few people who have tried their hand at installing OpenFOAM on AIX. For starters I would appreciate if someone can point out what changes I will need to make to the following files:

(a) ~/OpenFOAM/OpenFOAM-1.3/.bashrc
(b) ~/OpenFOAM/OpenFOAM-1.3/wmake/Makefile
(c) ~/OpenFOAM/OpenFOAM-1.3/wmake/rules/AIX64 (?)

Niklas has mentioned the use of the fpermissive flag.

Quoting from an earlier post:

for the wmake/rules i use this, which works fine.
*** c++ ***
CC = g++ -fpermissive -maix32

LINKLIBSO = $(CC) $(c++FLAGS) -shared -Wl,-G -Wl,-bbigtoc -Wl,-brtl -Wl,-bnoentry

LINKEXE = $(CC) $(c++FLAGS) -Wl,-brtl

The -fpermissive flags is necessary for the X-includes used by foam for the Gstream lib.

Do I have to create an AIX64 directory inside wmake/rules and then create individual files called c, c++ etc. ?

I would appreciate any inputs. Also chas someone managed to compile and install the icoFoam solver on AIX?

msrinath80 July 27, 2006 00:54

Update: As Mattijs Janssens
 
Update:

As Mattijs Janssens has suggested in another post, I have solved this problem by wiping out AIX and installing Suse Linux 10.1 and recompiling OpenFOAM. If Anyone is interested in compiling instructions and/or the tarball of the entire OpenFOAM directory, drop me a line.

Please note that ParaFOAM and FoamX almost certainly don't work as I never bothered investing time into them. Parallel works though.

Hardware is an IBM pSeries 630 6E4
uname -M on AIX gives: IBM,7028-6E4


All times are GMT -4. The time now is 07:45.