|
[Sponsors] |
April 27, 2009, 15:59 |
Problem installing OF 1.5 on Ubuntu 9.05
|
#1 |
Member
Sylvain Martel
Join Date: Apr 2009
Location: University of Sherbrooke/Quebec/Canada
Posts: 51
Rep Power: 17 |
Hi,
I am a beginner in LINUX/OpenFOAM. I recently installed a dual boot (Xp, Ubuntu) on my computer. I want to install OpenFOAM 1.5 so I have download and unpack the files in home/cj9998/OpenFOAM directory since I cannot add folder in "home". I am stuck in the third point of the readme file (installation). Firstly, I run the foamSystemCheck script and all are OK! I run "echo $SHELL" and the result is : /bin/bash From this, I have to add the following line to the end of my $home/.bashrc file: $home/cj9998/OpenFOAM/OpenFOAM-1.5/etc/bashrc How can I do this? If I open bashrc with "gedit ~/.bashrc, the file open and I can add the previous line at the end. I am not sure that this manner is OK! After that, I have to update the environment variables by sourcing the $home/.bashrc file by typing in the terminal: ~/.bashrc The following result is obtained: bash: /home/cj9998/.bashrc: Permission denied Please, can you help me solving the problem? Last edited by smart; April 27, 2009 at 16:17. |
|
April 27, 2009, 17:14 |
|
#2 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
This is the correct line for your ~/.bashrc:
. $HOME/OpenFOAM/OpenFOAM-1.5.x/etc/bashrc Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
April 28, 2009, 17:07 |
capital letter or not?
|
#3 |
Member
Sylvain Martel
Join Date: Apr 2009
Location: University of Sherbrooke/Quebec/Canada
Posts: 51
Rep Power: 17 |
Thank you, but when I open a terminal, I get :
sylvain@Sylvain:~$ My OpenFOAM files are in: home/Sylvain/OpenFOAM/OpenFOAM-1.5/ HOME or home? And I cannot have permission when I type: .$home/.bashrc How I can have this permission to write the line at the end of the file? Thank you |
|
April 28, 2009, 19:33 |
|
#4 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Open a new terminal, type:
cd /home/Sylvain gedit .bashrc Add the following line at the end of the file: . $HOME/OpenFOAM/OpenFOAM-1.5.x/etc/bashrc Please, cut and paste it exactly and completely. There is a dot (.) followed by a space and then $HOME... Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
April 28, 2009, 21:03 |
permission denied!
|
#5 |
Member
Sylvain Martel
Join Date: Apr 2009
Location: University of Sherbrooke/Quebec/Canada
Posts: 51
Rep Power: 17 |
Thanks a lot but when I type:
.$HOME/.bashrc I get: bash: ./home/sylvain/.bashrc: no file or folderof this type if I try: .$sylvain/.bashrc I get: bash: ./.bashrc: Permission denied When I open a new terminal it is write: sylvain@Sylvain:~$ is it normal and OK? So I cannot source the environment variables! Thank a lot for your help. |
|
April 28, 2009, 21:57 |
|
#6 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Hi,
the procedure I told you didn't require these steps You should simply:
P.S. UNIX is case sensitive. Sylvain is not silvain in a path. Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
April 28, 2009, 22:12 |
Testing the installation!
|
#7 |
Member
Sylvain Martel
Join Date: Apr 2009
Location: University of Sherbrooke/Quebec/Canada
Posts: 51
Rep Power: 17 |
Thank you for your fast reply!
With your answer, OpenFOAM should be correctly installed. But when I check the installation setup by executing the "foamInstallationTest" script a fatal error occurs: sylvain@Sylvain:~/OpenFOAM/OpenFOAM-1.5/bin$ ./foamInstallationTest Executing ./foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- FATAL ERROR: OpenFOAM environment not configured. Please refer to the installation section of the README file: <OpenFOAM installation dir>/OpenFOAM-1.5/README to source the OpenFOAM environment. sylvain@Sylvain:~/OpenFOAM/OpenFOAM-1.5/bin$ How can I install the software correctly? Under windows, we need a executable file (".exe") to install a program. With Linux, what is the way? I would like to know what is the source of this error? Ubuntu? OpenFOAM installation? The fact that I am connected as user instead of root? Thank you to help me finding the solution. Have a good night! |
|
April 28, 2009, 22:18 |
|
#8 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
It is correct to be user and not root. So that's not the problem.
It seems that your local console (bash) configurations are not loaded from the configuration file you introduced in .bashrc. I am not familiar with ubuntu however, so I don't know its details. For detailed installation instructions of OpenFOAM please refer to its README file. Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
April 29, 2009, 04:08 |
|
#9 |
New Member
Join Date: Mar 2009
Posts: 20
Rep Power: 17 |
Hi smart,
I think you need to update the enviroment variables before you test the installation. Type the following:
/Xabi |
|
April 29, 2009, 09:49 |
unable to source environment variables!
|
#10 |
Member
Sylvain Martel
Join Date: Apr 2009
Location: University of Sherbrooke/Quebec/Canada
Posts: 51
Rep Power: 17 |
Thanks a lot Xabi but when I type:
.$HOME/.bashrc I get: bash: ./home/sylvain/.bashrc: no file or folderof this type if I try: .$sylvain/.bashrc I get: bash: ./.bashrc: Permission denied When I open a new terminal it is write: sylvain@Sylvain:~$ is it normal and OK? So I cannot source the environment variables! What have you done? What is your computer configuration and version of Ubuntu? |
|
April 29, 2009, 16:43 |
|
#11 |
New Member
tino boelke
Join Date: Mar 2009
Location: Berlin
Posts: 10
Rep Power: 17 |
You have to type:
. $HOME/.bashrc with space after the Dot, or just open a new terminal or a new tab in the terminal you are right now (the bashrc is executed in every terminal after opening). Everyone of these operations will load the commands from this file. |
|
June 29, 2009, 16:32 |
I succeed!
|
#12 |
Member
Sylvain Martel
Join Date: Apr 2009
Location: University of Sherbrooke/Quebec/Canada
Posts: 51
Rep Power: 17 |
Hi all,
I finaly get the OpenFOAM-1.5-dev running perfectly. I changed my linux system to Ubuntu 8.04. I experienced problems with paraFoam and paraview under ubuntu 9.04. I solved the problem by installing paraview 3.4.0 instead of 3.3-cvs. For this, I changed some file (buildParaView3.3-cvs, in OpenFOAM-1.5-dev/bin and in OpenFOAM-1.5-dev/bin/tools and the bashrc in OpenFOAM-1.5-dev/etc/apps to point to the ParaView-3.4.0 folder (OpenFOAM/ThirdParty/ParaView-3.4.0). I think it should be OK too with the ubuntu 9.04 in which the qmake version 4.3.5 should be installed. Thank to all! |
|
June 30, 2009, 19:08 |
Problems installing OpenFoam on ubuntu 9.04
|
#13 |
Member
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17 |
/usr/bin/ld: cannot find -lconversion
collect2: ld returned 1 exit status make[3]: *** [/home/ramesh/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/star4ToFoam] Error 1 make[2]: *** [star4ToFoam] Error 2 /usr/bin/ld: cannot find -lfiniteVolume collect2: ld returned 1 exit status make[3]: *** [/home/ramesh/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/foamMeshToFluent] Error 1 make[2]: *** [foamMeshToFluent] Error 2 /usr/bin/ld: cannot find -lmeshTools collect2: ld returned 1 exit status make[3]: *** [/home/ramesh/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/polyDualMesh] Error 1 make[2]: *** [polyDualMesh] Error 2 make[2]: Target `application' not remade because of errors. make[1]: *** [conversion] Error 2 make[1]: Target `application' not remade because of errors. make: *** [mesh] Error 2 In file included from chemkinToFoam.C:31: /home/ramesh/OpenFOAM/OpenFOAM-1.5/src/thermophysicalModels/combustion/lnInclude/chemkinReader.H:50:23: error: FlexLexer.h: No such file or directory In file included from chemkinToFoam.C:31: /home/ramesh/OpenFOAM/OpenFOAM-1.5/src/thermophysicalModels/combustion/lnInclude/chemkinReader.H:65: error: expected class-name before ‘{’ token make[2]: *** [Make/linuxGccDPOpt/chemkinToFoam.o] Error 1 make[2]: Target `/home/ramesh/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/chemkinToFoam' not remade because of errors. make[1]: *** [chemkinToFoam] Error 2 make[1]: Target `application' not remade because of errors. make: *** [thermophysical] Error 2 make: Target `application' not remade because of errors. + [ = doc ] Please let me know how can I fix it. Thanks |
|
July 1, 2009, 13:49 |
|
#14 | |
New Member
Edgardo
Join Date: Jul 2009
Posts: 1
Rep Power: 0 |
Quote:
|
||
July 1, 2009, 15:12 |
|
#15 |
Member
Ramesh Yapalparvi
Join Date: Jun 2009
Posts: 53
Rep Power: 17 |
||
July 20, 2009, 08:52 |
|
#16 |
New Member
Kavin
Join Date: Jul 2009
Posts: 1
Rep Power: 0 |
I have similar problem the output of ./foamInstallationTest is
FATAL ERROR: No remote shell available. OpenFOAM 1.5 enviroment requires either ssh and/or rsh. Contact your system administrator. ------------------------------------------------------------------------------- The system test has evoked 1 fatal error(s). The foam installation contains 2 critical error(s). |
|
July 20, 2009, 10:30 |
|
#17 |
Member
Sylvain Martel
Join Date: Apr 2009
Location: University of Sherbrooke/Quebec/Canada
Posts: 51
Rep Power: 17 |
This is a fatal error only if you want to use parallel computing. Otherwise, don't mind about this message. If you want to use this option, you will able to fix this issue latter by installing ssh or rsh.
|
|
August 9, 2009, 02:22 |
|
#18 |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
Hi, Ramesh, I recompile the OpenFoam-1.6, and just meet the same errors like yours:
/usr/bin/ld: cannot find -lconversion /usr/bin/ld: cannot find -lfiniteVolume /usr/bin/ld: cannot find -lmeshTools Would you like to share your experiences fixing this problem with me? Thank you in advance. Best regards, Chiven |
|
August 10, 2009, 20:12 |
|
#19 |
Senior Member
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17 |
The thirdParty software is installed, problems is over.
Good luck. Chiven |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 07:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |
problem about installing FOAM | linux freshman | Main CFD Forum | 6 | November 4, 2004 11:59 |
extremely simple problem... can you solve it properly? | Mikhail | Main CFD Forum | 40 | September 9, 1999 10:11 |
Is this problem well posed? | Thomas P. Abraham | Main CFD Forum | 5 | September 8, 1999 15:52 |