Skip to content

Instantly share code, notes, and snippets.

@Alir3z4
Created August 5, 2012 16:09
Show Gist options
  • Save Alir3z4/3265563 to your computer and use it in GitHub Desktop.
Save Alir3z4/3265563 to your computer and use it in GitHub Desktop.
python setup.py install fetch
[root@centia apsw-3.7.13-r1]# python setup.py install fetch
running install
running build
running build_ext
SQLite: Using system sqlite include/libraries
building 'apsw' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DEXPERIMENTAL=1 -DNDEBUG=1 -DAPSW_FORK_CHECKER=1 -DSQLITE_OMIT_LOAD_EXTENSION=1 -Isrc -I/usr/local/include/python2.7 -c src/apsw.c -o build/temp.linux-x86_64-2.7/src/apsw.o
src/apsw.c:62:2: error: #error Your SQLite version is too old. It must be at least 3.7.13
In file included from /usr/local/include/python2.7/Python.h:8,
from src/apsw.c:73:
/usr/local/include/python2.7/pyconfig.h:1149:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/assert.h:37,
from src/apsw.c:66:
/usr/include/features.h:213:1: warning: this is the location of the previous definition
In file included from src/apsw.c:140:
src/connection.c: In function ‘Connection_readonly’:
src/connection.c:3198: warning: implicit declaration of function ‘sqlite3_db_readonly’
src/connection.c: In function ‘Connection_db_filename’:
src/connection.c:3227: warning: implicit declaration of function ‘sqlite3_db_filename’
src/connection.c:3227: warning: assignment makes pointer from integer without a cast
src/connection.c: In function ‘Connection_getmainfilename’:
src/connection.c:3244: warning: passing argument 1 of ‘convertutf8string’ makes pointer from integer without a cast
src/pyutil.c:261: note: expected ‘const char *’ but argument is of type ‘int’
In file included from src/apsw.c:155:
src/vfs.c: In function ‘apswurifilename_uri_int’:
src/vfs.c:2907: warning: implicit declaration of function ‘sqlite3_uri_int64’
src/vfs.c: In function ‘apswurifilename_uri_boolean’:
src/vfs.c:2929: warning: implicit declaration of function ‘sqlite3_uri_boolean’
src/apsw.c: In function ‘initapsw’:
src/apsw.c:1647: error: ‘SQLITE_ABORT_ROLLBACK’ undeclared (first use in this function)
src/apsw.c:1647: error: (Each undeclared identifier is reported only once
src/apsw.c:1647: error: for each function it appears in.)
src/apsw.c:1648: error: ‘SQLITE_CANTOPEN_ISDIR’ undeclared (first use in this function)
src/apsw.c:1703: error: ‘SQLITE_OPEN_MEMORY’ undeclared (first use in this function)
src/apsw.c:1739: error: ‘SQLITE_CONFIG_PCACHE2’ undeclared (first use in this function)
src/apsw.c:1740: error: ‘SQLITE_CONFIG_GETPCACHE2’ undeclared (first use in this function)
src/apsw.c:1773: error: ‘SQLITE_DBSTATUS_CACHE_WRITE’ undeclared (first use in this function)
src/apsw.c:1803: error: ‘SQLITE_IOCAP_POWERSAFE_OVERWRITE’ undeclared (first use in this function)
src/apsw.c:1830: error: ‘SQLITE_FCNTL_POWERSAFE_OVERWRITE’ undeclared (first use in this function)
src/apsw.c:1831: error: ‘SQLITE_FCNTL_VFSNAME’ undeclared (first use in this function)
src/apsw.c:1832: error: ‘SQLITE_FCNTL_PRAGMA’ undeclared (first use in this function)
error: command 'gcc' failed with exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment