|
[Sponsors] |
July 9, 2011, 15:12 |
|
#41 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Indeed, I'm stumped as well here. I just ran with the latest OpenFOAM-1.7.x and ThirdParty-1.7.x, both from the git repository on an old Ubuntu 8.04 64 bit inside a virtual machine and there were no problems! It uses by default flex 2.5.34!
By the way, the "git clone" I had posted a while back, namely post #22, was pointing to the OpenFOAM repo when it should have been pointed as now it is, to ThirdParty-1.7.x: Code:
git clone git://github.com/OpenCFD/ThirdParty-2.0.x.git
Best regards and good luck! Bruno
__________________
|
|
July 13, 2011, 08:37 |
|
#42 |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
Dear Bruno.
I did the steps that you suggested now 3 or 4 times, always starting from the beginning. Nevertheless the compilation failed. HTML Code:
/usr/bin/ld: cannot find -lEulerianInterfacialModels collect2: ld gab 1 als Ende-Status zurück make[2]: *** [/home/lincke/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64Gcc45DPOpt/bin/twoPhaseEulerFoam] Fehler 1 make[1]: *** [twoPhaseEulerFoam] Fehler 2 make[1]: Das Target »application« wurde wegen Fehlern nicht aktualisiert. make: *** [multiphase] Fehler 2 make: Das Target »application« wurde wegen Fehlern nicht aktualisiert. |
|
July 13, 2011, 16:41 |
|
#43 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Anne,
Hold on... I think with all of going back and forth, the system's gcc got in the way! Check which gcc and g++ is visible: Code:
which gcc which g++ gcc -v g++ -v Quote:
Code:
alias of20x-linux64='. $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc foamCompiler=ThirdParty WM_COMPILER=Gcc45' Code:
foamCompiler=ThirdParty WM_COMPILER=Gcc45 Code:
alias of20x-linux64='. $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc' Code:
foam wcleanAll wcleanLnIncludeAll ./Allwmake > make.log 2>&1 Best regards and good luck! Bruno
__________________
|
||
July 14, 2011, 05:02 |
|
#44 |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
Good morning Bruno!
I checked for the gcc, and found out that the right gcc - version was already visible. HTML Code:
lincke@master:~/OpenFOAM/OpenFOAM-2.0.x> which gcc /home/lincke/OpenFOAM/ThirdParty-2.0.x/platforms/linux64/gcc-4.5.1/bin/gcc lincke@master:~/OpenFOAM/OpenFOAM-2.0.x> which g++ /home/lincke/OpenFOAM/ThirdParty-2.0.x/platforms/linux64/gcc-4.5.1/bin/g++ lincke@master:~/OpenFOAM/OpenFOAM-2.0.x> gcc -v Es werden eingebaute Spezifikationen verwendet. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/home/lincke/OpenFOAM/ThirdParty-2.0.x/platforms/linux64/gcc-4.5.1/libexec/gcc/x86_64-unknown-linux-gnu/4.5.1/lto-wrapper Ziel: x86_64-unknown-linux-gnu Konfiguriert mit: /home/lincke/OpenFOAM/ThirdParty-2.0.x/gcc-4.5.1/configure --prefix=/home/lincke/OpenFOAM/ThirdParty-2.0.x/platforms/linux64/gcc-4.5.1 --with-gmp=/home/lincke/OpenFOAM/ThirdParty-2.0.x/platforms/linux64/gmp-5.0.1 --with-mpfr=/home/lincke/OpenFOAM/ThirdParty-2.0.x/platforms/linux64/mpfr-2.4.2 --with-mpc=/home/lincke/OpenFOAM/ThirdParty-2.0.x/platforms/linux64/mpc-0.8.1 --with-pkgversion=OpenFOAM --enable-languages=c,c++ --enable-__cxa_atexit --enable-libstdcxx-allocator=new --with-system-zlib Thread-Modell: posix gcc-Version 4.5.1 (OpenFOAM) lincke@master:~/OpenFOAM/OpenFOAM-2.0.x> g++ -v Es werden eingebaute Spezifikationen verwendet. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/home/lincke/OpenFOAM/ThirdParty-2.0.x/platforms/linux64/gcc-4.5.1/libexec/gcc/x86_64-unknown-linux-gnu/4.5.1/lto-wrapper Ziel: x86_64-unknown-linux-gnu Konfiguriert mit: /home/lincke/OpenFOAM/ThirdParty-2.0.x/gcc-4.5.1/configure --prefix=/home/lincke/OpenFOAM/ThirdParty-2.0.x/platforms/linux64/gcc-4.5.1 --with-gmp=/home/lincke/OpenFOAM/ThirdParty-2.0.x/platforms/linux64/gmp-5.0.1 --with-mpfr=/home/lincke/OpenFOAM/ThirdParty-2.0.x/platforms/linux64/mpfr-2.4.2 --with-mpc=/home/lincke/OpenFOAM/ThirdParty-2.0.x/platforms/linux64/mpc-0.8.1 --with-pkgversion=OpenFOAM --enable-languages=c,c++ --enable-__cxa_atexit --enable-libstdcxx-allocator=new --with-system-zlib Thread-Modell: posix gcc-Version 4.5.1 (OpenFOAM) The output is attached once again.... Thank you very much for your help. I wish you a nice day! Regards Anne |
|
July 14, 2011, 06:05 |
|
#45 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Good morning Anne,
that flex is sure being uncooperative It's the only problem in the whole installation process!! You're going to have to either demand the latest flex 2.5.35, or install it yourself from here onto your workspace. You can download it from here: http://flex.sourceforge.net/ Building flex should be simple enough: Code:
./configure --prefix=/home/lincke/OpenFOAM/ThirdParty-2.0.x/platforms/linux64/gcc-4.5.1/ make make install Then try running Allwmake straight away. If it still won't work, try cleaning up again... If after that it still won't work... it's going to have to be some other crazy problem Best regards, Bruno
__________________
|
|
July 14, 2011, 12:17 |
|
#46 |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
I installed the latest flex version, and now everything is fine. It compiled for hours and there was no error (as far as I can see)!! I can't believe it. For the future I definitely learned that I should always check for gcc and flex. THANK YOU VERY MUCH!!! |
|
July 25, 2011, 06:19 |
|
#47 |
New Member
Join Date: Jul 2011
Posts: 6
Rep Power: 15 |
Hi there,
I'm also trying to install OpenFOAM 2.0.x on my computer (clean OpenSUSE 11.4 installation). When checking the installation with foamInstallationTest I get: PHP Code:
Kind regards Homer |
|
July 25, 2011, 06:54 |
|
#48 |
Senior Member
Aurelien Thinat
Join Date: Jul 2010
Posts: 165
Rep Power: 16 |
Hi everybody,
I'm trying to install paraFoam (OF-2.0.0). The OS is an OpenSuse11.2 64 bits. I have put the librairies qt-everywhere-opensource-src-4.6.4 and gmp-5.0.1 in the ThirdParty-2.0.0 folder. Then I have compiled both creating a folder "./build/linux64Gcc". Finally, I have modified the path of the qmake in the makeParaFoam file and launched the compilation. There was no error message but when I try to launch paraFoam (or paraview) after sourcing OF-2.0.0, I get : "/home/trap/OpenFOAM/ThirdParty-2.0.0/platforms/linux64Gcc/paraview-3.10.1/lib/paraview-3.10.1/paraview: symbol look up error: /home/trap/OpenFOAM/ThirdParty-2.0.0/platforms/linux64Gcc/paraview-3.10.1/lib/paraview-3.10.1/lib/paraview-3.10/libpqWidgets.so: undefined symbol: _ZNK16QAbstractSpinBox16inputMethodQueryEN2Qt16Inp utMethodQueryE" I don't understand the meaning of this error. I tried to find the .so file mentionned but unsuccessfully. All I found was paraFoam .rpm files... Does anyone of you have an idea to solve this problem ? Thank you. Aurelien Last edited by Aurelien Thinat; July 25, 2011 at 07:35. |
|
July 25, 2011, 07:47 |
|
#49 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
OK, I'm going to post in a two for one...
______________ Greetings Homer and welcome to the forum! Try following these instructions: OpenFOAM 2.0.x and openSUSE 11.4 ______________ Hi Aurelien, Unfortunately I haven't yet built ParaView 3.10.1 in OpenFOAM 2.0. The only clues I can provide right now are these:
Best regards, Bruno
__________________
Last edited by wyldckat; July 26, 2011 at 04:34. Reason: by reading half asleep, I confused Aurelien with Anne... Sorry Aurelien! |
|
July 25, 2011, 12:47 |
|
#50 | |
New Member
Join Date: Jul 2011
Posts: 6
Rep Power: 15 |
Quote:
Code:
Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: dhcppc3 OS: Linux version 2.6.37.1-1.2-desktop ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /home/simulation/OpenFOAM yes yes $WM_PROJECT_USER_DIR ...simulation/OpenFOAM/simulation-2.0.x no no $WM_THIRD_PARTY_DIR ...simulation/OpenFOAM/ThirdParty-2.0.x 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/simulation/OpenFOAM/OpenFOAM-2.0.x yes yes yes $FOAM_APPBIN ....0.x/platforms/linux64Gcc45DPOpt/bin no yes $FOAM_SITE_APPBIN ....0.x/platforms/linux64Gcc45DPOpt/bin no no $FOAM_USER_APPBIN ....0.x/platforms/linux64Gcc45DPOpt/bin no no $WM_DIR ...lation/OpenFOAM/OpenFOAM-2.0.x/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 ....0.x/platforms/linux64Gcc45DPOpt/lib no yes $FOAM_SITE_LIBBIN ....0.x/platforms/linux64Gcc45DPOpt/lib no no $FOAM_USER_LIBBIN ....0.x/platforms/linux64Gcc45DPOpt/lib no no $MPI_ARCH_PATH /usr/lib64/mpi/gcc/openmpi yes no yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- flex 2.5.35 /usr/bin/flex gcc 4.5.1 /usr/bin/gcc gzip 1.4 /usr/bin/gzip tar 1.25 /bin/tar icoFoam WARNING: Conflicting installations: OpenFOAM settings : /home/simulation/OpenFOAM/OpenFOAM-2.0.x/platforms/linux64Gcc45DPOpt/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 simulation@dhcppc3:~/OpenFOAM/OpenFOAM-2.0.x/bin> |
||
July 25, 2011, 20:44 |
|
#51 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
@Anne: I haven't had time to fully verify these instructions: http://www.cfd-online.com/Forums/blo...-qt-4-6-4.html
At the time of writing this post, ParaView was still building edit: OK, it's now somewhat confirmed that the instructions work, after I made some changes to them. Keep in mind that for now they only work with bash; csh is going to have to wait... @Homer: What do you have at the end of the file "~/.bashrc"? Is it something like this : Code:
source $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc Best regards, Bruno
__________________
Last edited by wyldckat; July 25, 2011 at 21:39. Reason: see "edit:" |
|
July 26, 2011, 04:03 |
|
#52 |
New Member
Join Date: Jul 2011
Posts: 6
Rep Power: 15 |
My bash-File is:
Code:
# Sample .bashrc for SuSE Linux # Copyright (c) SuSE GmbH Nuernberg # There are 3 different types of shells in bash: the login shell, normal shell # and interactive shell. Login shells read ~/.profile and interactive shells # read ~/.bashrc; in our setup, /etc/profile sources ~/.bashrc - thus all # settings made here will also take effect in a login shell. # # NOTE: It is recommended to make language settings in ~/.profile rather than # here, since multilingual X sessions would not work properly if LANG is over- # ridden in every subshell. # Some applications read the EDITOR variable to determine your favourite text # editor. So uncomment the line below and enter the editor of your choice :-) #export EDITOR=/usr/bin/vim #export EDITOR=/usr/bin/mcedit # For some news readers it makes sense to specify the NEWSSERVER variable here #export NEWSSERVER=your.news.server # If you want to use a Palm device with Linux, uncomment the two lines below. # For some (older) Palm Pilots, you might need to set a lower baud rate # e.g. 57600 or 38400; lowest is 9600 (very slow!) # #export PILOTPORT=/dev/pilot #export PILOTRATE=115200 #.$HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc #$HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc test -s ~/.alias && . ~/.alias || true #. /opt/openfoam171/etc/bashrc export WM_NCOMPPROCS=2 source $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc |
|
July 26, 2011, 04:08 |
|
#53 |
New Member
Join Date: Jul 2011
Posts: 6
Rep Power: 15 |
I also saved the makelog-File. Maybe this helps?
|
|
July 26, 2011, 04:43 |
|
#54 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Homer,
Good thing you posted the log file. Apparently OpenMPI isn't being seen by OpenFOAM's build system. Did you install all of the necessary packages for OpenMPI? Best regards, Bruno
__________________
|
|
July 26, 2011, 06:06 |
|
#55 |
New Member
Join Date: Jul 2011
Posts: 6
Rep Power: 15 |
Hi Bruno,
as I am no Linux-Specialist, I'm sometimes not sure, if I do it right. But I followed precisely the ToDo here: http://albertopassalacqua.com/?p=973 But I checked it once again: Code:
simulation@dhcppc3:~/OpenFOAM/OpenFOAM-2.0.x> sudo zypper install openmpi Daten des Repositorys laden ... Installierte Pakete lesen ... 'openmpi' ist bereits installiert. No update candidate for 'openmpi-1.2.8-17.4.x86_64'. The highest available version is already installed. Paketabhängigkeiten auflösen ... Keine auszuführenden Aktionen. simulation@dhcppc3:~/OpenFOAM/OpenFOAM-2.0.x> mpi-selector --list openmpi-1.2.8 simulation@dhcppc3:~/OpenFOAM/OpenFOAM-2.0.x> |
|
July 26, 2011, 17:55 |
|
#56 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Homer,
Well this is a bit surreal... I usually fix these kinds of things by starting a new terminal. In this case, we have actually have to log out and log back in!! I only figured this out after reading this post at forums.opensuse.org: http://forums.opensuse.org/english/o...ml#post1977744 But before that, I already had used the command mpi-selector-menu as root to set it as "system wide" and then as "user based", with no change in the outcome. Logging out and logging back in fixed the missing link... ---- Now where's my shotgun... I've gotta blow a hole or two on a certain Linux distro... (walks out the door raging mad with a shotgun...) (Now looking at openSUSE) What's the big idea of acting like Windows? (Bam Bam...) Did you learn your lesson now? Y'ain't no stinking Windows, now ar'ya? ---- Anyway, interlude aside... Another package you are going to need is openmpi-devel. This provides the much needed mpi.h file and respective company . I hope this will fix the problem Best regards, Bruno
__________________
Last edited by wyldckat; July 26, 2011 at 17:56. Reason: typos... |
|
July 27, 2011, 05:02 |
|
#57 |
New Member
Join Date: Jul 2011
Posts: 6
Rep Power: 15 |
Yes, it did the trick! I installed openmpi-devel and foamInstallationTest shows now:
Code:
Summary ------------------------------------------------------------------------------- Base configuration ok. Critical systems ok. Thank you very much for your assistance. Kind regards Homer |
|
August 6, 2011, 16:32 |
Revised HowTo online
|
#58 |
Senior Member
|
Dear Foamers,
somewhere up this thread (Post #25) I posted a HowTo on installing OF2 on SLC 5.6. A slightly more extensive Howto by now is available at http://cern.ch/blinseis in the section about OpenFOAM. In case anybody else tried it (and succeeded), could you please send me a message, particularly stating on what version you built? I would like to know, how far down-gradable that HowTo would be, but I don't have any experience concerning virtual machines and setting up older systems within them, so trials would mean completely setting up a new system for me... |
|
August 23, 2011, 06:32 |
hii brunosir,
|
#59 |
Member
|
plz tel me installation about openfoam2.0.0
i m new user of openfoam Actually i install openfoam2.0.0 ubuntu pack on my ubuntu11.04. i started to solved the tutorials. but plz tel me after installing the openfoam ubuntu pack is it require to install any source pack? and also tel me is it necessary to install git repository? because when i install it i found error like apt-get install git-core E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? so plz solve my problem i m waiting for ur reply |
|
August 23, 2011, 06:37 |
|
#60 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings jignesh_thaker2007,
Quote:
Quote:
Code:
sudo apt-get install git-core Bruno
__________________
|
|||
|
|
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 |