wechat_web_devtools icon indicating copy to clipboard operation
wechat_web_devtools copied to clipboard

RHEL 和 Centos 7 不能编译、重复提示“小程序重启耗时过久...”的看过来

Open allen05ren opened this issue 7 years ago • 1 comments

由于 Centos 7 的 epel 仓库里的 wine 仅支持运行 64 bit 的程序,而微信开发者工具的 wcc.exe 和 wcsc.exe 都是 32 bit 的程序,所以安装 epel 仓库里的 wine 就不能正常的编译。 如果自己编译安装 32 bit 的 wine 的话,由于有不少的依赖,工作量应该不小,好在外国的友人 Richard Grainger 编译了 32 bit 的 wine 包及其所有的依赖包并且建了一个 repo 仓库,我们可以直接使用 yum 来安装 32 bit 的 wine,详见:Announcement: 32 bit Wine repo for RHEL and CentOS 7

简单介绍一下安装方法:

  1. 安装 repo 仓库 yum -y install https://harbottle.gitlab.io/wine32/7/i386/wine32-release.rpm
  2. 安装 32 bit wine(自动安装依赖) yum -y install wine.i686

注意事项: 执行以上安装之前,建议先做以下清理:

  1. 清理所有的 64 bit wine 及其依赖 yum erase wine*
  2. 清理之前的 .wine rm -rf ~/.wine

经过以上操作之后,你应该就可以愉快地在 linux 下开发微信小程序了。

allen05ren avatar Sep 15 '18 19:09 allen05ren

lz4-1.7.5-2.el7.i686.rpm 和本地64位版本的lz4有冲突 Transaction check error: package lz4-1.8.3-1.el7_6.x86_64 (which is newer than lz4-1.7.5-2.el7.i686) is already installed file /usr/bin/lz4c from install of lz4-1.7.5-2.el7.i686 conflicts with file from package lz4-1.8.3-1.el7_6.x86_64 file /usr/share/man/man1/lz4.1.gz from install of lz4-1.7.5-2.el7.i686 conflicts with file from package lz4-1.8.3-1.el7_6.x86_64

用这个安装成功了 https://tecadmin.net/steps-install-wine-centos-rhel-fedora-systems/

linhandev avatar Jul 16 '19 13:07 linhandev