Tools install fails on Amazon Linux with Python error


#1

Tools install fails on Amazon Linux with Python error

Problem Description

When installing Aerospike Tools on Amazon Linux the Tools install fails with the following error.

[ec2-user@ip-X.X.X.X aerospike-server-enterprise-4.3.1.5-el7]$ ls
aerospike-server-enterprise-4.3.1.5-1.el7.x86_64.rpm	asinstall	LICENSE
aerospike-tools-3.15.3.18-1.el7.x86_64.rpm				dep-check	SHA256SUMS
[ec2-user@ip-X.X.X.X aerospike-server-enterprise-4.3.1.5-el7]$ sudo ./asinstall

Checking dependancies
Installing tools
rpm -Uvh aerospike-tools-3.15.3.18-1.el7.x86_64.rpm
error: Failed dependencies:
		python is needed by aerospike-tools-3.15.3.18-1.el7.x86_64
Installing server
rpm -Uvh aerospike-server-enterprise-4.3.1.5-1.el7.x86_64.rpm
Preparing...						########################################### [100%]
Adding group aerospike
Adding user aerospike
Updating / installing
	1:aerospike-server-enterprise-4.3.1######################################## [100%]

The Aerospike server installs correctly.

When checked, Python is installed (pre-requisites state Python < v3 is acceptable)

Explanation

There is an issue with the tools package tracked within the Aerospike JIRA system whereby Python versions later than 2.6 are not recognised by the installer. The impact of this is that the Tools install fails. Please keep an eye on the release notes in the Aerospike Community to check when this is resolved.

Solution

A permanent solution is in progress, in the interim there are two workarounds.

The first workaround is to install the Aerospike Tools from the rpm file directly and bypass the dependancy check. The Aerospike Tools work with Python 2.7 without issue so this is a safe approach.

[ec2-user@ip-X.X.X.X aerospike-server-enterprise-4.3.1.5-el7]$ sudo rpm -Uvh aerospike-tools-3.15.3.18-1.el7.x86_64.rpm --nodeps 

The second workaround is to manually install Python 2.6.

[ec2-user@ip-X.X.X.X aerospike-server-enterprise-4.3.1.5-el7]$ sudo yum install python

Keywords

Tools fail python 2.7 Amazon EC2

Timestamp

11/14/18