This is my first post. I wanted to ask for any idea so to solve my problem. I am using Ubuntu 12.04 LTS, and my purpose is to use OpenFoam CFD software.
I am trying to execute an script called Allrun that corresponds to a tutorial. I am using the sudo command like this.
then it asks for my password and after introducing it, it suddenly appears a message saying:
./Allrun: 5: .: Can't open /bin/tools/RunFunctions
This path appeares at line 5 as sourced in the script, so like:
being $WM_PROJECT_DIR a variable defined in opt/openfoam22/etc/bashrc and pointing the directory:
(this bashrc is at the same time sourced in ~/.bashrc file, and I can use the variable in the terminal, so I assume it is allright sourced)
I have tried also to chmod the RunFunctions file with rwx permissions, and veryfied with "ls -la" that its permissions changed (they did), but didn't solve anything.
I am new in linux, and any help will be great, thanks in advance.