do you do a su - ?
Here's the situation:
I'm running Debian 2.2r3, with enlightenment.
Recently I compiled the qt libraries with the idea of attempting to compile KDE afterward. *When I went to compile the KDE part, it said I should add the path to QT (in this case, /usr/local/qt) in .profile. *
All the qt/kde paths are in my .profile file for root, and in .bash_profile for my regular user login. *However, when I su to root those variables don't show up anywhere.
This is causing a problem when I try to set up a KDE application project using KDevelop. *It runs a configure script to make sure you have everything you need. *However, it keeps telling me that the qt version isn't high enough.
Is there another file I have to put these paths for when I su to root?
Thanks in advance.
do you do a su - ?
No. *I put Kdevelop on an enlightenment menu and run it from there. *
When I do an su and typenothing shows up.Code:echo $PATH
look at /etc/profile it should look like this
this is just the part where the paths get exported .. I think you should get the idea .. else just post any questionsCode:export MINICOM="-c on" export MANPATH=/usr/local/man:/usr/man:/usr/X11R6/man export HOSTNAME="`cat /etc/HOSTNAME`" export LESSOPEN="|lesspipe.sh %s" export LESS="-M" export MOZILLA_HOME=/usr/lib/netscape export LFS="/mnt/lfs" # Set the default system $PATH: PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/openoffice/pro gram:/opt/kde/bin:/usr/local/mozilla/" # For root users, ensure that /usr/local/sbin, /usr/sbin, and /sbin are in # the $PATH. Some means of connection don't add these by default (sshd comes # to mind). if [ "`id -u`" = "0" ]; then echo $PATH | grep /usr/local/sbin 1> /dev/null 2> /dev/null if [ ! $? = 0 ]; then PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH fi fi # For non-root users, add the current directory to the search path: if [ ! "`id -u`" = "0" ]; then PATH="$PATH:." fi
hth,
chb
Like pbharris pointed out, you need to do a "su -" or else you don't attain root's environment settings.
Bookmarks