|
[Sponsors] |
OF 1.7 installation problem "command not found error" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 8, 2010, 07:59 |
OF 1.7 installation problem "command not found error"
|
#1 |
Senior Member
|
hello Foamers,
I've tried to install OF 1.7 on my Ubuntu 10.04 as has been described in http://www.cfd-online.com/Forums/ope...am-fedora.html i've edited .bashrc and have updated the shell. But now, i can't use OF because of "command not found" error when typing blockMesh, icoFoam and so on. What is the problem? Last edited by maysmech; July 8, 2010 at 20:49. |
|
July 8, 2010, 08:16 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings maysmech,
OK, lets "isolate and conquer":
Bruno
__________________
|
|
July 8, 2010, 09:45 |
|
#3 | |||
Senior Member
|
Dear Bruno
Thanks, Quote:
Code:
/home/maysam/OpenFOAM/OpenFOAM-1.7.0 Quote:
Quote:
Best regards, maysam |
||||
July 8, 2010, 13:31 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi maysam,
OK, apparently you seriously followed the wrong tutorial Any particular reason for building your own OpenFOAM 1.7.0, instead of using the pre-built one for Ubuntu? See here: http://www.openfoam.com/download/ubuntu.php If you really must build OpenFOAM for yourself, then you still need to install (at least) the following packages (in bold) in Ubuntu (this is the command line): Code:
sudo apt-get install flex build-essential g++ python-dev libqt4-dev libreadline5-dev zlib1g zlib1g-dev texinfo byacc bison Best regards, Bruno
__________________
|
|
July 8, 2010, 20:39 |
|
#5 | |
Senior Member
|
Quote:
Best. |
||
July 8, 2010, 20:51 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi maysmech,
Ooops, I missed one package: Code:
sudo apt-get install binutils-dev Best regards, Bruno
__________________
|
|
July 9, 2010, 16:41 |
|
#7 |
Senior Member
|
thank you very much for your effective helps. the problem has been solved. but by typing "paraFoam" and running paraview a window with "Open data with" appears and tells that a reader for the time files could not find and show readers to select like "LSDyna" "ParaviewDatafiles" and so on. but none of them can show results.
|
|
July 9, 2010, 16:59 |
|
#8 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi maysmech,
OK, two things:
Best regards, Bruno
__________________
|
||
July 9, 2010, 17:30 |
|
#9 |
Senior Member
|
i changed .OpenFOAM to .foam in the file you told (it has 3 of them). now by typing paraFoam, paraview opens and immediately closes.
Last edited by maysmech; July 9, 2010 at 21:35. |
|
July 11, 2010, 07:25 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi maysmech,
The file "OpenFOAM-1.7.0/etc/apps/paraview3/bashrc" is used to set the environment variables to point to the ParaView installation. Now, you have (at least) two options:
Bruno
__________________
|
|
July 11, 2010, 19:52 |
|
#13 |
Senior Member
|
i installed OF for Ubuntu easily by:
http://www.openfoam.com/download/ubuntu.php now i have proper paraview 3.8 and OF 1.7. But in the OpenFOAM folder Only run is available and there isn't any OF sources which can be changeable. Now, how can i make change in OF codes? |
|
July 12, 2010, 07:40 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi maysam,
OK, then the quickest way right now is to run this command: Code:
chown $USERNAME:$USERNAME -R /opt/openfoam170 But use this only if you really need to change the OpenFOAM's core! If you just want to build new solvers or run the tutorials, then run the commands shown near the end of the Ubuntu instructions page: Code:
mkdir -p $FOAM_RUN cp -r $FOAM_TUTORIALS $FOAM_RUN The variables "$FOAM_RUN", "$FOAM_USER_LIBBIN" and "$FOAM_USER_APPBIN" are the OpenFOAM's pre-defined paths to your cases, user libraries and user applications! Best regards, Bruno
__________________
Last edited by wyldckat; July 21, 2010 at 15:12. Reason: not "$FOAM_LIBBIN" and "$FOAM_APPBIN", it's "$FOAM_USER_LIBBIN" and "$FOAM_USER_APPBIN" |
|
July 21, 2010, 15:01 |
problems with user rights OF 1.7
|
#15 |
New Member
Claudia Hintringer
Join Date: May 2010
Posts: 10
Rep Power: 16 |
Hi Bruno,
I have another question. I'm a newbie in OF and linux and i worked up to now with the OF version 1.6. I tried to install openFOAM 1.7. It runs without problems (thanks for your help again) but then I tried to change a solver (chtMultiRegionSimpleFoam). That wasn't possible because OpenFoam was situated in the folder /opt/openfoam170 from root. First I tried to adapt a solver with the superuser rights but than it wasn't possible to execute the openFoam commands. Then I found your posting and tried to create the folder applications with cp -r $FOAM_APPBIN $FOAM_RUN. I got a folder called "linuxGccDPOpt" including files which i cant open, so I don't know if I have done this right. I thougt i get a folder which includes the folder structure from the /opt/openFoam/applications which includes also the folder solvers from which i could take one solver and adapt it. It would be very helpful for me if you could give me a hint how to get a possibility with OF 1.7 to create a new solver by adapting an existing solver. I tried also your quick way with the aim to change the ownership from the folder /opt/openfoam170 but if I achieve the command without superuser rights I get the Info "Operation not permitted" and with the superuser rights nothing happen. Maybe you could help me to solve this problem. Thanks! Best Regards, Claudia |
|
July 21, 2010, 15:27 |
|
#16 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Claudia,
Quote:
OK, what you are looking for is $FOAM_APP, or $FOAM_SOLVERS and $FOAM_UTILITIES. So, I believe you want to run: Code:
cp -r $FOAM_SOLVERS $WM_PROJECT_USER_DIR/solvers Code:
export | grep $USERNAME Code:
sudo chown -R $USERNAME:$USERNAME /opt/openfoam170 Code:
chown -R $USERNAME:$USERNAME $WM_PROJECT_USER_DIR/solvers Code:
EXE = $(FOAM_APPBIN)/chtMultiRegionFoam Code:
EXE = $(FOAM_USER_APPBIN)/chtMultiRegionFoam2 Bruno
__________________
|
||
July 21, 2010, 18:26 |
solver problems
|
#17 |
New Member
Claudia Hintringer
Join Date: May 2010
Posts: 10
Rep Power: 16 |
Hi Bruno,
thanks a lot!!! With your help i could copy the solvers and utilities folders in my home folder. First I tried to copy the chtMultiRegionSimpleFoam without changes in order to find out if the wmake command works. I changed the code in the Make/files and than I tried to carry out the wmake command in the terminal. First I thought it works but then I get an error. cannot open output file /opt/openfoam170/applications/bin/linuxGccDPOpt/mychtMultiRegionSimpleFoam Permission denied I tried to copy the folder bin like the others (solvers, utilities) with: cp -r $FOAM_BIN $WM_PROJECT_USER_DIR/bin but this doesn't works. I got a error: cp: missing destination file operand "cp --help" gives more information I tried cp --help but i have not really an idea. So I used the command sudo chown -R $USERNAME:$USERNAME /opt/openfoam170 After this I could achiev the command wmake. But now I have another Problem. I tried to run the tutorial chtMultiRegionSimpleFoam with my new solver mychtMultiRegionSimpleFoam (which up to now only has another name). I changed in the Allrun file the first line #!/bin/sh to #!/bin/bash and changed on line 37 the name to mychtMultiRegionSimpleFoam. Then I started the tutorial with ./Allrun - I got no error, and the folders bottomAir, heater and so on in the folder 0 were created but nothing else (with the original solver there were log.files created and files for the writeIntervals). When i delete in the Allrun skript at line 37 "runApplication" and then achiev ./Allrun the solver works - I could see the result in paraView but in OF there are no folders with the Information of Temperature for the Iterations. I have no idea what happens. Maybe you also now something about how to solve this problem. Thanks for your help! Best Regards, Claudia |
|
July 22, 2010, 07:20 |
|
#18 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Claudia,
Quote:
Code:
cp -r $FOAM_APPBIN $WM_PROJECT_USER_DIR/bin Code:
cp -r $WM_PROJECT_USER_DIR/bin As for your other problem, I've got a feeling you skipped a crucial step that I already wrote about in the previous post: Quote:
So be veeeery careful with the changes you do to the code, otherwise what looks OK is in fact wrong Best regards, Bruno
__________________
|
|||
October 6, 2010, 09:15 |
|
#19 | |
Senior Member
|
Quote:
Code:
user@user-laptop:~/OpenFOAM$ sudo apt-get install libreadline5-dev Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package libreadline5-dev |
||
October 6, 2010, 09:19 |
|
#20 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Maysam,
Quote:
Best regards, Bruno
__________________
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GAMBIT] Gambit Installation Serious Problem,,,,, | devesh.baghel | ANSYS Meshing & Geometry | 2 | February 22, 2010 08:29 |
Problem installing OpenFOAM 1.5 installation on RHEL 4. | vwsj84 | OpenFOAM Installation | 4 | April 23, 2009 05:48 |
Problem with Fortran installation. | skarp | CFX | 0 | August 4, 2007 08:09 |
installation problem | Dr C.Bhasker | Siemens | 1 | September 13, 2006 08:01 |
CFX 4.4 installation problem | Pandu Sattvika | CFX | 1 | December 1, 2001 05:07 |