在ubuntu10.04上 安裝 QT5.1.1 後打不開qt creator (opensource)的解決方法
首先,曬一下 安裝方法:
1.
First determine your Ubuntu Linux operating system bit version by opening up a terminal and typing the following below and download the matching Qt SDK bit version for your operating system. For example, if you are on 32-bit Ubuntu Linux then download 32-bit Qt SDK, if you are on 64-bit Ubuntu Linux then download 64-bit Qt SDK.
* Type/Copy/Paste: file /sbin/init
* Note the bit version of your Ubuntu Linux operating system architecture it will display whether it is 32-bit or 64-bit.
2.
Next download the Qt Software Development Kit (SDK) Download Qt SDK
* Select your Ubuntu Linux system architecture such as 32-bit or 64-bit version of the Qt SDK. Also you can add development libraries so that you are able to run Qt applications without compilications by following these steps.
* Note: When it comes to downloading the SDK, download the offline installation due to the fact it takes a long time to download unless you have a really fast download connection.
* You have two methods when it comes to downloading the Qt SDK the online installer method or the offline installer method. I prefer to just download the full SDK using the offline method. Because the classes that make up Qt SDK are so large it takes several hours on a slow connection to download the SDK. This may or may not be a turn off for some users who want to try out the Qt SDK.
* Suggestion: I would strongly recommend using the offline installer instead of the online installer unless you have a really fast connection.
3.
Open up a terminal and enter the following commands below:
* Type/Copy/Paste: sudo apt-get install synaptic
* Type/Copy/Paste: sudo apt-get update
* This command is used to update and to resynchronize the package index files from their sources via the Internet.
* Type/Copy/Paste: sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui
* This command adds additional Qt development libraries to your Ubuntu Linux system allowing Qt programs to run smoothly on your system. I included this information just in case you want to have Qt SDK 4.8 compatable libraries installed
* Type/Copy/Paste: sudo apt-get install build-essential
* this will add additional C/C++ libraries for compilation
* Type/Copy/Paste: sudo apt-get install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev
* this will add OpenGL funtionality when running your Qt applications
4.
Type/Copy/Paste: cd /home/"your_user_name"/Downloads
* This will change you into the Downloads directory on your system
5.
Type/Copy/Paste: sudo -s chmod u+x qt-linux-opensource-5.0.2-x86_64-offline.run
* This will make the Qt SDK executable for all users on your system
6.
Install the Qt SDK by issuing the following command
* Type/Copy/Paste: sudo -s ./qt-linux-opensource-5.0.2-x86_64-offline.run -style cleanlooks
* You must be root or have superuser privelages to install the Qt SDK
7.
When you install the Qt SDK you will prompted to select a directory where you want the Qt SDK to reside. Select /opt and your Qt SDK will install into a directory called /opt/QtSDK
8.
Change the permisions on the Qt SDK directory location to be available by all users by issuing the following command
9.
Type/Copy/Paste: sudo -s chmod -R 777 /opt/Qt5.0.2
* This will make the Qt SDK executable for all users on your system
10.
Type/Copy/Paste: sudo -s chmod -R 777 /home/"your_user_name"/.config/QtProject
* This will prevent error messages when you start QtCreator, stating it can not write to the /home/"your_user_name"/.config/QtProject directory.
11.
Once the Qt program is installed, open up a terminal and use a text editor such as nano or gedit to edit your /etc/profile.
* Type/Copy/Paste: sudo -s nano /etc/profile
* or
* Type/Copy/Paste: sudo -s gedit /etc/profile
12.
Scroll down to the end of the /etc/profile file and enter the following text below. You want to add this line below to your /etc/profile system wide file so that you will have the option to compile Qt programs from the terminal line.
13.
Type/Copy/Paste:
* PATH=/opt/Qt5.0.2/5.0.2/gcc/bin:$PATH
* export PATH
14.
The above number highlighted in bold denotes the version number of the Qt SDK so make sure you enter the correct version number of the Qt SDK. The Qt SDK is always improving with new version changes. So make sure you are mindful of your Qt SDK version number.
* For example, we are using Qt version 5.0.2 in this example, therefore the version number in the /etc/profile would reflect as 5.0.2
15.
Save the /etc/profile file and exit
16.
Reload the /etc/profile file by issuing the following command
* Type/Copy/Paste: . /etc/profile
* Make sure you enter a . and then a space in order to reload your /etc/profile file
17.
Once the /etc/profile file is reloaded issue the following command you can type the following commands to make sure your Ubuntu Linux system recognizes that the Qt SDK has been accepted by the system PATH.
18.
Type/Copy/Paste: which qmake
* You should receive a response such as the one below
* /opt/Qt5.0.2/5.0.2/gcc/bin/qmake
19.
Also type the following command below:
* Type/Copy/Paste: qmake -version
20.
You should receive a response similar to this:
* QMake version 3.0
* Using Qt version 5.0.2 in /opt/Qt5.0.2/5.0.2/gcc/lib
21.
This lets you know that you are able to compile Qt SDK 5.0 programs from the command line. Now you are all set to compile Qt programs on your Ubuntu Linux system. Once the Qt SDK is successfully installed on your system you might want to try compiling your first Qt program see this document for more information How to Create Your First Qt Program on Ubuntu Linux
按照這種方法裝好後,發現 qt creator (opensource) 打不開,
1.百度搜尋出這個檔案並下載 libstdc++.so.6.0.17
2.將它放入/usr/lib/目錄下,同時刪除該目錄下的libstdc++.so.6
3.然後執行ln -s /usr/lib/libstdc++.so.6.0.17 /usr/lib/libstdc++.so.6 重定向連結即可這樣就可以開啟了
相關文章
- VNC打不開Qt Creator解決VNCQT
- win7安裝後DVD驅動打不開的解決方法Win7
- win10安裝google商店後打不開怎麼辦_win10安裝google商店後打不開的解決方法Win10Go
- win10系統安裝gopro quik後打不開的最佳解決方法Win10GoUI
- 寶塔皮膚安裝網站後打不開的解決方法及排查步驟網站
- Mac本軟體安裝之後打不開的解決辦法Mac
- 安裝寶塔皮膚後網址打不開的解決方法及快速排查步驟
- 解決GitHub打不開的方法Github
- reCAPTCHA打不開的解決方法APT
- Google打不開的解決方法Go
- Qt - Qt Creator下載與安裝QT
- pycharm安裝後打不開怎麼辦PyCharm
- 安裝lnmp後寶塔打不開了LNMP
- QT Creator配置環境和安裝QT
- Qt Creator 安裝、漢化及helloworld程式QT
- 解決AE 2021 在mac big sur系統上安裝閃退打不開問題Mac
- Excel表格打不開的解決方法 電子表格打不開怎麼辦?Excel
- 升級windows10系統後打不開ppt的解決方法Windows
- Google打不開的解決方法和IP地址表Go
- win10系統下解除安裝lenovo nerve center後重灌不上的解決方法Win10
- win10升級後應用打不開怎麼辦_win10升級後應用打不開的解決方法Win10
- win10電腦上ppt打不開怎麼辦_win10打不開ppt檔案的解決方法Win10
- postgresql安裝不上怎麼解決SQL
- win10戰網打不開如何解決_win10戰網打不開的解決方法Win10
- linux安裝寶塔後瀏覽器打不開Linux瀏覽器
- win10重灌系統後軟體打不開怎麼辦_win10重灌後任何程式都打不開解決方法Win10
- gist 打不開,解決方式
- 解決laravel 連線不上docker 安裝的redisLaravelDockerRedis
- Win10系統下excel打不開的解決方法Win10Excel
- Win10系統打不開定位功能的解決方法Win10
- mysql解除安裝不乾淨解決方法MySql
- 有些網站打不開 某些網站打不開的解決辦法網站
- win10 windows功能打不開怎麼辦_win10 windows功能打不開的解決方法Win10Windows
- win10為什麼電腦word打不開_win10 word打不開的解決方法Win10
- 【Qt 專欄】Qt Creator 的 git 配置 & 上傳到giteeQTGitee
- win10系統更新後Nvidia英偉達控制皮膚打不開的解決方法Win10
- hanlp在Python環境中的安裝失敗後的解決方法HanLPPython
- MySQL安裝後在服務裡找不到或者服務啟動不起來解決方法MySql