欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Ubuntu16.04下安裝Wechat的實現(xiàn)方法

 更新時間:2017年12月21日 13:50:35   作者:Sunset_cc  
下面小編就為大家分享一篇Ubuntu16.04下安裝Wechat的實現(xiàn)方法,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧

Ubuntu16.04下安裝Wechat

很久沒寫博客了,前兩天電腦因為teamviewer不了,原因顯示是libqt5gui5版本過低,研究了一波更新,卸載了libqt5gui5,和它的依賴qtbase5-dev,打算重新安裝新版本,結(jié)果重啟后電腦無法啟動。。。進入tty折騰半天后,被迫重裝了系統(tǒng),心血來潮的裝了16.04,之前用的是14.04,記錄下安裝Wechat的過程,之前安裝的忘記記錄了,導致這次花了一兩個小時配置各種環(huán)境

Ps:teamviewer的升級問題還沒解決,有時間繼續(xù)折騰

Github下載Wechat源碼

按照wiki編譯源碼

編譯中可能會遇到的一些問題

編譯成功后將微信固定在桌面

Github下載Wechat源碼

https://github.com/geeeeeeeeek/electronic-wechat.git 下載后解壓到本地

按照wiki編譯源碼

# Go into the repository
cd electronic-wechat-master
# Install dependencies and run the app
npm install && npm start
編譯中可能會遇到的一些問題
首先保證已安裝nodejs,npm ?。?!
如果編譯失敗,在文件夾npm-debug.log會顯示報錯信息,我這里遇到了nodejs和npm版本過低的問題
解決方式如下:

更新ubuntu軟件源

sudo apt-get update
sudo apt-get install -y python-software-properties software-properties-common
# 注意這里可能會報錯 The repository 'http://ppa.launchpad.net/chris-lea/node.js/ubuntu xenial Release' does not have a Release file.(ps:我用的是后面那句成功更新了6.x的版本)
sudo add-apt-repository ppa:chris-lea/node.js 或 curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - 
sudo apt-get update

The repository ‘http://ppa.launchpad.net/chris-lea/node.js/ubuntu xenial Release' does not have a Release file.報錯解決方式如下:

來自:https://github.com/nodesource/distributions/issues/324

sudo add-apt-repository -y -r ppa:chris-lea/node.js
sudo rm -f /etc/apt/sources.list.d/chris-lea-node_js-*.list

安裝nodejs

sudo apt-get install nodejs
sudo apt install nodejs-legacy
sudo apt install npm

安裝成功后,繼續(xù)按照wiki編譯源碼,成功后會彈出wechat登錄框

編譯成功后將微信固定在桌面

先將源碼打包

cd electronic-wechat-master
npm run build:osx
npm run build:linux
npm run build:win32
npm run build:win64

打包成功會生成文件夾dist,點擊進入,electronic-wechat就是所需要的可執(zhí)行程序。

下載一張微信icon圖片放到該文件夾下

# 設置wechat路徑及icon
sudo gedit /usr/share/applications/wechat.desktop
# 彈出文本,輸入
[Desktop Entry]
Name=Wechat
Comment=Wechat
Exec=/home/chenchen/electronic-wechat-master/dist/electronic-wechat-linux-x64/electronic-wechat
Icon=/home/chenchen/electronic-wechat-master/dist/electronic-wechat-linux-x64/icon.png
Terminal=false
Type=Application
# 其中Exec和Icon指向你打包成功的可執(zhí)行程序和微信icon,保存

接下來進入/usr/share/applications/文件夾,你會發(fā)現(xiàn)wechat,拖到桌面即可固定。

以上這篇Ubuntu16.04下安裝Wechat的實現(xiàn)方法就是小編分享給大家的全部內(nèi)容了,希望能給大家一個參考,也希望大家多多支持腳本之家。

相關文章

最新評論