SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am new to SUSE but familiar with Linux. I have been using Mandrake several years but one program that I need made me to learn SUSE.
I am trying to set environment variables for my user account but no luck so far.
I added following variables in ~/.profile and reloged in but no effect.
####### Added variables ##########
######### up to here #######
I don't see LD_LIBRARY_PATH, INTEL_LICENSE_FILE and LM_LICENSE_FILE as an output of 'export' command. Am I doing something wrong here ?
This same setting works fine on Mandrake 10.0, 10.1. I am kind of lost.
I wonder why your reply went wide screen? No matter...
Environment gets set by multiple things (/etc/profile, /etc/bashrc, $HOME/.profile, $HOME/.bashrc and perhaps others).
If the .profile has another line lower that sets LD_LIBRARY_PATH= that does NOT start LD_LIBRARY_PATH=$LD_LIBRARY_PATH:....
then it will simply overwrite anything in LD_LIBRARY_PATH to that point rather than appending. Similarly if .bashrc has anything setting LD_LIBRARY_PATH
then it will overwrite. Also any of these files may be "sourcing" other environmental files that sets LD_LIBRARY_PATH. Usually a file being "sourced" will
be in one of the others with ". <filename>" (dot space <filename>). Also if its calling a script that sets a variable (no dot space - just a name or sh then a
name) it could be setting a variable. You'd basically need to examine your .profile and .bashrc for these (assuming you're using bash as your shell - if
using ksh it wouldn't read .bashrc and if using csh it wouldn't read .profile or .bashrc - it would read .login).
First, I am using bash.
I didn't change anything in ~/.profile, ~./bashrc and /etc/profile, /etc/bashrc from default installation except
appending the environment variables that are listed in the first post in ~/.profile.
Even 'export INTEL_LICENSE_FILE=/usr/local/intel_fc_81/licenses' command in a shell window does not set this variable.
I am really confused.
Odd that a command line change after login wouldn't work.
It may not matter if you changes .bashrc - it may just be different by default on your new distro. I'd certainly explore it.
Do "ps" from command line (no options to "ps" - just "ps" by itself). This will show what you're running.
Just suggesting you do this to verify you are in fact running bash as you think.
Also I hate to ask but just to be sure: You do know that after setting variable you have to reference it by prepending
a dollar sign (e.g. PATH= defines it but $PATH is what you have to look at afterwards)? Not trying to insult you just
not sure what you know.
Assuming you ARE running bash and have set the variable as you state try:
"echo $INTEL_LICENSE_FILE" to see if it shows anything.
It may be that the shell you're using somehow doesn't understand the "export VAR=...." format. Try doing it the old
fashioned way where you define on one line then export on the next:
I haven't used Mandrake. Apparently there is one distro (Ubuntu?) that only allows you to do things as root with sudo so
maybe Mandrake has some wierd setup like that where it protects the root environment. Are you doing the export as the
root user or as a non-root user? If non-root what happens if you try it as root or vice-versa?
A final thought. You're not setting the environment then typing in bash or su are you?
Last edited by MensaWater; 11-19-2005 at 05:31 PM.