CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   please help me! (https://www.cfd-online.com/Forums/openfoam-installation/100593-please-help-me.html)

adambarfi April 27, 2012 04:27

please help me!
 
hi,

anybody is here that explain me how can I install OpenFOAM on Linux Ubuntu? does it have a graphical environment or it just has coding environment?
I'm a beginner in openfoam and linux!
I have downloaded it with thirdparty-2.1.0 before.

thank a lot

romant April 27, 2012 05:41

Quote:

Originally Posted by adambarfi (Post 357408)
hi,

anybody is here that explain me how can I install OpenFOAM on Linux Ubuntu? does it have a graphical environment or it just has coding environment?
I'm a beginner in openfoam and linux!
I have downloaded it with thirdparty-2.1.0 before.

thank a lot

Please consider this link http://openfoamwiki.net/index.php/Ho..._Message_Board, read it and then post your questions accordingly. How OpenFOAM is installed on Ubuntu Linux is explained on the website http://www.openfoam.org/download/ubuntu.php, there you will also everything else you need to know about openfoam and how it works for starters. Additionally, read the last part of bruno's blog post http://www.cfd-online.com/Forums/blo...rty-tools.html and get familiar with the system.

adambarfi April 27, 2012 06:07

Quote:

Originally Posted by romant (Post 357436)
Please consider this link http://openfoamwiki.net/index.php/Ho..._Message_Board, read it and then post your questions accordingly. How OpenFOAM is installed on Ubuntu Linux is explained on the website http://www.openfoam.org/download/ubuntu.php, there you will also everything else you need to know about openfoam and how it works for starters. Additionally, read the last part of bruno's blog post http://www.cfd-online.com/Forums/blo...rty-tools.html and get familiar with the system.


thank you so much, I'll be back if I have questions.

adambarfi April 28, 2012 06:57

Quote:

Originally Posted by romant (Post 357436)
Please consider this link http://openfoamwiki.net/index.php/Ho..._Message_Board, read it and then post your questions accordingly. How OpenFOAM is installed on Ubuntu Linux is explained on the website http://www.openfoam.org/download/ubuntu.php, there you will also everything else you need to know about openfoam and how it works for starters. Additionally, read the last part of bruno's blog post http://www.cfd-online.com/Forums/blo...rty-tools.html and get familiar with the system.


hi,
When I want to install OpenFOAM-1.7.1 on OpenSUSE it says:
System management is locked by the application with pid 4511 (/usr/sbin/packagekitd).
Close this application before trying again.
What do I do, please?

wyldckat April 28, 2012 16:40

Greetings to all!

@Mostafa: did you search for this online? The first post I got was this: http://superuser.com/questions/83997...by-packagekitd

Basically all you needed to do was:
Code:

kill 4511
#or if you aren't in root mode
sudo kill 4511

Best regards,
Bruno

adambarfi April 28, 2012 23:28

Quote:

Originally Posted by wyldckat (Post 358223)
Greetings to all!

@Mostafa: did you search for this online? The first post I got was this: http://superuser.com/questions/83997...by-packagekitd

Basically all you needed to do was:
Code:

kill 4511
#or if you aren't in root mode
sudo kill 4511

Best regards,
Bruno


thank you Bruno
I'm a new user in linux!

adambarfi May 10, 2012 12:35

Quote:

Originally Posted by romant (Post 357436)
Please consider this link http://openfoamwiki.net/index.php/Ho..._Message_Board, read it and then post your questions accordingly. How OpenFOAM is installed on Ubuntu Linux is explained on the website http://www.openfoam.org/download/ubuntu.php, there you will also everything else you need to know about openfoam and how it works for starters. Additionally, read the last part of bruno's blog post http://www.cfd-online.com/Forums/blo...rty-tools.html and get familiar with the system.

when I want to install OpenFOAM-2.1.0 on Ubuntu it says:

mostafa@mostafa-desktop:~$ sudo apt-get install build-essential flex bison cmake zlib1g-dev qt4-dev-tools libqt4-dev gnuplot libreadline-dev libxt-dev
[sudo] password for mostafa:
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
flex is already the newest version.
bison is already the newest version.
Package cmake is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package cmake has no installation candidate


Is it OK!!!!!!!!!

wyldckat May 10, 2012 14:54

Hi Mostafa,

That's strange... what Ubuntu version do you have installed? Did you do any upgrade? Does your machine have internet connection?

Best regards,
Bruno

adambarfi May 11, 2012 00:45

Hi Wyldckat,
thank you for your reply.

CAELinux 2011
This release is built on an updated Ubuntu 10.04.3 LTS 64 bit base with a focus on the upgrade of the CAE softwares and the addition of tutorials & wizards to make your first steps easier.

I think I should use the previous version of OpenFOAM, such as 1.7.0.

romant May 11, 2012 02:35

Quote:

Originally Posted by adambarfi (Post 360461)
Hi Wyldckat,
thank you for your reply.

CAELinux 2011
This release is built on an updated Ubuntu 10.04.3 LTS 64 bit base with a focus on the upgrade of the CAE softwares and the addition of tutorials & wizards to make your first steps easier.

I think I should use the previous version of OpenFOAM, such as 1.7.0.

Looking at the CAElinux website, CAElinux 2011, comes with OpenFOAM 2.0.1, therefore you should even be able to install 2.0.1 without hassle from the sources if I understand this right.

On the live DVD that you get from CAElinux, Ubuntu 2.0.1 is already installed and when installing the liveDVD onto your hard disk you should have OpenFOAM available.

adambarfi May 11, 2012 02:44

Quote:

Originally Posted by romant (Post 360478)
Looking at the CAElinux website, CAElinux 2011, comes with OpenFOAM 2.0.1, therefore you should even be able to install 2.0.1 without hassle from the sources if I understand this right.

On the live DVD that you get from CAElinux, Ubuntu 2.0.1 is already installed and when installing the liveDVD onto your hard disk you should have OpenFOAM available.

thank you Roman,

It just has OpenFOAM Terminal !!!! what should I do?

romant May 11, 2012 02:47

OpenFOAM only runs in terminal, for graphical post processing you will have to use paraview, which is called from the terminal in your case directory by running paraFoam. I suggest you go to http://www.openfoam.org/docs/user/ and read the introduction as well as work through the first tutorials. This way you will get used to OpenFOAM, how it works and also learn a little bit about how to use linux.

adambarfi May 11, 2012 03:00

Quote:

Originally Posted by romant (Post 360481)
OpenFOAM only runs in terminal, for graphical post processing you will have to use paraview, which is called from the terminal in your case directory by running paraFoam. I suggest you go to http://www.openfoam.org/docs/user/ and read the introduction as well as work through the first tutorials. This way you will get used to OpenFOAM, how it works and also learn a little bit about how to use linux.

Dear Roman, thank you so much!!!

I'm a new user of Linux
I doubt that OpenFOAM, itself is really a terminal or not,

again thank you.

wyldckat May 11, 2012 06:19

Read this thread: http://www.cfd-online.com/Forums/ope...cae-linux.html

Meltedbrain August 25, 2012 14:31

Hello everyone,
i'm new in Linux and i'm trying to install OpenFOAM on Ubuntu. I'm following the instructions at this link http://www.openfoam.org/download/source.php , but i can't understand what i have to do at this point:
"Go to the top-level source directory $WM_PROJECT_DIR and execute the top-level build script ./Allwmake." in paragraph Building the Sources.
What am i supposed to do?
Please try to be the more "explainful" as you can!
Thank you

adambarfi August 25, 2012 14:58

Quote:

Originally Posted by Meltedbrain (Post 378690)
Hello everyone,
i'm new in Linux and i'm trying to install OpenFOAM on Ubuntu. I'm following the instructions at this link http://www.openfoam.org/download/source.php , but i can't understand what i have to do at this point:
"Go to the top-level source directory $WM_PROJECT_DIR and execute the top-level build script ./Allwmake." in paragraph Building the Sources.
What am i supposed to do?
Please try to be the more "explainful" as you can!
Thank you


Dear Manfredi,
just go to $WM_PROJECT_DIR and run ./Allwmake as below:
Code:

cd $WM_PROJECT_DIR
./Allwmake

it will make all the make folders in OF.

adambarfi August 25, 2012 15:01

Quote:

Originally Posted by wyldckat (Post 360551)

dear Bruno,
Thank you so much
Mostafa Mahmoudi

Meltedbrain August 25, 2012 17:30

Here is what i tried to do.... but looks like it did't work:

Code:

manfredi@manfredi-MacBookAir:~$ cd $WM_PROJECT_DIR
manfredi@manfredi-MacBookAir:~$ ./Allwmake
bash: ./Allwmake: File o directory non esistente
manfredi@manfredi-MacBookAir:~$ cd -
/home/manfredi
manfredi@manfredi-MacBookAir:~$ cd $WM_PROJECT_DIR
manfredi@manfredi-MacBookAir:~$ '/home/manfredi/OpenFOAM/OpenFOAM-2.1.1/Allwmake'
/home/manfredi/OpenFOAM/OpenFOAM-2.1.1/Allwmake: 4: /home/manfredi/OpenFOAM/OpenFOAM-2.1.1/Allwmake: wmakeCheckPwd: not found
Error: Current directory is not $WM_PROJECT_DIR
    The environment variables are inconsistent with the installation.
    Check the OpenFOAM entries in your dot-files and source them.
manfredi@manfredi-MacBookAir:~$

Maybe i missed something in the previews steps?
Is it correct to add line
Code:

                source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc
in $HOME/.bashrc file before it says
Code:

end-of-file
?
Thank you

P.s. "non esistente" means "do not exist"

adambarfi August 26, 2012 00:16

Quote:

Originally Posted by Meltedbrain (Post 378699)
Here is what i tried to do.... but looks like it did't work:

Code:

manfredi@manfredi-MacBookAir:~$ cd $WM_PROJECT_DIR
manfredi@manfredi-MacBookAir:~$ ./Allwmake
bash: ./Allwmake: File o directory non esistente
manfredi@manfredi-MacBookAir:~$ cd -
/home/manfredi
manfredi@manfredi-MacBookAir:~$ cd $WM_PROJECT_DIR
manfredi@manfredi-MacBookAir:~$ '/home/manfredi/OpenFOAM/OpenFOAM-2.1.1/Allwmake'
/home/manfredi/OpenFOAM/OpenFOAM-2.1.1/Allwmake: 4: /home/manfredi/OpenFOAM/OpenFOAM-2.1.1/Allwmake: wmakeCheckPwd: not found
Error: Current directory is not $WM_PROJECT_DIR
    The environment variables are inconsistent with the installation.
    Check the OpenFOAM entries in your dot-files and source them.
manfredi@manfredi-MacBookAir:~$

Maybe i missed something in the previews steps?
Is it correct to add line
Code:

                source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc
in $HOME/.bashrc file before it says
Code:

end-of-file
?
Thank you

P.s. "non esistente" means "do not exist"


Dear Manfredi,
I had such problem before, the problem is about environment variables, they aren't fixed correctly.
run 'echo $SHELL' to see whether the bash or ksh is running or tcsh or csh. then you should add the below code before end-of-file of bashrc or cshrc file, for example, in '$HOME/OpenFOAM/OpenFOAM-x.x.x/etc' directory.

Code:

source $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc
then according to http://www.openfoam.org/archive/2.1....oad/source.php resume the installing.
for more details see this link by Bruno:
Advanced tips for working with the OpenFOAM shell environment

wyldckat August 26, 2012 07:10

Greetings to all!

@Meltedbrain:
Quote:

Originally Posted by Meltedbrain (Post 378699)
Code:

manfredi@manfredi-MacBookAir:~$ cd $WM_PROJECT_DIR
manfredi@manfredi-MacBookAir:~$ ./Allwmake
bash: ./Allwmake: File o directory non esistente
manfredi@manfredi-MacBookAir:~$ cd -
/home/manfredi
manfredi@manfredi-MacBookAir:~$ cd $WM_PROJECT_DIR
manfredi@manfredi-MacBookAir:~$ '/home/manfredi/OpenFOAM/OpenFOAM-2.1.1/Allwmake'
/home/manfredi/OpenFOAM/OpenFOAM-2.1.1/Allwmake: 4: /home/manfredi/OpenFOAM/OpenFOAM-2.1.1/Allwmake: wmakeCheckPwd: not found
Error: Current directory is not $WM_PROJECT_DIR
    The environment variables are inconsistent with the installation.
    Check the OpenFOAM entries in your dot-files and source them.
manfredi@manfredi-MacBookAir:~$


If you want to build directly on Mac OS, follow these instructions: http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac

Best regards,
Bruno

Meltedbrain August 26, 2012 18:57

@Mostafa Mahmoudi

As you suggested the problem was in the environment variables setting. I put the line
Code:

                source $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc
in a file named bashrc instead of in file .bashrc.
By correcting and sourcing file .bashrc i solved my problem.
Thank you very much for your kind help.

@Bruno Santos

Thank you for suggestion, but i'd like to get used with Linux

adambarfi August 27, 2012 06:26

hey Manfredi,
your welcome, I'm happy that your problem fixed.

Mostafa Mahmoudi

skylersaucedo November 26, 2012 12:17

trouble locating $WM_PROJECT_DIR
 
I'm having the same trouble as Meltedbrain - When I run this in terminal:

source $HOME/.bashrc

$WM_PROJECT_DIR is not created -

echoing $WM_PROJECT_DIR returns a blank.

Am I missing something here? I don't think bashrc is creating the necessary file...

adambarfi November 26, 2012 12:46

Quote:

Originally Posted by skylersaucedo (Post 394247)
I'm having the same trouble as Meltedbrain - When I run this in terminal:

source $HOME/.bashrc

$WM_PROJECT_DIR is not created -

echoing $WM_PROJECT_DIR returns a blank.

Am I missing something here? I don't think bashrc is creating the necessary file...

dear skylersaucedo
see the http://www.cfd-online.com/Forums/blo...vironment.html link.

and after it see the below link:
http://www.cfd-online.com/Forums/ope...e-help-me.html

and then see the previous posts of this thread.

skylersaucedo November 26, 2012 18:01

Quote:

Originally Posted by adambarfi (Post 394257)
dear skylersaucedo
see the http://www.cfd-online.com/Forums/blo...vironment.html link.

and after it see the below link:
http://www.cfd-online.com/Forums/ope...e-help-me.html

and then see the previous posts of this thread.

Hi Adam,

Following the advice in 'advanced tips' didn't seem to help, since I don't have a working OF environment.

using echo, ls, cd on $WM_PROJECT_DIR returns nothing..

Perhaps I'm not compiling the bashrc file correctly?

Confused,

S

Lieven November 26, 2012 18:41

Does the line you added in the bashrc-file effectively refer to the OF installation dir?
e.g.
source /opt/openfoam211/etc/bashrc
will work only if openfoam is installed in /opt/openfoam211/


All times are GMT -4. The time now is 23:53.