English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Ubuntu16.04Implementation method of installing Wechat below

Ubuntu16.04install Wechat

It's been a long time since I wrote a blog, and a couple of days ago, my computer couldn't connect to TeamViewer, and the reason showed that it was libqt5gui5version is too low, after some research on updating, I uninstalled libqt5gui5, and its dependency qtbase5-dev, planning to reinstall the new version, but the computer failed to boot after the restart... After struggling in tty for half a day, I was forced to reinstall the system and impulsively installed16.04, I used to use14.04, record the installation process of Wechat, as I forgot to record the previous installation, which led to spending one or two hours configuring various environments this time

Ps: The upgrade issue of TeamViewer has not been resolved yet, and I will continue to troubleshoot when I have time

Download Wechat source code from Github

Compile the source code according to the wiki

Some problems that may be encountered during compilation

After successful compilation, fix WeChat on the desktop

Download Wechat source code from Github

https://github.com/geeeeeeeeek/electronic-wechat.git Download and unzip it locally

Compile the source code according to the wiki

# Go into the repository
cd electronic-wechat-master
# Install dependencies and run the app
npm install && npm start
Some problems that may be encountered during compilation
Firstly, ensure that nodejs and npm are installed !!
If the compilation fails, in the npm folder-debug.log will display error information, and I encountered the problem of too low nodejs and npm versions here
The solution is as follows:

Update ubuntu software source

sudo apt-get update
sudo apt-get install -y python-software-properties software-properties-common
# Note that there may be an error: The repository ‘http:’//ppa.launchpad.net/chris-lea/node.js/‘ubuntu xenial Release’ does not have a Release file. (Note: I used the latter one and it successfully updated)6version of .x)
sudo add-apt-repository ppa:chris-lea/node.js or 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. The solution to the error is as follows:

From: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

install nodejs

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

After installation, continue to compile the source code according to the wiki, and a wechat login box will pop up after successful compilation

After successful compilation, fix WeChat on the desktop

First, package the source code

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

After the packaging is successful, a folder named dist will be generated, click to enter, electronic-wechat is the executable program needed.

Download a WeChat icon image and place it in the folder

# Set the path and icon of wechat
sudo gedit /usr/share/applications/wechat.desktop
# Enter the pop-up text, input
[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
# Where Exec and Icon point to the executable program and WeChat icon you have successfully packaged, save

Next, enter/usr/share/applications/folder, you will find wechat, drag it to the desktop to fix it.

The above article on Ubuntu16.04The implementation method of installing Wechat that the editor shares with everyone is all the content, hoping to give everyone a reference, and also hope that everyone will support and cheer for the tutorial.

Statement: The content of this article is from the Internet, and the copyright belongs to the original author. The content is contributed and uploaded by Internet users spontaneously. This website does not own the copyright, has not been manually edited, and does not assume relevant legal liability. If you find any content suspected of copyright infringement, please send an email to: notice#oldtoolbag.com (Please replace # with @ when sending an email to report violations, and provide relevant evidence. Once verified, this site will immediately delete the infringing content.)

You might also like