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

[OpenFOAM.org] OpenFOAM 3.0.x compilation error on OpenSUSE 13.1

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2015, 05:51
Post OpenFOAM 3.0.x compilation error on OpenSUSE 13.1
  #1
New Member
 
Xiaopeng Wang
Join Date: Sep 2014
Posts: 7
Rep Power: 11
Wang@nitech is on a distinguished road
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
Wang@nitech is offline   Reply With Quote

Old   December 2, 2015, 08:59
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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.

Last edited by alexeym; December 3, 2015 at 05:06. Reason: wording
alexeym is offline   Reply With Quote

Old   December 3, 2015, 04:58
Default
  #3
New Member
 
Xiaopeng Wang
Join Date: Sep 2014
Posts: 7
Rep Power: 11
Wang@nitech is on a distinguished road
Quote:
Originally Posted by alexeym View Post
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
Wang@nitech is offline   Reply With Quote

Old   January 22, 2016, 10:02
Default
  #4
New Member
 
Join Date: Sep 2015
Posts: 15
Rep Power: 10
dappe is on a distinguished road
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
dappe is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 06:40
Using Open-MPI with OpenFOAM 2.2.2 on openSUSE 13.1 aylalisa OpenFOAM Installation 19 January 29, 2014 17:16
OpenFOAM Live USB based on openSUSE 11.1 created with SUSE Studio alberto OpenFOAM 40 May 23, 2010 17:15
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07


All times are GMT -4. The time now is 08:39.