我是个新手,刚开始学,可能问的问题有点弱,请各位高手指教,谢谢。
我在Linux系统上安装。
在根目录下建立新文件夹tool。在tool文件夹下建立文件夹tar存放压缩文件,建立source文件夹存放解压缩文件。
用到三个个软件包:tmake-1.11.tar.gz、qt-x11-2.3.2.tar.gz、qt-embedded-2.3.7.tar.gz。
解压缩qt-x11-2.3.2.tar.gz后将压缩后的软件qt-2.3.2放入到source文件夹下。安装Qt/X11 2.3.2出现了问题。
【root@localhost souce】#cd qt-2.3.2
【root@localhost qt-2.3.2】#export QTDIR=$PWD
【root@localhost qt-2.3.2】#export PATH=$QTDIR/bin:$PATH
【root@localhost qt-2.3.2】#export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
【root@localhost qt-2.3.2】#./configure –no -opengl
后出现如下内容:
./configure :line 1:dirname:command not found
./configure :line 20:touch:command not found
./configure :line 23:rm:command not found
The environment vatiable $QTDIR is not set correctly.It is currently set to"/tool/source/qt-2.3.2",but it should be set to this directory,which is "/tool/source/qt-2.3.2".
Please read the INSTALL file for instructions on how to set $QTDIR correctly.If you have set $QTDIR in your .profile or .login,you will need to log out and log in again to make the setting effective.
我在网上找了很久试了好几个方法都没有用。
【root@localhost souce】#cd qt-2.3.2
【root@localhost qt-2.3.2】#export QTDIR=$PWD/qt-2.3.2
【root@localhost qt-2.3.2】#export PATH=$QTDIR/bin:$PATH
【root@localhost qt-2.3.2】#export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
【root@localhost qt-2.3.2】#./configure –no -opengl
或
【root@localhost souce】#cd qt-2.3.2
【root@localhost qt-2.3.2】#export QTDIR=$PWD
【root@localhost qt-2.3.2】#export PATH=/tool/source/qt-2.3.2/bin:$PATH
【root@localhost qt-2.3.2】#export LD_LIBRARY_PATH==/tool/source/qt-2.3.2/lib:$LD_LIBRARY_PATH
【root@localhost qt-2.3.2】#./configure –no -opengl
都没有解决问题。我是个新手,恳请高手将详细步骤教我下,不胜感激涕零!!!