install openfoam in fedora
please i use fedora 12 and i want to install openfoam for my first time.
how can i install it ? is fedora (bash or ksh) or (csh or csh) to install gcc-4.3.3 read me file told me to Install the compiler in: $WM_PROJECT_INST_DIR/ThirdParty/gcc-<GCC_VERSION>/platforms/$WM_ARCH$WM_COMPILER_ARCH/ and change the gcc version number in $WM_PROJECT_DIR/etc/settings.sh and $WM_PROJECT_DIR/etc/settings.csh appropriately and finally update the environment variables as in section 3. i don't understand this 1- what is $wm 2- where the compiler :) |
Hi Ahmed,
OpenFOAM can happily run on Fedora, no worries. Quote:
Code:
uname -m Then, make a directory called "OpenFOAM" in your home directory Code:
mkdir OpenFOAM Code:
tar xzf OpenFOAM-1.6.General.gtgz Now open up ".bashrc" in the home directory with Code:
gedit ~/.bashrc Code:
. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc Code:
. $HOME/.bashrc Code:
foamInstallationTest Quote:
Quote:
Code:
$WM_PROJECT_INST_DIR/ThirdParty/gcc-<GCC_VERSION>/platforms/$WM_ARCH$WM_COMPILER_ARCH/ Code:
~/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux64/ Code:
export WM_COMPILER_DIR=$WM_THIRD_PARTY_DIR/gcc-4.3.1/platforms/$WM_ARCH$WM_COMPILER_ARCH/gcc-4.3.1 Code:
gedit $WM_PROJECT_DIR/etc/settings.sh Quote:
Quote:
Quote:
Hope this helps you on your way a bit! |
Dear gwierink
Thank you very very much for your useful guides. one question is that i couldn't install on home dir because of permission denied error so i install it on home/user dir. is that make problem later? |
Hi maysmech,
You're very welcome, glad I could be of any help! Quote:
|
thanks
i install it and when doing 1st tutorial, writing paraFoam this message is seen. paraFoam -case $FOAM_RUN/tutorials/incompressible/icoFoam/cavity created temporary 'cavity.OpenFOAM' /home/maysam/OpenFOAM/ThirdParty-1.6/paraview-3.6.1/platforms/linux64Gcc/bin/paraview-real: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory i installed all 5 files in OpenFOAM website so why i cant see mesh at parafoam as written in tutorial pdf? |
Hmm, have a look at this thread and this thread. There people had the same/similar problem and soft linked libssl.so.9.8 by
Code:
ln -s /usr/lib64/libssl.so.0.9.8k /usr/lib64/libssl.so.0.9.8 Code:
ln -s /lib64/libssl.so.0.9.8b /lib64/libssl.so.0.9.8 |
i used readme of openfoam site http://www.openfoam.com/docs/README.php#README
now my error changes to: /home/maysam/OpenFOAM/OpenFOAM-1.6/bin/paraFoam: line 129: paraview: command not found |
Quote:
Code:
gedit $HOME/.bashrc & Code:
PATH= <path_to_paraview>:$PATH Code:
PATH=/home/gijsbert/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/bin:$PATH Code:
. $HOME/.bashrc |
thank you
really i thank you for your reply and being patient with me.
thank you :) |
No worries, glad to help, you're welcome :). I also started as a beginner ;).
|
i find directories to paraview directory but not more because not same as your format!
/home/maysmech/OpenFOAM/ThirdParty-1.6/ParaView3.6.1 |
:( i changed the .bashrc (gedit $HOME/.bashrc &) to
Quote:
Code:
[maysam@maysam cavity]$ . $HOME/.bashrc bash: gedit: No such file or directory :( |
Quote:
Code:
. $HOME/.bashrc |
typing gedit $HOME/.bashrc the editiable .bashrc doesn't open and output is
bash: gedit: No such file or directory i restart my system maybe it be solve but now i can not enter to fedora. i don't know what should i do. |
No gedit :eek:? Hmm, that's weird ... Let's try vi:
Code:
vi $HOME/.bashrc Code:
. $HOME/.bashrc |
my problems increase exponentially;)
after restarting fedora i can't log in (after typing password nothing happen) now i use windows i think i should re install fedora and OpenFOAM and ... i am worry this situation cause losing important data after doing some works on openfoam:confused: |
Ai, that's nasty :(. Sorry to hear that! If your linux patition is completely dead, maybe it's an idea to access the data using a Knoppix live CD (since Windows (probably) can't access the data). Burn a Knoppix Live CD, reboot, and under Knoppix copy your stuff to a USB stick. Good luck!
|
hi again
i reinstall fedora and OpenFOAM. typing paraFoam leads to previouse error. i read this http://www.openfoam.com/docs/README.php#README and my version of qt is 3.3.8b so i install a 35MB file that was there: ftp://ftp.trolltech.com/qt/source/qt...-4.3.5.tar.bz2 i put and execute that and after that now my version is still previous. what should i do?:( |
Hi,
After you have compiled Qt-4.3.5 successfully, you need to make the shell aware of it. This is done by adding the path to the (new) qmake executable to your .bashrc file. In my case the compiled qmake lives in /home/gijsbert/tmp/qt-x11-opensource-src-4.3.5/bin, so I add the following: Code:
PATH=/home/gijsbert/tmp/qt-x11-opensource-src-4.3.5/bin:$PATH Code:
. $HOME/.bashrc |
my problem was solved.:D
i update my Qt version by typing this command on terminal. Code:
su -c 'yum update qt' Now paraView works. thank you dear Gijsbert. |
All times are GMT -4. The time now is 13:57. |