For the complete documentation index, see llms.txt. This page is also available as Markdown.

18.7 WeChat (Linux Version)

WeChat does not yet have a native FreeBSD version and needs to be installed and run through the Linux compatibility layer. This section is based on the Rocky Linux compatibility layer, installed and used via the RPM package manager.

Based on Rocky Linux Compatibility Layer (FreeBSD Port)

Please refer to other chapters of this book to install the Rocky Linux compatibility layer (FreeBSD Port) first.

Installing the RPM Tool

  • Install using pkg:

# pkg install rpm4
  • Alternatively, install using Ports:

# cd /usr/ports/archivers/rpm4/
# make install clean

Downloading WeChat

Official download address: WeChat Linux Beta.

# fetch https://dldir1v6.qq.com/weixin/Universal/Linux/WeChatLinux_x86_64.rpm

This link is the address at the time of writing this section; please obtain the latest WeChat download link yourself.

Installing WeChat

Switch to the compatibility layer path:

Install:

Please replace WeChatLinux_x86_64.rpm with the actual local file path.

Resolving Dependency Issues

View dependencies:

  • Install the missing dependency library libatomic.so.1.

Install using pkg:

Alternatively, install using Ports:

  • Create a symbolic link for the missing dependency library libbz2.so.1.0:

Tip

The library libbz2.so.1 already exists but has a different filename. If you cannot find it, you can type ls /compat/linux/lib64/libbz2 and then press the Tab key for auto-completion to view the actual filename.

  • Install the dependency library libxkbcommon-x11.so.0:

Tip

If you cannot find a certain Rocky Linux library, you can search at https://rockylinux.pkgs.org/. Some have already been packaged in FreeBSD Ports; you can search using pkg-provides as described in the pkg chapter.

  • Resolve the dependency library libxcb-icccm.so.4:

  • Resolve other xcb library-related dependency issues.

Install using pkg:

Alternatively, install using Ports:

Launching WeChat

Run WeChat from the command line.

Creating a Software Icon

Create a new text file wechat.desktop under the path ~/.local/share/applications, and write:

Set the wechat.desktop file permissions to 755 to make it executable:

Icon directory structure:

After restarting the system, you can find WeChat in the system menu.

Functioning normally:

FreeBSD WeChat
FreeBSD WeChat
FreeBSD WeChat

Chinese Input Method Issues

If you run WeChat in the Rocky Linux compatibility layer with root privileges, the Chinese input method will not work (for the same reason as QQ: the input method framework depends on the user session's D-Bus and environment variables). Please run it with regular user privileges.

FreeBSD WeChat

Last updated