|
[Sponsors] |
October 9, 2009, 18:17 |
OpenFOAM install on Suse 11.1 and 11.2
|
#1 |
New Member
Join Date: Oct 2009
Posts: 3
Rep Power: 17 |
The command in .bashrc causes the system to lockup during login.
I added the command . $HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc to the .bashrc user file as shown in one of several setup instruction sets. When I log in as that user, after entering the user name and password, a small window shows up in the upper left corner of the screen with the following in it. "kstartupconfig4 does not exist or fails". When I comment out this statement the user can log on without a problem. My systems are Suse 11.1 and 11.2. I have the same problem on both. I have installed OpenFOAM both ways, binaries and source compiled. My system runs on an AMD dual core, 4+ GB memory, a Nvidia GeForce 8600 GTS graphics card. Is there a way to work around this or? Thank you. |
|
October 12, 2009, 03:15 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
Even if the file is normally there, it is a good idea to surround the sourcing with a file test. This catches any problems with a missing NFS-share, when you've moved directories, etc. Code:
foamDotFile=$HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc if [ -f "$foamDotFile" ] then . $foamDotFile fi Code:
foamDotFile=$HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc if [ -f "$foamDotFile" -a -r "$foamDotFile" ] then . $foamDotFile fi |
||
October 13, 2009, 13:03 |
Reply to Mark Olesen message
|
#3 |
New Member
Join Date: Oct 2009
Posts: 3
Rep Power: 17 |
Mark,
I tested both of your suggested modifications. This causes my system to jump back to the user login screen. After giving me the message "Call to lnusertemp failed (temporary directories full?) Check your installation." I looked at the temp directories, they aren't full, and the user privileges are for the correct user. Is this a CFD program problem or a distribution program problem? Not sure. |
|
October 13, 2009, 13:40 |
|
#4 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
Assume you are using bash, you can try these steps.
Code:
set -x Code:
FOAM_VERBOSE=true Maybe the problem is even as simple as the sourced script leaving $? as non-zero from its last command and that somehow bothering kde. In which case a 'true' command after the sourcing might fix things. FWIW we use openSUSE 11.1 and OpenFOAM without any issues. But I always source the OpenFOAM settings via aliases anyhow - this provides a nicer way for me to switch between versions. |
||
October 13, 2009, 22:46 |
OpenFOAM install on Suse 11.0 and 11.2 with aliases
|
#5 |
New Member
Join Date: Oct 2009
Posts: 3
Rep Power: 17 |
Mark,
This is beginning to take to much time, so I have decided to scrub my OpenFOAM install and redo it. I think I want to try installing with aliases since you have done it that way and it is working. I know what an alias is but am not sure how to use it with OpenFOAM and if anything special is needed. Could you give me an idea on what I need to do special. Thank you for your time and effort. |
|
October 14, 2009, 03:20 |
|
#6 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
http://www.tldp.org/LDP/Bash-Beginne...ect_03_05.html The section on functions would probably also be useful for you http://www.tldp.org/LDP/Bash-Beginners-Guide/html/sect_11_01.html |
||
|
|