|
[Sponsors] |
January 20, 2010, 19:17 |
Rules dirs missing and Allwmake not found
|
#1 | ||
New Member
Miguel
Join Date: Jan 2010
Posts: 12
Rep Power: 16 |
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:
And if I execute the script 'foamInstallationTest', I get this: Quote:
|
|||
January 21, 2010, 02:59 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40 |
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:
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' 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 /' !! |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM15 paraFoam bug | koen | OpenFOAM Bugs | 19 | June 30, 2009 10:46 |