trouble installing Qt and setting up enviro variables
I was trying to install bbconf, but it needs the Qt library. So now I am trying to install Qt .
I'm a newbie and I'm stuck on the second step in the INSTALL document. I'm running Slackware 10.0 with 2.6.7.
I am not sure how exactly I can set enviroment variables using .profile or .login files.
2. Set some environment variables in the file .profile (or .login,
depending on your shell) in your home directory. Create the
file if it is not there already.
QTDIR - the directory in which you're building Qt
PATH - to locate the moc program and other Qt tools
MANPATH - to access the Qt man pages
LD_LIBRARY_PATH - for the shared Qt library
Note that under IRIX the additional LD_LIBRARYN32_PATH and
LD_LIBRARY64_PATH variables are used for specifying library
search paths. Set the variable that matches your configuration, or
see the rld(5) man page for more information.
This is done like this:
In .profile (if your shell is bash, ksh, zsh or sh), add the
following lines:
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
In .login (in case your shell is csh or tcsh), add the following lines:
setenv QTDIR /usr/local/qt
setenv PATH $QTDIR/bin:$PATH
setenv MANPATH $QTDIR/doc/man:$MANPATH
setenv LD_LIBRARY_PATH $QTDIR/lib:$LD_LIBRARY_PATH
After you have done this, you will need to login again, or
re-source the profile before continuing, so that at least $QTDIR
and $PATH are set. Without these the installation will halt with an error
message.
On AIX set LIBPATH and on HP-UX set SHLIB_PATH instead of LD_LIBRARY_PATH.
Note that the SGI MIPSpro o32 and Sun WorkShop 5.0 targets are no
longer supported as of Qt 3.3.
|