Unable to install Aerospike on ec2

Hello, I’m unable to install aerospike 5.7 on Amazon linux 2023 AMI. EC2 type is m5.large. I’m getting the following error -

aerospike-server-enterprise-5.7.0.17-el7] ./asinstall 
Checking dependencies
Installing tools
rpm -Uvh aerospike-tools-6.1.0-1.el7.x86_64.rpm
error: Failed dependencies:
	libhistory.so.6()(64bit) is needed by aerospike-tools-6.1.0-1.el7.x86_64
	libreadline.so.6()(64bit) is needed by aerospike-tools-6.1.0-1.el7.x86_64
Installing server
rpm -Uvh aerospike-server-enterprise-5.7.0.17-1.el7.x86_64.rpm
error: Failed dependencies:
	libcrypto.so.10()(64bit) is needed by aerospike-server-enterprise-5.7.0.17-1.el7.x86_64
	libcrypto.so.10(libcrypto.so.10)(64bit) is needed by aerospike-server-enterprise-5.7.0.17-1.el7.x86_64
	libssl.so.10()(64bit) is needed by aerospike-server-enterprise-5.7.0.17-1.el7.x86_64
	libssl.so.10(libssl.so.10)(64bit) is needed by aerospike-server-enterprise-5.7.0.17-1.el7.x86_64

I see these packages are already installed. Can some please help me with this issue?

Aerospike 5.7 was initially released in 2021 - it doesn’t support Amazon Linux 2023.

Amazon Linux 2023 support was added with the 6.4 release.