|
[Sponsors] |
March 22, 2012, 17:38 |
|
#81 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Claudio,
Mmm... OK, let's take a few steps back. When you were following the instructions, was there anything you modified in the downloaded files? Or more specifically, did you change anything in OpenFOAM's "bashrc" file? Did you install a version of Open-MPI in your Debian system, or did your system come with one already? Or more specifically, is there any reason why you should use the system's MPI? You might also want to run the following command to check if a 64bit version of the MPI library exists: Code:
ls -l /usr/lib64/libmpi* Building the 32bit version of OpenFOAM is simple, just add to the end of the command line you added in "~/.bashrc" the following value: Code:
WM_ARCH_OPTION=32 Code:
source $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc WM_ARCH_OPTION=32 Best regards, Bruno
__________________
|
|
March 22, 2012, 18:09 |
|
#82 |
Member
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14 |
Ok.
In the OpenFOAM's "bashrc" file I modified just the mpi: #- MPI implementation: # WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI # | GAMMA | MPI | QSMPI #export WM_MPLIB=OPENMPI export WM_MPLIB=SYSTEMOPENMPI With the code ls -l /usr/lib64/libmpi* I obtain nothing (it doesn't exist). Now I changed the option #- Architecture: # WM_ARCH_OPTION = 32 | 64 export WM_ARCH_OPTION=32 directly in the OpenFOAM's "bashrc" file instead of in the command line like you suggested, and I launched the ./Allwmake... It seems to work (at least, I don't see error messages, like before...); for now I can see just some advise like warning: use of old-style cast that I don't know what does it mean! It is compiling, and I don't know how much time it needs. Anyway, probably the problem was because I installed a 32bit vers of Linux, even having a 64bit architecture on my CPU....if it at the end will complete correctly the installation!! I think I'll see some results only tomorrow. I hope I can confirm that everything it's ok!! I'll inform you tomorrow morning! Best regards, Claudio |
|
March 23, 2012, 04:16 |
|
#83 |
Member
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14 |
Good morning!
Finally, I think I installed OF!!! This is the result of foamInstallationTest: Executing ./foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: PC-Claudio OS: Linux version 2.6.32-5-amd64 ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/claudio87/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/claudio87/OpenFOAM/claudio87-2.1.0 no no $WM_THIRD_PARTY_DIR .../claudio87/OpenFOAM/ThirdParty-2.1.0 yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/claudio87/OpenFOAM/OpenFOAM-2.1.0 yes yes yes $FOAM_APPBIN ...AM-2.1.0/platforms/linuxGccDPOpt/bin yes yes yes $FOAM_SITE_APPBIN ...te/2.1.0/platforms/linuxGccDPOpt/bin no no $FOAM_USER_APPBIN ...87-2.1.0/platforms/linuxGccDPOpt/bin no no $WM_DIR ...udio87/OpenFOAM/OpenFOAM-2.1.0/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...AM-2.1.0/platforms/linuxGccDPOpt/lib yes yes yes $FOAM_SITE_LIBBIN ...te/2.1.0/platforms/linuxGccDPOpt/lib no no $FOAM_USER_LIBBIN ...87-2.1.0/platforms/linuxGccDPOpt/lib no no $MPI_ARCH_PATH /usr/lib/openmpi yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- flex 2.5.35 /usr/bin/flex gcc 4.4.5 /usr/bin/gcc gzip 1.3.12 /bin/gzip tar 1.23 /bin/tar icoFoam 2.1.0 ...OAM/OpenFOAM-2.1.0/platforms/linuxGccDPOpt/bin/icoFoam ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. Critical systems ok. Done Everything seems ok! I attached again the make.log, but I think it works! Thanks a lot, Bruno! Best regards, Claudio |
|
March 23, 2012, 09:28 |
|
#84 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Claudio,
Yep, no errors found. Best regards, Bruno
__________________
|
|
April 21, 2012, 12:00 |
|
#85 |
Member
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14 |
Hello again!
I'm really sorry, but it seems that I'm not so lucky with the installation of OF.... I had some problems with my pc and I had to reinstall Linux (Debian squeeze dist), and now I must do the same with OF. But I have new kind of problems. This is the beginning of my make.log file after ./Allwmake (where I think there is the error, because after this starts the ThirdParty Allwmake) : Code:
gcc -m64 -Wall -O3 -fPIC dirToString.c -o /home/claudio87/OpenFOAM/OpenFOAM-2.1.0/wmake/platforms/linux64Gcc/dirToString In file included from /usr/include/features.h:378, from /usr/include/stdio.h:28, from dirToString.c:43: /usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory make: *** [/home/claudio87/OpenFOAM/OpenFOAM-2.1.0/wmake/platforms/linux64Gcc/dirToString] Error 1 I have no idea about it! Here there's also the result of fomIstallationTest: Code:
claudio87@debian:~/OpenFOAM/OpenFOAM-2.1.0/bin$ ./foamInstallationTest Executing ./foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: debian OS: Linux version 2.6.32-5-amd64 ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/claudio87/OpenFOAM yes yes $WM_PROJECT_USER_DIR /home/claudio87/OpenFOAM/claudio87-2.1.0 no no $WM_THIRD_PARTY_DIR .../claudio87/OpenFOAM/ThirdParty-2.1.0 yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR /home/claudio87/OpenFOAM/OpenFOAM-2.1.0 yes yes yes $FOAM_APPBIN ...-2.1.0/platforms/linux64GccDPOpt/bin no yes $FOAM_SITE_APPBIN .../2.1.0/platforms/linux64GccDPOpt/bin no no $FOAM_USER_APPBIN ...-2.1.0/platforms/linux64GccDPOpt/bin no no $WM_DIR ...udio87/OpenFOAM/OpenFOAM-2.1.0/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...-2.1.0/platforms/linux64GccDPOpt/lib no yes $FOAM_SITE_LIBBIN .../2.1.0/platforms/linux64GccDPOpt/lib no no $FOAM_USER_LIBBIN ...-2.1.0/platforms/linux64GccDPOpt/lib no no $MPI_ARCH_PATH /usr/lib/openmpi yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- flex 2.5.35 /usr/bin/flex gcc 4.4.5 /usr/bin/gcc gzip 1.3.12 /bin/gzip tar 1.23 /bin/tar icoFoam WARNING: Conflicting installations: OpenFOAM settings : /home/claudio87/OpenFOAM/OpenFOAM-2.1.0/platforms/linux64GccDPOpt/bin/icoFoam current path : CRITICAL ERROR ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- Base configuration ok. The foam installation contains 1 critical error(s). Review the output for warning messages and consult the installation guide for troubleshooting. Done Please, If someone have the time (and the patience) to give a look, I'll be really grateful!! Best regards, Claudio |
|
April 21, 2012, 12:56 |
|
#86 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Claudio,
Did you install the packages mentioned for Ubuntu? Namely run this command: Quote:
Bruno
__________________
|
||
April 27, 2012, 06:32 |
|
#87 |
Member
Claudio
Join Date: Mar 2012
Location: Milano, Italy
Posts: 49
Rep Power: 14 |
Hi,
I'm sorry I didn't give you a feedbeck... Anyway, now it's everything working, thanks. I tried to reinstall all those packages (even if I did it yet), I restarted my pc, and then the installation worked correctly! In the end, I don't know which was exactly the problem, but now everything seems ok. Thank you again! Best regards, Claudio |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Critical errors during OpenFoam installation in OpenSuse 11.0 | amscosta | OpenFOAM | 5 | May 1, 2009 15:06 |
OpenFOAM 1.5 installation on OpenSUSE 11.0 | bigphil | OpenFOAM Installation | 16 | April 29, 2009 07:28 |
Problem installing OpenFOAM 1.5 installation on RHEL 4. | vwsj84 | OpenFOAM Installation | 4 | April 23, 2009 05:48 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |