|
[Sponsors] |
February 23, 2010, 18:07 |
install openfoam in fedora
|
#1 |
Senior Member
|
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 |
|
February 24, 2010, 06:47 |
|
#2 | ||||||
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
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!
__________________
Regards, Gijs |
|||||||
February 27, 2010, 04:23 |
|
#3 |
Senior Member
|
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? |
|
February 27, 2010, 09:55 |
|
#4 | |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Hi maysmech,
You're very welcome, glad I could be of any help! Quote:
__________________
Regards, Gijs |
||
February 27, 2010, 13:21 |
|
#5 |
Senior Member
|
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? Last edited by maysmech; February 27, 2010 at 15:58. |
|
February 27, 2010, 14:45 |
|
#6 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
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 ln -s /lib64/libcrypto.so.0.9.8b /lib64/libcrypto.so.0.9.8 ln -s /usr/lib64/elfutils/libebl_x86_64-0.125.so /lib64/libelf.so.0
__________________
Regards, Gijs |
|
February 27, 2010, 15:09 |
|
#7 |
Senior Member
|
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 Last edited by maysmech; February 27, 2010 at 15:57. |
|
February 27, 2010, 15:23 |
|
#8 | |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Quote:
Code:
gedit $HOME/.bashrc & Code:
PATH= <path_to_paraview>:$PATH export PATH Code:
PATH=/home/gijsbert/OpenFOAM/ThirdParty/ParaView3.3-cvs/platforms/linux64Gcc/bin:$PATH export PATH Code:
. $HOME/.bashrc
__________________
Regards, Gijs |
||
February 27, 2010, 15:29 |
|
#10 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
No worries, glad to help, you're welcome . I also started as a beginner .
__________________
Regards, Gijs |
|
February 27, 2010, 15:55 |
|
#12 | |
Senior Member
|
i changed the .bashrc (gedit $HOME/.bashrc &) to
Quote:
Code:
[maysam@maysam cavity]$ . $HOME/.bashrc bash: id: No such file or directory bash: id: No such file or directory bash: grep: No such file or directory bash: uname: command not found bash: cat: command not found /home/maysam/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: line 82: sed: command not found /home/maysam/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: line 82: sed: command not found /home/maysam/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: line 82: sed: No such file or directory /home/maysam/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: line 82: sed: No such file or directory /home/maysam/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: line 100: sed: command not found /home/maysam/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: line 100: sed: command not found bash: /home/maysam/OpenFOAM/ThirdParty-1.6/ParaView3.6.1-cvs/platforms/linux64Gcc/bin: No such file or directory bash: gedit: No such file or directory |
||
February 27, 2010, 15:59 |
|
#13 | |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
Quote:
Code:
. $HOME/.bashrc
__________________
Regards, Gijs |
||
February 27, 2010, 16:03 |
|
#14 |
Senior Member
|
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. Last edited by maysmech; February 27, 2010 at 16:21. |
|
February 27, 2010, 16:23 |
|
#15 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
No gedit ? Hmm, that's weird ... Let's try vi:
Code:
vi $HOME/.bashrc Code:
. $HOME/.bashrc
__________________
Regards, Gijs |
|
February 27, 2010, 16:31 |
|
#16 |
Senior Member
|
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 |
|
February 28, 2010, 01:42 |
|
#17 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
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!
__________________
Regards, Gijs |
|
February 28, 2010, 12:12 |
|
#18 |
Senior Member
|
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? |
|
March 1, 2010, 03:18 |
|
#19 |
Senior Member
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18 |
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 export PATH Code:
. $HOME/.bashrc
__________________
Regards, Gijs |
|
Tags |
fedora, install, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to Install OpenFOAM on 64 Ubuntu 9.04 | hansel | OpenFOAM Installation | 62 | March 19, 2010 15:43 |
install openfoam 1.6 on opensuse 11.0 | andresbh | OpenFOAM Installation | 8 | September 30, 2009 01:48 |
Installation of OpenFOAM on Fedora 11 | jits_aps90 | OpenFOAM Installation | 0 | August 20, 2009 03:23 |
OpenFOAM Install problem | masb | OpenFOAM | 3 | May 25, 2009 12:32 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |