CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] OpenFOAM 3.0.x compilation error on OpenSUSE 13.1 (https://www.cfd-online.com/Forums/openfoam-installation/163592-openfoam-3-0-x-compilation-error-opensuse-13-1-a.html)

Wang@nitech December 2, 2015 04:51

OpenFOAM 3.0.x compilation error on OpenSUSE 13.1
 
Hello everyone,

As the titled says, I met an error when I was compiling OpenFOAM 3.0.x into OpenSUSE 13.1.

I followed all the steps from http://www.openfoam.org/download/git.php , and nothing went wrong until the " Buiding the Sources" step.
Since I installed OpenFOAM in the opt directory, so I ran
"sudo ./Allwmake" in it.
However, it gave me an error message:
"./Allwmake: line 7: /wmake/scripts/AllwmakeParseArguments: No such file or directory"

I don't know what is going wrong, so I search it. I found nothing but these two
0001484: Missing file related to the recent wall distance feature + typo in wmake/scripts/AllwmakeParseArguments
0001485: Miscellaneous details missing regarding issue #256 and details uncovered in the process of fixing them

I don't know much about compliation so I cannot figure out what they mean.
So is there anyone could show me how to do next, it would be very kind of you. Thank you very much.

Wang

alexeym December 2, 2015 07:59

Hi,

sudo starts new session, so thing you have done during "Setting Environment Variables" are canceled.

Look at line 7 of Allwmake script:

Code:

. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
As OpenFOAM specific environment variables are cleared, you get the error, since $WM_PROJECT_DIR expands to empty string.

You can start shell with sudo, set variables and run compilation there. You can create open foam user, transfer ownership of OpenFOAM installation folder to this user, and compile software under this user. In fact there are lots of possibilities.

Wang@nitech December 3, 2015 03:58

Quote:

Originally Posted by alexeym (Post 575902)
Hi,

sudo starts new session, so thing you have done during "Setting Environment Variables" are canceled.

Look at line 7 of Allwmake script:

Code:

. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
As environment OpenFOAM specific variables are cleared, you get the error, since $WM_PROJECT_DIR expands to empty string.

You can start shell with sudo, set variables and run compilation there. You can create open foam user, transfer ownership of OpenFOAM installation folder to this user, and compile software under this user. In fact there are lots of possibilities.

Hi, alexeym

Thank you for your reply.
As you said, I made a mistake. Now everything is going well. Thank you again.

Best regards,
Wang

dappe January 22, 2016 09:02

Hello everybody.
I'm experimenting the same problem while installing OpenFOAM-3.0.1 on a cluster. I ve never installed anything in Linux so maybe I'm forgetting some passages.
My folders tree is the following: /home/alessandro/OpenFOAM/OpenFOAM-3.0.1/
As written in the installation guide (Source Pack Installation), first I decompressed the folders then I checked if Gcc was updated. Everything should be fine (version 5.3.1 installed). Then I tried to set the environment variables: I added the line source $HOME/OpenFOAM/OpenFOAM-3.0.1/etc/bashrc in the bashrc file, just before the 'end of file' line.
Then I ran the command source $HOME/.bashrc in the 'OpenFOAM' folder (not sure it s the right place).
Running the script ./Allwmake in 'OpenFOAM-3.0.1' folder, I got the error
Code:

. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
Something went wrong during environment variables setting. In fact if I put the path instead of the envinronment variable WM_PROJECT_DIR at line 7 (Allwmake script), then I get the error at line 9, where the same variable is used again.
Where did I mess up?
Thank you
Alessandro


All times are GMT -4. The time now is 02:48.