aerospike-client-python
aerospike-client-python copied to clipboard
Unable to install aerospike on CentOS
I am getting the following error upon running: pip install aerospike The environment is: CentOS Linux release 7.3.1611 (Core)
pip install --no-cache aerospike Collecting aerospike Downloading aerospike-2.0.6.tar.gz (102kB) 100% |████████████████████████████████| 102kB 177kB/s Installing collected packages: aerospike Running setup.py install for aerospike ... error Complete output from command /apps/anaconda/4.1.1/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-SaPt1h/aerospike/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-7nehSw-record/install-record.txt --single-version-externally-managed --compile: info: Executing ./scripts/aerospike-client-c.sh which: no lsb_release in (/opt/anaconda/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/common/.local/bin:/home/common/bin) rpm: /opt/anaconda/lib/liblzma.so.5: version `XZ_5.1.2alpha' not found (required by /lib64/librpmio.so.3) error: is not supported. error: scripts/aerospike-client-c.sh 1
----------------------------------------
Command "/apps/anaconda/4.1.1/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-SaPt1h/aerospike/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-7nehSw-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-SaPt1h/aerospike/
I think you have to install redhat-lsb package.
With pip (>=19.0) and latest python client (>=3.8.0), you should be able to install on linux without needing to compile or install any other dependencies anymore.