aerospike-client-python
aerospike-client-python copied to clipboard
Aerospike alpine installation failure
The library fails to install on alpine images.
Steps followed:
apk add --no-cache build-base openssl-dev zlib-dev
pip install aerospike
src/main/client/set_xdr_filter.c: In function 'AerospikeClient_SetXDRFilter':
src/main/client/set_xdr_filter.c:119:2: error: unknown type name 'uint'; did you mean 'int'?
119 | uint request_length = strlen(fmt_str) + strlen(data_center_str_p) +
| ^~~~
| int
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
uint is not recognised by gcc in alpine linux
I compiled from source by adding
typedef unsigned int uint;
in the set_xdr_filter.c file and the build compiled successfully.
If this is the correct solution to go ahead I can submit an MR to make aerospike builds alpine compatible.
@dwelch-spike can you look into this, this seems like a simple fix and it provides great abilities to use alpine as base image.
I can submit the MR for the same.
Hi @anuragagarwal561994, currently looking into this.
Thanks @juliannguyen4
Support will be added in the upcoming release
Thanks @juliannguyen4