aerospike-client-python icon indicating copy to clipboard operation
aerospike-client-python copied to clipboard

Aerospike alpine installation failure

Open anuragagarwal561994 opened this issue 3 years ago • 2 comments

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

anuragagarwal561994 avatar Mar 19 '22 14:03 anuragagarwal561994

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.

anuragagarwal561994 avatar Mar 19 '22 14:03 anuragagarwal561994

@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.

anuragagarwal561994 avatar Jul 31 '22 22:07 anuragagarwal561994

Hi @anuragagarwal561994, currently looking into this.

juliannguyen4 avatar Jan 05 '23 20:01 juliannguyen4

Thanks @juliannguyen4

anuragagarwal561994 avatar Jan 07 '23 19:01 anuragagarwal561994

Support will be added in the upcoming release

juliannguyen4 avatar Jan 17 '23 21:01 juliannguyen4

Thanks @juliannguyen4

anuragagarwal561994 avatar Jan 17 '23 21:01 anuragagarwal561994