Error pip installing on CentOS, python 2.7

Hey

I am running Python 2.7 on CentOS 6.5. When doing a pip install aerospike I get the following error

[root@user-profile-dev03 ~]# pip install aerospike
Collecting aerospike
  Using cached aerospike-1.0.36.tar.gz
    info: liblua found:  /usr/lib64/liblua-5.1.so
Installing collected packages: aerospike
  Running setup.py install for aerospike
    which: no lsb_release in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    info: downloading 'http://www.aerospike.com/download/client/c/3.0.94/artifact/el6' to '/tmp/pip-build-gs0775/aerospike/aerospike-client-c/package/aerospike-client-c.tgz'
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 13.8M  100 13.8M    0     0  7462k      0  0:00:01  0:00:01 --:--:-- 10.1M
    info: extracting 'aerospike-client-c-3.0.94.el6.x86_64/aerospike-client-c-devel-3.0.94-1.el6.x86_64.rpm' from 'aerospike-client-c.tgz'
    info: extracting files from 'aerospike-client-c-3.0.94.el6.x86_64/aerospike-client-c-devel-3.0.94-1.el6.x86_64.rpm'
    11677 blocks
    CHECK
       [βœ“] /tmp/pip-build-gs0775/aerospike/aerospike-client-c/package/usr/lib/libaerospike.a
       [βœ“] /tmp/pip-build-gs0775/aerospike/aerospike-client-c/package/usr/include/aerospike/aerospike.h
       [βœ“] /tmp/pip-build-gs0775/aerospike/aerospike-client-c/package/opt/aerospike/client/sys/udf/lua/aerospike.lua
    info: liblua found:  /usr/lib64/liblua-5.1.so
    info: Executing ./scripts/aerospike-client-c.sh
    info: aerospike.h found: ./aerospike-client-c/include/aerospike/aerospike.h
    info: libaerospike.a found: ./aerospike-client-c/lib/libaerospike.a
    building 'aerospike' extension
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I./aerospike-client-c/include -I./aerospike-client-c/include/ck -Isrc/include -I/usr/include/python2.7 -c src/main/aerospike.c -o build/temp.linux-x86_64-2.7/src/main/aerospike.o -std=gnu99 -g -Wall -fPIC -O1 -fno-common -fno-strict-aliasing -finline-functions -march=nocona -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -rdynamic -DMARCH_x86_64
    src/main/aerospike.c:17:20: error: Python.h: No such file or directory
    In file included from src/include/client.h:21,
                     from src/main/aerospike.c:22:
    src/include/types.h:29: error: expected specifier-qualifier-list before β€˜PyObject_HEAD’
    src/include/types.h:34: error: expected specifier-qualifier-list before β€˜PyObject_HEAD’
    src/include/types.h:42: error: expected specifier-qualifier-list before β€˜PyObject_HEAD’
    src/include/types.h:48: error: expected specifier-qualifier-list before β€˜PyObject_HEAD’
    In file included from src/main/aerospike.c:22:
    src/include/client.h:29: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:34: error: expected β€˜)’ before β€˜*’ token
    src/include/client.h:43: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:48: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:61: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:69: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:77: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:85: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:93: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:101: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:109: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:116: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:123: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:130: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:137: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:143: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:148: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:152: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:156: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:160: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:182: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/client.h:182: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/client.h:207: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/client.h:207: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/client.h:232: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/client.h:232: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/client.h:253: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:265: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:273: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:281: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:293: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:301: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:309: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:324: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:332: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:339: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/client.h:347: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    In file included from src/main/aerospike.c:23:
    src/include/key.h:31: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/key.h:33: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/key.h:33: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/key.h:46: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/key.h:55: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/key.h:63: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/key.h:84: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/key.h:93: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    In file included from src/main/aerospike.c:24:
    src/include/query.h:31: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/query.h:33: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/query.h:33: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/query.h:51: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/query.h:51: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/query.h:59: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/query.h:67: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/query.h:67: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/query.h:78: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/query.h:87: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    In file included from src/main/aerospike.c:25:
    src/include/scan.h:31: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/scan.h:33: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/scan.h:33: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/scan.h:51: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/scan.h:51: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/scan.h:70: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    src/include/scan.h:79: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    In file included from src/main/aerospike.c:26:
    src/include/predicates.h:21: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    In file included from src/main/aerospike.c:27:
    src/include/policy.h:35: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/policy.h:39: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/policy.h:43: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/policy.h:47: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/policy.h:51: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/policy.h:55: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/policy.h:59: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/policy.h:63: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/policy.h:67: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/policy.h:71: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/include/policy.h:75: error: expected β€˜)’ before β€˜*’ token
    src/include/policy.h:77: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    src/main/aerospike.c:29: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜Aerospike_Methods’
    src/main/aerospike.c:37: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜initaerospike’
    error: command 'gcc' failed with exit status 1
    Complete output from command /usr/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-gs0775/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-YQNvDy-record/install-record.txt --single-version-externally-managed --compile:
    which: no lsb_release in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
    
    info: downloading 'http://www.aerospike.com/download/client/c/3.0.94/artifact/el6' to '/tmp/pip-build-gs0775/aerospike/aerospike-client-c/package/aerospike-client-c.tgz'
    
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
    
                                     Dload  Upload   Total   Spent    Left  Speed
    
    100 13.8M  100 13.8M    0     0  7462k      0  0:00:01  0:00:01 --:--:-- 10.1M
    
    info: extracting 'aerospike-client-c-3.0.94.el6.x86_64/aerospike-client-c-devel-3.0.94-1.el6.x86_64.rpm' from 'aerospike-client-c.tgz'
    
    info: extracting files from 'aerospike-client-c-3.0.94.el6.x86_64/aerospike-client-c-devel-3.0.94-1.el6.x86_64.rpm'
    
    11677 blocks
    
    
    
    CHECK
    
       [βœ“] /tmp/pip-build-gs0775/aerospike/aerospike-client-c/package/usr/lib/libaerospike.a
    
       [βœ“] /tmp/pip-build-gs0775/aerospike/aerospike-client-c/package/usr/include/aerospike/aerospike.h
    
       [βœ“] /tmp/pip-build-gs0775/aerospike/aerospike-client-c/package/opt/aerospike/client/sys/udf/lua/aerospike.lua
    
    
    
    info: liblua found:  /usr/lib64/liblua-5.1.so
    
    info: Executing ./scripts/aerospike-client-c.sh
    
    info: aerospike.h found: ./aerospike-client-c/include/aerospike/aerospike.h
    
    info: libaerospike.a found: ./aerospike-client-c/lib/libaerospike.a
    
    running install
    
    running build
    
    running build_ext
    
    building 'aerospike' extension
    
    creating build
    
    creating build/temp.linux-x86_64-2.7
    
    creating build/temp.linux-x86_64-2.7/src
    
    creating build/temp.linux-x86_64-2.7/src/main
    
    creating build/temp.linux-x86_64-2.7/src/main/client
    
    creating build/temp.linux-x86_64-2.7/src/main/key
    
    creating build/temp.linux-x86_64-2.7/src/main/query
    
    creating build/temp.linux-x86_64-2.7/src/main/scan
    
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I./aerospike-client-c/include -I./aerospike-client-c/include/ck -Isrc/include -I/usr/include/python2.7 -c src/main/aerospike.c -o build/temp.linux-x86_64-2.7/src/main/aerospike.o -std=gnu99 -g -Wall -fPIC -O1 -fno-common -fno-strict-aliasing -finline-functions -march=nocona -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -rdynamic -DMARCH_x86_64
    
    src/main/aerospike.c:17:20: error: Python.h: No such file or directory
    
    In file included from src/include/client.h:21,
    
                     from src/main/aerospike.c:22:
    
    src/include/types.h:29: error: expected specifier-qualifier-list before β€˜PyObject_HEAD’
    
    src/include/types.h:34: error: expected specifier-qualifier-list before β€˜PyObject_HEAD’
    
    src/include/types.h:42: error: expected specifier-qualifier-list before β€˜PyObject_HEAD’
    
    src/include/types.h:48: error: expected specifier-qualifier-list before β€˜PyObject_HEAD’
    
    In file included from src/main/aerospike.c:22:
    
    src/include/client.h:29: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:34: error: expected β€˜)’ before β€˜*’ token
    
    src/include/client.h:43: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:48: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:61: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:69: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:77: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:85: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:93: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:101: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:109: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:116: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:123: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:130: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:137: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:143: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:148: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:152: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:156: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:160: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:182: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/client.h:182: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/client.h:207: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/client.h:207: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/client.h:232: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/client.h:232: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/client.h:253: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:265: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:273: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:281: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:293: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:301: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:309: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:324: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:332: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:339: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/client.h:347: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    In file included from src/main/aerospike.c:23:
    
    src/include/key.h:31: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/key.h:33: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/key.h:33: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/key.h:46: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/key.h:55: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/key.h:63: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/key.h:84: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/key.h:93: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    In file included from src/main/aerospike.c:24:
    
    src/include/query.h:31: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/query.h:33: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/query.h:33: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/query.h:51: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/query.h:51: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/query.h:59: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/query.h:67: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/query.h:67: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/query.h:78: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/query.h:87: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    In file included from src/main/aerospike.c:25:
    
    src/include/scan.h:31: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/scan.h:33: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/scan.h:33: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/scan.h:51: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/scan.h:51: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/scan.h:70: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    src/include/scan.h:79: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    In file included from src/main/aerospike.c:26:
    
    src/include/predicates.h:21: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜*’ token
    
    In file included from src/main/aerospike.c:27:
    
    src/include/policy.h:35: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/policy.h:39: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/policy.h:43: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/policy.h:47: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/policy.h:51: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/policy.h:55: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/policy.h:59: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/policy.h:63: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/policy.h:67: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/policy.h:71: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/include/policy.h:75: error: expected β€˜)’ before β€˜*’ token
    
    src/include/policy.h:77: error: expected declaration specifiers or β€˜...’ before β€˜PyObject’
    
    src/main/aerospike.c:29: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜Aerospike_Methods’
    
    src/main/aerospike.c:37: error: expected β€˜=’, β€˜,’, β€˜;’, β€˜asm’ or β€˜__attribute__’ before β€˜initaerospike’
    
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
    Command "/usr/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-gs0775/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-YQNvDy-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-gs0775/aerospike

Any ideas?


Update I needed python-devel for python 2.7. Installing it fixed the issue.

1 Like

Aha. If that’s not mentioned in the build instructions I’ll update it. Thanks for catching that.