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

Rules dirs missing and Allwmake not found

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2010, 19:17
Default Rules dirs missing and Allwmake not found
  #1
New Member
 
Miguel
Join Date: Jan 2010
Posts: 12
Rep Power: 16
mfiandor is on a distinguished road
Hi all, i'm trying to install OpenFOAM 1.6 in my ubuntu 9.10, but I fetch the following error when i try to execute ./Allwmake

Quote:
migui@ubuntu-laptop:~/OpenFOAM/OpenFOAM-1.6$ sudo ./Allwmake
+ cd wmake/src
+ make
Makefile:55: /rules//general: No such file or directory
Makefile:56: /rules: No such file or directory
make: *** No rule to make target `/rules'. Stop.
+ cd
+ ./Allwmake
./Allwmake: 1: ./Allwmake: not found
+ src/Allwmake
+ wmakePrintBuild -check
src/Allwmake: 1: wmakePrintBuild: not found
+ /bin/rm -f OpenFOAM/Make//global.?
+ wmakeLnInclude OpenFOAM
src/Allwmake: 1: wmakeLnInclude: not found
+ wmakeLnInclude OSspecific/
src/Allwmake: 1: wmakeLnInclude: not found

And if I execute the script 'foamInstallationTest', I get this:

Quote:
migui@ubuntu-laptop:~/OpenFOAM/OpenFOAM-1.6/bin$ sudo ./foamInstallationTest
Executing ./foamInstallationTest:
Checking basic setup...
-------------------------------------------------------------------------------

FATAL ERROR: OpenFOAM environment not configured.
I have no idea how to solve this.
mfiandor is offline   Reply With Quote

Old   January 21, 2010, 02:59
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
1st: If you post coding examples and/or shell output, it might be useful to wrap it as code (the '#' editor button) rather than as a quote, which seems to disappear when I replied to your message. This may be a bug in the forum software, I'm not sure.

Quote:
Originally Posted by mfiandor View Post
Hi all, i'm trying to install OpenFOAM 1.6 in my ubuntu 9.10, but I fetch the following error when i try to execute ./Allwmake
Code:
migui@ubuntu-laptop:~/OpenFOAM/OpenFOAM-1.6$ sudo ./Allwmake
+ cd wmake/src
+ make
Have you tried this as a normal user, or as root directly (without sudo)?
I have the strong suspicion that sudo will *not* preserve your environment and then the resulting shell does not have any information about your OpenFOAM setttings.

Try the following test:
Code:
# like you have
sudo /bin/sh -c 'echo FOAM=$WM_PROJECT_DIR'

# preserve the environment
sudo -E /bin/sh -c 'echo FOAM=$WM_PROJECT_DIR'
Even if you get this working, you most certainly do not need root permissions to compile/install OpenFOAM.

BTW:
Since the intent of sudo is to execute a command as another user (eg, root), it would be quite dangerous if the environment were actually preserved. For example,
Code:
PATH=/danger:$PATH
sudo ls

# and the shell script '/danger/ls' actually calls '/bin/rm -rf /' !!
olesen 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
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 10:46


All times are GMT -4. The time now is 03:54.