[wellylug] .bash_profile

Grant McLean grant at mclean.net.nz
Fri Jan 23 15:04:02 NZDT 2004


> Hi,
> I need to install Qt on a machine.
> Following the INSTALL, I need to export the path as
>
>        QTDIR=/usr/local/qt
>        PATH=$QTDIR/bin:$PATH
>        MANPATH=$QTDIR/doc/man:$MANPATH
>        LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
>
> Now in .bash_profile for "user" a PATH is already defined. Would the
> QTDIR  interfer ?

No.  That code snippet is carefully prepending the Qt directories onto
the existing values of PATH, MANPATH and LD_LIBRARY_PATH.

It might be a little safer to add $QTDIR/... onto the end of the other
values rather than the beginning - that way you can be certain that
Qt commands will not replace non-Qt command with the same name.

Cheers
Grant





More information about the wellylug mailing list