CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   AMD 64 bit installation (http://www.cfd-online.com/Forums/openfoam-installation/57264-amd-64-bit-installation.html)

maka August 26, 2005 15:47

There are two environment vari
 
There are two environment variables that point to wrong folder names after installation, which result in problems with either foamInstallation test or just running the FoamX since the test is not updated:

$JAVA_PATH
points to $HOME/OpenFOAM/linux/j2sdk1.4.2_05
while it should point to linuxAMD64 since this is the name for <platform>
$MICO_ARCH_PATH
-bash: $HOME/OpenFOAM/OpenFOAM-1.2/src/mico-2.3.11/platforms/linuxGcc4Opt
where it should point to linuxAMD64GccOpt

the last folder name convention (linuxGcc4Opt) is used correctly in the rest of environment variables, like:
$FOAM_LIBBIN
$FOAM_USER_LIBBIN
$LAM_ARCH_PATH

so why the unpacking added this AMD64 to the normal linuxGCC4Opt in one place but not all.

correcting such names by changing folder names, does not remove the 2 critical errors.

foamInstallationTest gives
2 critical error(s)

By the way I read the thread:
OpenFoam-Bugs: Typo in foamInstallationTest, version 1.2?
and the suggested modification does not solve the problem for 64 bit installation.

the result of the test is:
----------------------------------------------------------------
$JAVA_PATH ...mhussin/OpenFOAM/linux/j2sdk1.4.2_05 no no
$MICO_ARCH_PATH ...c/mico-2.3.11/platforms/linuxGcc4Opt no yes

gcc ...figure
WARNING: Conflicting installations:
foam settings: /home/mhussin/OpenFOAM/linux/gcc-4.0.1/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java 1.4.2-01
WARNING: Conflicting installations:
foam settings: /home/mhussin/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
current path : /opt/blackdown-jdk-1.4.2.01/bin/java

head: `-1' option is obsolete; use `-n 1' since this will be removed in the future
gzip 1.3.5 /bin/gzip
tar 1.3.5 /bin/tar
icoFoam *** not installed ***
CRITICAL ERROR
-----------------------------------------------------------------

Can any body help?

/Maka

maka August 26, 2005 16:14

problem solved. it is a techn
 
problem solved.
it is a technical problem, the 64 bit cluster has 32 bit processor on the file server so, I had to ssh to one of cluster processors to install.

it seem that it is good to check $processor before installing:
32 bit gives i686
64 bit gives x86_64

mss October 20, 2006 03:57

Dear Maka Mohu, I am tryin
 
Dear Maka Mohu,

I am trying to install OpenFOAM on my computer (Linux Suse 10.1) and I
have the same problems as you. Could you please give me some detailed
advise how to solve this problem?

the result of the test is:

-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.1.0
WARNING: Conflicting installations:
foam settings: /home/margst/OpenFOAM/linux/gcc-4.1.0-64/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java 1.4.2_11
WARNING: Conflicting installations:
foam settings: /home/margst/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
current path : /usr/bin/java

gzip 1.3.5 /usr/bin/gzip
tar 1.3.5 /bin/tar
icoFoam ...M/OpenFOAM-1.3/applications/bin/linuxGcc4DPOpt/icoFoam
-------------------------------------------------------------------------------

/Rita

maka October 20, 2006 05:19

What worked for me is: In t
 
What worked for me is:

In the following check the <platform> folder name.

- This is tried with OpenFOAM V1.2
- It happens that my 64 bit processors are AMD but if I understood right the following may work for you:

what is meant by plateform directory is:
"linux" for 32 bit
"linuxAMD64" for 64 bit

so:
- make a directory named OpenFOAM in your user folder.
- make another directory inside the later and name it, in 64 bit case, linuxAMD64,
- copy the following to OpenFOAM:
Source pack OpenFOAM-1.2.General.gtgz
binary pack OpenFOAM-1.2.linuxAMD64Gcc4Opt.gtgz
- unpack with tar xzf
- copy the rest of the files to linuxAMD64
- unpack with tar xzf
- modify .bashrc
- use the following command: export WM_64="on"
- you may check you environment vars by:
printenv|sort
- source from a 64 bit processor since processor type is automatically detected.
- After that it worked for me.

Good luck!

best regards,
Maka

hellorishi December 3, 2008 19:31

I'm trying to install OpenFOAM
 
I'm trying to install OpenFOAM-1.5 on AMD Opteron (64bit) machine with SuSE SLED 10.
Although the installation test says everything OK, I have problems when I try to build paraFoam.

error msg is:
File format not recognized.

Can somebody throw some light on the issue ?
is it some BIG endian issue?

Here are the error msg:
************************************************** *************************
the versions of diff installed programs are
************************************************** *************************
QMake version 2.01a
Using Qt version 4.3.2 in /usr/local/Trolltech/Qt-4.3.2/lib

cmake version 2.4-patch 6

gcc (GCC) 4.3.1
************************************************** *************************

buildParaView3.3-cvs

Building ParaView3.3-cvs
MPI support : OFF
Python support : OFF
MESA support : OFF
Source : /home/cfd2/OpenFOAM/ThirdParty/ParaView3.3-cvs
Target : /home/cfd2/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc
-- Check for working C compiler: /home/cfd2/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc
-- Check for working C compiler: /home/cfd2/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc -- broken
CMake Error: The C compiler "/home/cfd2/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/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory `/home/cfd2/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles/ CMakeTmp'
/home/cfd2/OpenFOAM/ThirdParty/cmake-2.4.6/platforms/linux64/bin/cmake -E cmake_progress_report /home/cfd2/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles/C MakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.o
/home/cfd2/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc -o CMakeFiles/cmTryCompileExec.dir/testCCompiler.o -c /home/cfd2/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles/C MakeTmp/testCCompiler.c
Linking C executable cmTryCompileExec
/home/cfd2/OpenFOAM/ThirdParty/cmake-2.4.6/platforms/linux64/bin/cmake -P CMakeFiles/cmTryCompileExec.dir/cmake_clean_target.cmake
/home/cfd2/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/gcc -fPIC "CMakeFiles/cmTryCompileExec.dir/testCCompiler.o" -o cmTryCompileExec -rdynamic
/home/cfd2/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../lib/gcc/x86_64 -unknown-linux-gnu/4.3.1/../../../../lib64/libgcc_s.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
gmake[1]: *** [cmTryCompileExec] Error 1
gmake[1]: Leaving directory `/home/cfd2/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/CMakeFiles/ CMakeTmp'
gmake: *** [cmTryCompileExec/fast] Error 2


CMake will not be able to correctly generate this project.
-- Configuring done
make: *** No targets specified and no makefile found. Stop.
done


************************************************** *************************
Compiling a simple helloworld.cpp to check gcc
************************************************** *************************
#include <iostream>
using namespace std;
int main()
{
cout << " Hello World http://www.cfd-online.com/OpenFOAM_D...part/happy.gif "<< endl;
return 0;
}
********************
gcc helloworld.cpp

/home/cfd2/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../lib/gcc/x86_64 -unknown-linux-gnu/4.3.1/../../../../lib64/libgcc_s.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
************************************************** *************************
ThirdParty > ./Allwmake
...
...
...
/home/cfd2/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/bin/../lib/gcc/x86_64 -unknown-linux-gnu/4.3.1/../../../../lib64/libstdc++.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make: *** [/home/cfd2/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/libMGridGen.so] Error 1

************************************************** *************************

danielle January 10, 2009 13:56

Hi, I use OpenFOAM 1.4.1 with
 
Hi,
I use OpenFOAM 1.4.1 with Open suse 11.

I have installed all the package Tcl/tk but paraFoam gives this error:
/home/danprlx/OpenFOAM/linux64/paraview-2.4.4/lib/paraview-2.4/paraview-real: error while loading shared libraries: libtk8.4.so: cannot open shared object file: No such file or directory
I need a help thanks

velan January 11, 2009 01:36

Hi Danielle, can you send
 
Hi Danielle,

can you send us the output of

locate libtk8.4.so ?

This error shows, that libtk8.4.so is not installed or path is not defined properly.

If locate doesnt shows any output, then you have to install libtk8.4.so,

If it shows the path, then try to export that path and rebuild it. It will work properly.

lin January 11, 2009 11:42

The reason is that you are try
 
The reason is that you are trying to use an old package file (libtk8.4.so) in a new OS(suse 11). You should install it.


All times are GMT -4. The time now is 17:39.