1、下载安装程序 http://download.qt.io/official_releases/qt/5.9/5.9.2/qt-opensource-linux-x64-5.9.2.run 2、安装 chmod u+x qt-opensource-linux-x64-5.9.2.run ./qt-opensource-linux-x64-5.9.2.run 进入安装界面,进行安装 安装完成之后进入安装目录运行QtCreator 此时只能在root用户下执行./Qt5.9.2/Tools/QtCreator/bin/qtcreator.sh运行QtCreator 3、设置环境变量 添加环境变量 export LD_LIBRARY_PATH=/opt/Qt5.9.2/Tools/QtCreator/lib:/opt/Qt5.9.2/Tools/QtCreator/lib/qtcreator:/opt/Qt5.9.2/Tools/QtCreator/lib/Qt/lib:$LD_LIBRARY_PATH export PATH=$PATH:/opt/Qt5.9.2/5.9.2/gcc_64/bin:/opt/Qt5.9.2/Tools/QtCreator/bin 4、执行qtcreator qtcreator (责任编辑:IT) |