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

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 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: 3
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,305
Rep Power: 23
alexeym will become famous soon enoughalexeym will become famous soon enough
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: 3
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: 2
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
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation problem: openfoam 2.1.0 on opensuse 11.4 raphael7 OpenFOAM Installation 4 April 12, 2012 07:10
OpenFOAM 2.1 on OpenSuSE 12.1 using RPMs Morphaniel OpenFOAM Installation 1 March 6, 2012 14:59
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 09:34.