CentOS7.3安装electronic-wechat
方法一、简单粗暴
1.到https://github.com/geeeeeeeeek/electronic-wechat/找到最新的安装包
linux-x64.tar.gz
2.解压
tar -zxvf linux-x64.tar.gz
3.直接运行
[root@localhost electronic-wechat-linux-x64]# ./electronic-wechat
./electronic-wechat: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory
这里有可能会报错,如果报错就去下载libXScrnSaver-1.2.2-6.1.el7.x86_64
[root@localhost electronic-wechat-linux-x64]# yum provides */libXss.so.1
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
local/filelists_db | 3.1 MB 00:00:00
libXScrnSaver-1.2.2-6.1.el7.x86_64 : X.Org X11 libXss runtime library
源 :local
匹配来源:
文件名 :/usr/lib64/libXss.so.1
[root@localhost electronic-wechat-linux-x64]# yum -y install libXScrnSaver-1.2.2-6.1.el7.x86_64
安装完毕之后再次运行
[root@localhost electronic-wechat-linux-x64]# ./electronic-wechat
方法二、npm安装
下载仓库
git clone https://github.com/geeeeeeeeek/electronic-wechat.git
或者git clone https://github.com/kooritea/electronic-wechat.git
安装依赖运行
npm install
报错
gyp WARN EACCES user "root" does not have permission to access the dev dir "/opt/electronic-wechat/node_modules/nodejieba/.node-gyp/10.2.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/electronic-wechat/node_modules/nodejieba/.node-gyp"
解决办法
[root@localhost electronic-wechat]# rm -rf node_modules/electron
[root@localhost electronic-wechat]# npm install -g --unsafe-perm
[root@localhost electronic-wechat]# npm start
到这里就应该启动成功了
也可以根据你的平台打包应用,注意不要把build敲错,楼主就是敲错好多次然后一直百度原因......
npm run build:osx
npm run build:linux
npm run build:win
制作桌面快捷方式
1.生成桌面快捷方式文件
gedit /usr/share/applications/wechat.desktop
文件内容:
[Desktop Entry]
Type=Application
Name=electron-wechat
GenericName=electron-wechat
Comment=wechat for linux
Exec=/home/electronic-wechat-linux-x64/electronic-wechat
Icon=/home/electronic-wechat-linux-x64/electronic-wechat.png
Terminal=wechat
Categories=wechat;
注意:如果是用npm安装的,electronic-wechat的执行脚本在“electron-wechat/dist/electronic-wechat-linux-x64”,图标在electronic-wechat/assets/icon.png
2.下载一个微信图标
wget https://raw.githubusercontent.com/geeeeeeeeek/electronic-wechat/master/assets/icon.png -O electronic-wechat.png
3.快捷方式拷贝到桌面
cp /usr/share/applications/wechat.desktop /root/桌面
======后续=======
发现另外一个linux上的微信软件https://github.com/trazyn/weweChat/releases
直接下载appimage版,chmod +x xxx.appimage,即可以脚本的形式运行
CentOS7.3安装electronic-wechat的更多相关文章
- centos7 微信安装
安装过程如下: ,下载最新版本tar.gz压缩包 wget https://github.com/geeeeeeeeek/electronic-wechat/releases/download/V2. ...
- Linux中使用Electronic WeChat客户端
微信推出了Windows版和Mac版,一直没有推出也不会推出Linux版本,这就催生了Electronic WeChat(https://github.com/geeeeeeeeek/electron ...
- 在centos7上安装Jenkins
在centos7上安装Jenkins 安装 添加yum repos,然后安装 sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins ...
- CentOS7 Jenkins安装
CentOS7 Jenkins安装 CentOS7 Jenkins安装 Download 从Jenkins下载apache-tomcat-8.0.18.tar.gz Install 安装 上传RPM文 ...
- 在 CentOS7 上安装 zookeeper-3.4.9 服务
在 CentOS7 上安装 zookeeper-3.4.9 服务 1.创建 /usr/local/services/zookeeper 文件夹: mkdir -p /usr/local/service ...
- 在 CentOS7 上安装 MongoDB
在 CentOS7 上安装 MongoDB 1 通过 SecureCRT 连接至 CentOS7 服务器: 2 进入到 /usr/local/ 目录: cd /usr/local 3 在当前目录下创建 ...
- 在 CentOS7 上安装 MySQL5.7
在 CentOS7 上安装 MySQL5.7 1 通过 SecureCRT 连接到阿里云 CentOS7 服务器: 2 进入到目录 /usr/local/ 中: cd /usr/local/ 3 创建 ...
- 在 CentOS7 上安装 Tomcat9
在 CentOS7 上安装 Tomcat9 1 通过 SecureCRT 连接到阿里云 CentOS7 服务器: 2 进入到目录 /usr/local/ 中: cd /usr/local/ 3 创建目 ...
- 在CentOS7上安装JDK1.8
在CentOS7上安装JDK1.8 1 通过 SecureCRT 连接到阿里云 CentOS7 服务器: 2 进入到目录 /usr/local/ 中: cd /usr/local/ 3 创建目录 to ...
- centos7.0 安装字体库
最近在centos7.0下用itextpdf将word文档转成pdf时出现字体丢失的情况.网上找了很多资料,各式各样的原因和解决方法.后来经过一番测试发现是centos7.0 minimal没有安装相 ...
随机推荐
- POJ3468:A Simple Problem with Integers(线段树模板)
A Simple Problem with Integers Time Limit: 5000MS Memory Limit: 131072K Total Submissions: 149972 ...
- mysql中的case when 与if else
大神说:在sql中,能用if else 就不用case when 下面来看看,具体为什么,没有搞清楚,如果有大神知道的提供下资料: Mysql的if既可以作为表达式用,也可在存储过程中作为流程控制 ...
- Nginx与Apache工作方式
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 .作者信息和本声明.否则将追究法律责任.http://going.blog.51cto.com/7876557/1304204 Ngin ...
- HDFS fs 基本命令
https://hadoop.apache.org/docs/r2.7.1/hadoop-project-dist/hadoop-common/FileSystemShell.html#Overvie ...
- hdu5828 Rikka with Sequence
传送门:http://acm.hdu.edu.cn/showproblem.php?pid=5828 [题解] 考虑bzoj3211 花神游历各国,只是多了区间加操作. 考虑上题写法,区间全为1打标记 ...
- bzoj 1776: [Usaco2010 Hol]cowpol 奶牛政坛——树的直径
农夫约翰的奶牛住在N (2 <= N <= 200,000)片不同的草地上,标号为1到N.恰好有N-1条单位长度的双向道路,用各种各样的方法连接这些草地.而且从每片草地出发都可以抵达其他所 ...
- oracle scott用户不存在
scott用户拥有一些基础的数据表,可以供我们练习sql.先执行 alter user scott account unlock; 查看scott用户是否存在 当scott用户不存在,我们就需要在$O ...
- poj 2762 tarjan缩点+拓扑序
2013-09-08 10:00 var m, n :longint; t :longint; f, last :..] of longint; pre, other :..] of longint; ...
- js jq插件 显示中文时间戳 刚刚 N分钟前 N小时前 今天 上午 下午 日期格式化
注:页面需提前引用JQ ; $.fn.extend({ /* ** notes: 获取13位时间戳的简单操作 ** new Date('2018-02-01 15:10:00').getTime() ...
- O(1)时间复杂度实现入栈、出栈、获得栈中最小元素、获得栈中最大元素(转)
题目要求:定义栈的数据结构,添加min().max()函数(动态获取当前状态栈中的最小元素.最大元素),要求push().pop().min().max()的时间复杂度都是O(1). 思路解析:根据栈 ...