赞
踩
环境:rhel8 MySQL8
官网软件包地址:
MySQL :: 下载 MySQL Workbenchhttps://dev.mysql.com/downloads/workbench/我这里下载的是 mysql-workbench-community-8.0.24-1.el8.x86_64.rpm
用rpm安装发现缺少依赖
[root@hfj mysql-pkg]# rpm -ivh mysql-workbench-community-8.0.24-1.el8.x86_64.rpm
图中我所需的依赖很多需要从epel库获取,所以我们给电脑配置国内的epel源
打开/etc/yum.repos.d/epel.repo(如果没配过,这里应该是打开了一个新文件):
[root@hfj mysql-pkg]# vi /etc/yum.repos.d/epel.repo
写入如下代码:
- [epel]
- name=Extra Packages for Enterprise Linux $releasever - $basearch
- baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/$releasever/Everything/$basearch
- #metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
- enabled=1
- gpgcheck=0
- countme=1
- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
-
- [epel-debuginfo]
- name=Extra Packages for Enterprise Linux $releasever - $basearch - Debug
- baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/$releasever/Everything/$basearch/debug
- #metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-$releasever&arch=$basearch&infra=$infra&content=$contentdir
- enabled=0
- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
- gpgcheck=0
-
- [epel-source]
- name=Extra Packages for Enterprise Linux $releasever - $basearch - Source
- baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/$releasever/Everything/SRPMS
- #metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir
- enabled=0
- gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
- gpgcheck=0
然后保存退出,yum makecache就可以了
注意后面的几个提示可能是实际依赖的子包、库,不一定是真正的软件包名,使用yum 的search 命令查询相关的软件包
如果查找不到,可以借助人工智能
具体需要下载的软件包(按报错提示顺序)(最后两个依赖其实在一个包内libzip)
- yum install mesa-libGL
- yum install proj
- yum install python38
- yum install libzip
- [root@hfj mysql-pkg]# rpm -ivh mysql-workbench-community-8.0.24-1.el8.x86_64.rpm
- warning: mysql-workbench-community-8.0.24-1.el8.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
- Verifying... ################################# [100%]
- Preparing... ################################# [100%]
- Updating / installing...
- 1:mysql-workbench-community-8.0.24-################################# [100%]
启动页面
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。