SoFunction
Updated on 2025-03-10

Implementation method for installing Wechat under Ubuntu16.04

Install WeChat under Ubuntu 16.04

I haven't written a blog for a long time. Two days ago, the computer couldn't get a teamviewer. The reason showed that the libqt5gui5 version was too low. I studied a wave of updates and uninstalled libqt5gui5 and its dependency on qtbase5-dev. I planned to reinstall the new version, but the computer could not start after restarting. . . After a long time of trouble entering Tty, I was forced to reinstall the system. I installed 16.04 on a whim. I used 14.04 before, and recorded the process of installing WeChat. I forgot to record the previous installation, which caused me to spend an hour or two to configure various environments.

Ps: Teamviewer upgrade problem has not been solved yet, so I have time to continue to struggle

Github download WeChat source code

Compile the source code according to wiki

Some problems that may be encountered during compilation

After compiling successfully, fix WeChat on the desktop

Github download WeChat source code

/geeeeeeeeek/ Unzip to local after downloading

Compile the source code according to 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
First, make sure it is installednodejs,npm !!!
If compilation fails,An error message will be displayed in the folder,I've met it herenodejsandnpmProblem of too low version
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 here. The repository '/chris-lea//ubuntu xenial Release' does not have a Release file. (ps: I used the version that was successfully updated in the following sentence)sudo add-apt-repository ppa:chris-lea/ or curl -sL /setup_6.x | sudo -E bash -sudo apt-get update

The repository ‘/chris-lea//ubuntuxenial Release' does not have a Release file. The error response method is as follows:

From:/nodesource/distributions/issues/324

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

Install nodejs

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

After the installation is successful, continue to compile the source code according to the wiki. After the successful installation, the wechat login box will pop up.

After compiling successfully, fix WeChat on the desktop

Package the source code first

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

The folder dist will be generated after the package is successful. Click to enter. Electronic-wechat is the required executable program.

Download a WeChat icon image and put it in this folder

# Set wechat path and iconsudo gedit /usr/share/applications/
# Pop up text, enter[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/
Terminal=false
Type=Application
# inExecandIcon指向你打包成功的可执行程序and微信icon,save

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

The above method of installing WeChat under Ubuntu 16.04 is all the content I have shared with you. I hope you can give you a reference and I hope you can support me more.