Click to See Complete Forum and Search --> : Installing QT 3.0 - editing profile


Captain Penguin
02-02-2002, 01:02 AM
I'm using Vector Linux, trying to get bbconf installed so I can configure BlackBox.

Only prob is that I dont' have Qt installed.. so I download the latest, 3.0, and follow directions.. I extract it to /usr/local and rename it to just qt, so I have /usr/local/qt.

then I have to edit my .profile.. since I don't have one, I find .bash_profile, which I believe serves the same purpose (please correct me if I'm wrong).

In there I add the lines

QTDIR=/usr/local/qt
MANPATH=$QTDIR/doc/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

and since it already had an export line, I just added "QTDIR MANPATH LD_LIBRARY_PATH" to the current export entries.

I'm supposed to add the line
PATH=$QTDIR/bin:$PATH

but there is already a PATH line, so I'm not sure how to append it to the current one.

any help getting it installed would be appreciated!

mdwatts
02-02-2002, 08:34 AM
You should be able to use add $QTDIR to your existing PATH.

i.e. If I was required to add $QTDIR to my current PATH

PATH="/bin:/usr/bin:/opt"

I would do so as

PATH="/bin:/usr/bin:/opt:$QTDIR"

The colon ':' is the separator.

In you example PATH=$QTDIR/bin:$PATH

PATH=$PATH is your current ($PATH) path where you are required to add the qt path.

PATH=$QTDIR/bin:$PATH

Since $QTDIR has already been defined as a variable, you only need to reference it as $QTDIR.

You could use

PATH=/usr/local/qt/bin:$PATH

Make sense?

Captain Penguin
02-02-2002, 10:25 AM
Thanks much, exactly what I was looking for!