更新时间:2023-10-23 10:11:34
已解决! 我已经将 mysql-devel
替换为 mariadb-devel
它运行成功,然后我就可以安装 mysqlcient
库.
Solved! I have replaced mysql-devel
with mariadb-devel
and it worked successfully, then I was able to install mysqlcient
library.
我的新01_packages.config
:
packages:
yum:
python3-devel: []
mariadb-devel: []
我不知道它的根本原因,但我这样做是因为我注意到通过 yum install mysql-devel
手动安装 mysql-devel
是实际安装mariadb-devel
!
I don't know the root cause of it, but I did so as I noticed that the manual installation of mysql-devel
through yum install mysql-devel
is actually installing mariadb-devel
!
这是我的 ec2 实例发布详细信息.也许是因为新的 Amazon Linux Release 2.
Here is my ec2 instance release details. Maybe it is because of the new Amazon Linux Release 2.
$ cat /etc/*-release*
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
Amazon Linux release 2 (Karoo)
cpe:2.3:o:amazon:amazon_linux:2