Click to See Complete Forum and Search --> : set environment variable


FyberOptyx
04-13-2002, 11:21 AM
I am trying to install qt-3 on debian.
I have followed the instructions which say to edit the .bash_profile to add the path.
It then says to add to .login - as there isn't a .login I created .bash_login.
It says to enter in this:
setenv QTDIR /usr/local/qt
setenv ........
setenv.........
etc.
I then logout/login then cd /usr/local/qt
./configure -platform linux-g++
It comes back with The environment variable $QTDIR is not set correctly. It is currently set to "" but it should be set to "/usr/local/qt"
echo $QTDIR shows "/usr/local/qt"
What am I doing wrong? I have also entered the env statements in .bashrc with the same error.
Does Debian have a .login that it reads ?

TIA

raab
04-13-2002, 11:35 AM
Just a guess, try export QTDIR="/usr/local/qt".

bdl
04-13-2002, 11:36 AM
Don't worry about using a .login file. If you read the documentation, it states that if you're using csh or tcsh to use .login. At any rate, just put this in your .bash_profile, either source the file or logout / log back in. This is exactly how I installed QT 3 yesterday, I know this method works.


# QT 3 Variables
QTDIR=/usr/local/qt
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

export QTDIR PATH MANPATH LD_LIBRARY_PATH



That should do it.

FyberOptyx
04-13-2002, 11:51 AM
Thanks. I didn't put the "export" statement in the file, I just typed it at the prompt.