On Wednesday 16 October 2002 09.45, Salman Khilji wrote:
Recently I have noticed after upgrading using YAST that a few things are broken on my 8.0 Pro computer.
1) It doesn't seem to be processing /etc/profile.local. I have a few PATH and other environment variables there, but those are not getting in effect.
Check what your /etc/profile looks like. You should have a line in there along the lines of test -s /etc/profile.local && . /etc/profile.local
2) I reinstalled java2 from the DVD, but the appropriate JDK_HOME environment variables were not set. Furthermore, the java program under /usr/lib/SunJavaxxx/bin was not found in the path. The java directory usually is set by SuSEConfig (I think). Looks like this problem is related to problem 1).
The SuSE shell initialisation adds /usr/lib/java/bin to the path. It expects /usr/lib/java to point to the real java installation, such as /usr/lib/SunJava2 for example, or something else if you installed a newer version directly from sun or elsewhere. In SuSE 7.3 and earlier this link was created by SuSEconfig and you had to explicitly tell it not to if you had created the link yourself. Starting with 8.0 SuSEconfig will not create the java symlink if /usr/lib/java points to a valid java directory (look at /sbin/conf.d/SuSEconfig.alljava for the details). You could just delete /usr/lib/java and run SuSEconfig, or create the correct symlink manually. JAVA_HOME and the other environment variables are set by the java wrapper shell script when you run java, javac or one of the other java programs.
3) the environment variable QTDIR was not set properly. I added it to /etc/profile.local. But it wasn't getting processes, so I ended up putting it in ~/.bashrc. Unfortunately, I can only then compile Qt program on a command prompt. I usually like to do it in XEmacs. XEmacs does not see the QTDIR environment variable that is set from ~/.bashrc.
Normally, QTDIR should be set by /etc/SuSEconfig/profile which should be sourced by /etc/profile. It sounds like your /etc/profile has become corrupt. Anders