Saturday, February 26, 2022

[SOLVED] Can't install sql server on amazon linux instance - Requires: systemd-units systemd and numactl-libs

Issue

I tried to install sql-serven on a medium Ec2 with amazon linux and I get errors with a few packages.

I was using following command: sudo yum install mssql-server

And I get this error:

Error: Package: mssql-server-14.0.3076.1-2.x86_64 (packages-microsoft-com-mssql-server-2017)
           Requires: systemd-units
Error: Package: mssql-server-14.0.3076.1-2.x86_64 (packages-microsoft-com-mssql-server-2017)
           Requires: systemd
Error: Package: mssql-server-14.0.3076.1-2.x86_64 (packages-microsoft-com-mssql-server-2017)
           Requires: numactl-libs

When I tried to install the systemd-units package I got another error:

sudo yum install systemd-units
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main                                                                                                                                                                                                             | 2.1 kB  00:00:00
amzn-updates                                                                                                                                                                                                          | 2.5 kB  00:00:00
2 packages excluded due to repository priority protections
No package systemd-units available.
Error: Nothing to do

How can I solve this error? Thanks in advance.


Solution

Sql-Server is not compatible with Amazon Linux 1, the only soltion for me was create an RDS.



Answered By - María Cristina Fernández López
Answer Checked By - Senaida (WPSolving Volunteer)