1. 程式人生 > >重新學習Ubuntu -- 安裝QT 和VNote 筆記軟件

重新學習Ubuntu -- 安裝QT 和VNote 筆記軟件

一個 def ann note href chmod markdown ppa date

在windows 系統下一直使用vnote 筆記軟件(一個markdown 語法的筆記軟件),它是基於QT

查看是否安裝QT

在終端上輸入命令:

qmake -v

結果:

chr@chr-R700:~/vnote.git$ qmake -v
qmake: could not find a Qt installation of ‘‘

提示沒有安裝

安裝QT

-- 這個方法ppa 沒有通過

sudo add-apt-repository ppa:beineri/opt-qt591-trusty -y

sudo apt update -qq

sudo apt -y install qt591base qt59webengine

sudo apt -y install qt59webchannel qt59location qt59tools qt59translations

source /opt/qt /bin/qt-env.sh

另外的方法:

下載安裝文件

http://download.qt.io/archive/qt/5.9/5.9.7/

qt-opensource-linux-x64-5.9.7.run
chmod a+x qt-opensource-linux-x64-5.9.7.run
./qt-opensource-linux-x64-5.9.7.run

配置文件

/usr/share/qtchooser/ 添加一個default 文件

如果沒有qtchooser目錄 通過 apt install qtchooser 來時行安裝

內容如下:


/opt/Qt5.9.7/5.9.7/gcc_64/bin
/opt/Qt5.9.7/5.9.7

path ~.bashrc

PATH=${PATH}:/opt/Qt5.9.7/5.9.7/gcc_64/bin:/opt/Qt5.9.7/Tools/QtCreator/bin

執行

~/.bashrc

重新學習Ubuntu -- 安裝QT 和VNote 筆記軟件