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

Trouble with installation - Current directory is not $WM_PROJECT_DIR

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 21, 2012, 00:39
Arrow Trouble with installation - Current directory is not $WM_PROJECT_DIR
  #1
New Member
 
Aneet D Narendranath
Join Date: Jan 2012
Posts: 9
Rep Power: 5
dnaneet is on a distinguished road
I understand that this error has been posted before in these forums but none of the solutions seem to help me.

I am trying to install OpenFOAM-2.1.0 from source on Ubuntu 11.10 and am running into the following error all the time:

Code:
./Allwmake: 9: 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.
  • One of the problems I am encountering is that "echo $WM_RPOJECT_DIR" gives me NO output. What gives? How didn't I "install third party... correctly"
  • I am a newbie at linux so I'd appreciate it if your answers included some detail.


Thanks!
dnaneet is offline   Reply With Quote

Old   January 21, 2012, 14:59
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Annet and welcome to the forum!

Well, if you want detail, then read this blog post of mine: Advanced tips for working with the OpenFOAM shell environment

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   January 21, 2012, 15:04
Cool Solved!
  #3
New Member
 
Aneet D Narendranath
Join Date: Jan 2012
Posts: 9
Rep Power: 5
dnaneet is on a distinguished road
Dear Bruno Santos and other readers of this post,

I just about solved my problem

Here are the steps that I followed:

I resolved this issue by doing the following:

1) When trying to install/compile from source, make sure that you first tar xvf OpenFOAM-2.1.0.tgz into /home/-your-computer-user-name/OpenFOAM where the "OpenFOAM" is a folder that you create.

2)Make sure that you run all the installation steps in http://www.openfoam.org/download/source.php TO THE APOSTROPHE!!! That is very important.

3) Installation will take you about ~2hours or so to compile from source (give or take an hour based on your hardware.)

4)DO NOT install OpenFOAM-2.1.0 as root! This installs it in /opt and needs root to run it all the time.


Problem solved!
dnaneet is offline   Reply With Quote

Old   September 19, 2012, 07:12
Default About "$WM_PROJECT_DIR "
  #4
New Member
 
Hongmei Jiang
Join Date: Apr 2012
Posts: 2
Rep Power: 0
jiang_plum is on a distinguished road
Hello,dnaneet other readers of this post,
When I follow the steps of http://www.openfoam.org/download/source.php ,and go to "Building the sources" part, I use "echo $WM_PROJECT_DIR ",nothing returns.What's the problem and what should I do?

Please help me, thank youu very much!
jiang_plum is offline   Reply With Quote

Old   September 19, 2012, 17:03
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings jiang_plum and welcome to the forum!

You didn't mention which Linux distribution you're using, so I'll reply with what I've already written down... namely two tutorials on how to build OpenFOAM 2.1.1 from source:
These are very explicit on the steps one should take. Basically it tells every single command you need to run for things to install as intended

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   September 21, 2012, 04:02
Default Hello,Bruno,first
  #6
New Member
 
Hongmei Jiang
Join Date: Apr 2012
Posts: 2
Rep Power: 0
jiang_plum is on a distinguished road
Hello,Bruno

First of all ,thanks for your reply. I install openfoam in a ubuntu system. When I open my laptop this afternoon and redo the" ./allwmake', it is going now.
So my question is how long will it take to finsh ./allwmake?

Best regards!
jiang_plum is offline   Reply With Quote

Old   September 21, 2012, 04:24
Default
  #7
Member
 
Join Date: Mar 2012
Location: Munich, Germany
Posts: 67
Rep Power: 5
treima is on a distinguished road
Hello,

it can take some hours to finish the building process when you compile the things from source.

But for ubuntu systems, you can just install OpenFOAM as a deb-pack:
http://www.openfoam.org/download/ubuntu.php

It dosenīt take so much time and the installation is very easy


regards
treima
treima is offline   Reply With Quote

Reply

Tags
installation, installation of openfoam

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
1.7.x Environment Variables on Linux 10.04 rasma OpenFOAM Installation 9 July 30, 2010 04:43
OpenFoam install script Error during paraFoam installation SePe OpenFOAM Installation 10 June 19, 2010 15:15
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 10:50
Compiling OpenFOAM13 on AMD64 with Redhat Enterprise mbeaudoin OpenFOAM Installation 20 June 17, 2008 06:43


All times are GMT -4. The time now is 01:10.