Install failed in centos

I was going to install aerospike in centos, when I

cd aerospike-server-community-3.7.5.1-el6

and then do ./asinstall

It displayed as follows

[root@iZ23y60imlfZ aerospike-server-community-3.7.5.1-el6]# ./asinstall 
Installing tools dependencies
Installing tools
rpm -Uvh aerospike-tools-3.7.5-1.el6.x86_64.rpm
Preparing...                          ################################# [100%]
	package aerospike-tools-3.7.5-1.el6.x86_64 is already installed
Installing server
rpm -Uvh aerospike-server-community-3.7.5.1-1.el6.x86_64.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:aerospike-server-community-3.7.5.################################# [100%]
error: unpacking of archive failed on file /var/run/aerospike: cpio: mkdir failed - No such file or directory
error: aerospike-server-community-3.7.5.1-1.el6.x86_64: install failed

So, how can I fix this?

  1. Can you please verify that the checksums match with those present in the SHA256SUMS file? You can run the command on each file and compare with the reported checksum in the file. For example:
    $  sha256sum aerospike-server-community-3.7.5-1.el6.x86_64.rpm
        aaf2bc1227136a4a60f1c65b19c75559c5fd981a94ddffcc4827d7673aa86907  aerospike-server-community-3.7.5-1.el6.x86_64.rpm
  1. You already have a server installed. Paste the output of:
    $ sudo rpm -qa | grep aerospike

Please uninstall the same and try re-installing the server.

did you try installing as sudo?

$ sudo ./asinstall

The operations are already being performed as root user (identified by the ‘#’ prompt). Hence, sudo is not required.