CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

OpenFoam 1.7.1 on Fedora 12 Help...

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 16, 2010, 07:38
Question OpenFoam 1.7.1 on Fedora 12 Help...
  #1
New Member
 
Join Date: Nov 2010
Posts: 2
Rep Power: 0
Alphax is on a distinguished road
Hello everybody,

I have trouble installing OpenFoam 1.7.1 on Fedora 12 (my computer doesnt allow installation of Ubuntu). I followed all the steps in the sources link (http://www.openfoam.com/download/source.php) and when it comes to do ./Allwmake in ThirdParty-1.7.1 or in OpenFoam-1.7.1 I got :
Error: Current directory in not $WM_PROJECT_DIR/applications
The environment variable are not consistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.

My architecture is: ls Home/ Me/ OpenFoam/

ThirdParty-1.7.1 OpenFoam-1.7.1
It doesn't let me copy OpenFoam in Home/
Alphax is offline   Reply With Quote

Old   November 16, 2010, 18:42
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Alphax and welcome to the forum!

My guess is that you aren't respecting the case sensitivity of the folder names. For example, the base folder of OpenFOAM should be OpenFOAM, not OpenFoam. To be more exact, your base folder for OpenFOAM should be what is outputed by this command:
Code:
echo $HOME/OpenFOAM
Which should be exactly the same as what should be outputed by this command:
Code:
echo $WM_PROJECT_INST_DIR
Now, if you really want OpenFOAM in another directory, open the file
"OpenFOAM-1.7.1/etc/bashrc" and change the line 45 to your liking:
Code:
foamInstall=$HOME/$WM_PROJECT
For example, to:
Code:
foamInstall=$HOME/me/OpenFoam
Keep in mind that $HOME will expand into "/home/your_username".

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 22, 2010, 02:07
Default
  #3
New Member
 
Join Date: Nov 2010
Posts: 2
Rep Power: 0
Alphax is on a distinguished road
Hey,

I checked my spelling and I have OpenFOAM ( /home/me/OpenFOAM) as a base directory for OpenFOAM-1.7.1 and ThirdParty-1.7.1 . So as displyed below the second command does not output any path...
echo $HOME/OpenFOAM
/home/me/OpenFOAM
echo $WM_PROJECT_INST_DIR I donnot know what is going on. I change OpenFOAM-1.7.1/etc/bachrc line 45 to
foamInstall=$HOME/OpenFOAM
I tried ./Allwmake in OpenFOAM-1.7.1 and it outputs:

Error: Current directory is not $WM_PROJECT_DIR
The environment variable are not consistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.

I have the same error when trying to build (./Allwmake) in ThirdParty-1.7.1 :
./Allwmake: line 34: wmakeCheckPwd: command not found
Error: Current directory is not $WM_THIRD_PARTY_DIR
The environment variables are inconsistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.

And similarly, echo $WM_THIRD_PARTY_DIR output a blank path so I donnot know what is going on there. I did the system checks: g++ and flex, its installed.

I really look forward to managing to get OpenFOAM to run

Kind Regards,
Alphax is offline   Reply With Quote

Old   November 22, 2010, 03:14
Default
  #4
Senior Member
 
Balkrishna Patankar
Join Date: Mar 2009
Location: Pune
Posts: 123
Rep Power: 17
balkrishna is on a distinguished road
go to the terminal ..... and open the bashrc file .....
Code:
 gedit .bashrc
At the end of the file just add
Code:
. /home/me/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc
save the file . close the terminal . Now you should be ready to compile the source .
balkrishna is offline   Reply With Quote

Old   November 22, 2010, 03:17
Default
  #5
Senior Member
 
Balkrishna Patankar
Join Date: Mar 2009
Location: Pune
Posts: 123
Rep Power: 17
balkrishna is on a distinguished road
Note the space in :
Code:
. /home/me/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc
balkrishna is offline   Reply With Quote

Old   July 13, 2011, 04:42
Default
  #6
DFP
New Member
 
Frank
Join Date: Jul 2011
Posts: 1
Rep Power: 0
DFP is on a distinguished road
Hi Bruno and hi anyone else in this forum!

It seems that your are familiar with the installation of OpenFOAM. I have also a slight problem with the installation of OpenFOAM V1.7.1 on my MAC. Perhaps someone has an useful hint for me.
I have created a case sensitive disk image for the installation of OpenFOAM on my MAC, OpenFOAM is to find under
/Volumes/OpenFOAM/
I'm absolutely unsure what to put in line 45 in the etc/bashrc. I guess it is
foamInstall=/Volumes/OpenFOAM/$WM_PROJECT
but the terminal stops with the following line
"etc/bashrc" 335L, 9552C
Please, could somebody help me?

Frank
DFP is offline   Reply With Quote

Old   July 13, 2011, 16:50
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Frank and welcome to the forum!

I'm sorry, but you'll have to ask the people that have MACs Try asking on this thread: http://www.cfd-online.com/Forums/ope...mac-1-7-x.html

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 2, 2012, 15:33
Default
  #8
New Member
 
Benoit F
Join Date: Nov 2012
Posts: 1
Rep Power: 0
B2oka is on a distinguished road
Hello everyone,
just wanted to say:
I had the exact same problem as Alphax i.e. blank when typping $WP_PROJECT_DIR.
The problem for me was that my $HOME variable was not set up. It was /root.
I changed it to my /home/myname in a classical way, redid the make process and it went fine.
I use Linux Mint 12 (Ubuntu)
cheers
B2oka is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam 1.7.1 in Ubuntu 10.04 won't start working Leech OpenFOAM Installation 8 August 10, 2014 21:42
Installing OpenFOAM 1.7.1 on AIX 5.3 hrn OpenFOAM Installation 3 October 30, 2010 08:33
Compatibility OpenFOAM 1.6 and 1.7.1 Ale_galleria OpenFOAM 2 September 20, 2010 10:14
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 07:25
Installation of OpenFOAM on Fedora 11 jits_aps90 OpenFOAM Installation 0 August 20, 2009 03:23


All times are GMT -4. The time now is 05:18.