1
votes

Summary I try to install MYSQL community edition 8.0 on my Amazon Linux server

Command i have done so far

cd /home/ec2-user
wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.16-2.el7.x86_64.rpm-bundle.tar
tar -xvf mysql-8.0.16-2.el7.x86_64.rpm-bundle.tar
rpm -ivh mysql-community-server-8.0.16-2.el7.x86_64.rpm

I get the following error : error: Failed dependencies: libsasl2.so.3()(64bit) is needed by mysql-community-server-8.0.16-2.el7.x86_64 systemd is needed by mysql-community-server-8.0.16-2.el7.x86_64

What i tried by now The library libsasl2.so.3()(64bit) is included in cyrus-sasl-lib I tried to install it but still the same result Here is the command i tried : sudo yum install cyrus-sasl-lib

Operating System Linux ip-172-31-86-163 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Expected Result : Success

Error Message i have : Failed dependencies: libsasl2.so.3()(64bit) is needed by mysql-community-server-8.0.16-2.el7.x86_64

1
Why don't you use yum ? try yum install mysql. - Chris Maes
When i do yum install mysql it install mysql 5.5 and i want 8.0. Is there a way to change this ? - Jason Simard

1 Answers

1
votes

try

yum install /path/to/mysql-8...rpm

then yum will try to find the dependencies you need. If some dependencies cannot be found, you can try downloading them yourself, or enabling repositories. But be careful since you are trying to install recent software on an old os... I don't know if amazon has centos8 machines already, otherwise that would probably help you out :)