Need help in deploying aerospike on ubuntu 18 + gcp

#1

when i try to install aerospike on ubuntu 18.04 lts + gce it needs a pre-install of python, but after i install python it does not continue the install.

wget -O aerospike.tgz 'https://www.aerospike.com/download/server/latest/artifact/ubuntu18'

# for ubuntu 16.04, replace "ubuntu14" with ubuntu16
# for ubuntu 18.04, replace "ubuntu14" with ubuntu18

tar -xvf aerospike.tgz
cd aerospike-server-community-*-ubuntu18*

# for ubuntu 16.04, replace "ubuntu14" with ubuntu16
# for ubuntu 18.04, replace "ubuntu14" with ubuntu18

cd home/usename100/

cd aerospike-server-community-*-ubuntu18*

sudo ./asinstall # will install the .deb packages

=================================================

Checking dependencies
Dependency not found: python 2.6+ (< 3)
Failed to find all dependencies. Please install all required packages.
meirab100@instance-1:~/aerospike-server-community-4.5.1.5-ubuntu18.04$ 

python2.7 -V
Python 2.7.15

=================================================

sudo service aerospike start && \
sudo tail -f /var/log/aerospike/aerospike.log | grep cake

# Wait for it. "service ready: soon there will be cake!"
# For systemd based installations, check in the journald facility.

As you can see from the reply, after you try: sudo ./asinstall # will install the .deb packages you cannot continue, even if python < 3 is installed.

#2

What is the output of:

python -V
sudo python -V

Also, only the tools package relies on python, you can install just the server by running:

sudo apt install aerospike-server-community-*.ubuntu18.04.x86_64.deb
#3

hello Kevin Porter - Aerospike

= = = = = = = = = = = = = = = =

  i repeated the same install steps, but this time install python

2.7.15 before aerospike install.

  (gif --> with same result - failed. the install is in

GCE/ubuntu18.04lts)

python -V

Command ‘python’ not found, but can be installed with:

apt install python3

apt install python

apt install python-minimal

Ask your administrator to install one of them.

You also have python3 installed, you can run ‘python3’ instead.

sudo python -V

sudo: python: command not found

the command that works: python2.7 -V

Python 2.7.15

thank-you.

#4

o.k solved. the steps needed for aerospike in ubuntu 18.04lts + python < 3 are:


Installing pip for Python 2

Python 2 is not installed by default in Ubuntu 18.04. To install Python 2 and pip for Python 2, complete the following steps:

Update the package index by running the following command:

sudo apt update

Install pip for Python 2 with:

sudo apt install python-pip

The command above will install Python2, Pip and all the dependencies required for building Python modules.

Verify the installation by printing the pip version number:

pip --version
python -V

pwd

cd home/username/

wget -O aerospike.tgz ‘https://www.aerospike.com/download/server/latest/artifact/ubuntu18

for ubuntu 16.04, replace “ubuntu14” with ubuntu16

for ubuntu 18.04, replace “ubuntu14” with ubuntu18

tar -xvf aerospike.tgz cd aerospike-server-community--ubuntu18

for ubuntu 16.04, replace “ubuntu14” with ubuntu16

for ubuntu 18.04, replace “ubuntu14” with ubuntu18

pwd

sudo ./asinstall # will install the .deb packages

sudo service aerospike start &&
sudo tail -f /var/log/aerospike/aerospike.log | grep cake

Wait for it. “service ready: soon there will be cake!”

For systemd based installations, check in the journald facility.