In the http://docs.openstack.org/developer/keystone/setup.html (generate from keystone/doc/setup.rst):
the section "Installing dependencies":
"Fedora 15:
"$ sudo yum install python-sqlite2 python-lxml python-greenlet-devel python-ldap"
the "sqlite-devel" and "openldap-devel" are omitted.
or developer will get something like this (sqlite-devel as an example):
Running setup.py install for pysqlite
building 'pysqlite2._sqlite' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DMODULE_NAME="pysqlite2.dbapi2" -DSQLITE_OMIT_LOAD_EXTENSION=1 -I/usr/include/python2.6 -c src/module.c -o build/temp.linux-i686-2.6/src/module.o
In file included from src/module.c:24 :
src/connection.h:33:21: error: sqlite3.h:No such file or directory
In file included from src/module.c:24:
src/connection.h:38: error: expected specifier-qualifier-list before 'sqlite3'
In file included from src/module.c:25:
src/statement.h:37: error: expected specifier-qualifier-list before 'sqlite3'
src/module.c: In function'module_complete'中:
src/module.c:103: implicit declaration of function'sqlite3_complete'
src/module.c: At top level:
src/module.c:269: error: 'SQLITE_OK'undeclared here(not In function)
src/module.c:270: error: 'SQLITE_DENY'undeclared here(not In function)
src/module.c:271: error: 'SQLITE_IGNORE'undeclared here(not In function)
src/module.c:272: error: 'SQLITE_CREATE_INDEX'undeclared here(not In function)
src/module.c:273: error: 'SQLITE_CREATE_TABLE'undeclared here(not In function)
src/module.c:274: error: 'SQLITE_CREATE_TEMP_INDEX'undeclared here(not In function)
src/module.c:275: error: 'SQLITE_CREATE_TEMP_TABLE'undeclared here(not In function)
src/module.c:276: error: 'SQLITE_CREATE_TEMP_TRIGGER'undeclared here(not In function)
src/module.c:277: error: 'SQLITE_CREATE_TEMP_VIEW'undeclared here(not In function)
src/module.c:278: error: 'SQLITE_CREATE_TRIGGER'undeclared here(not In function)
src/module.c:279: error: 'SQLITE_CREATE_VIEW'undeclared here(not In function)
src/module.c:280: error: 'SQLITE_DELETE'undeclared here(not In function)
src/module.c:281: error: 'SQLITE_DROP_INDEX'undeclared here(not In function)
src/module.c:282: error: 'SQLITE_DROP_TABLE'undeclared here(not In function)
src/module.c:283: error: 'SQLITE_DROP_TEMP_INDEX'undeclared here(not In function)
src/module.c:284: error: 'SQLITE_DROP_TEMP_TABLE'undeclared here(not In function)
src/module.c:285: error: 'SQLITE_DROP_TEMP_TRIGGER'undeclared here(not In function)
src/module.c:286: error: 'SQLITE_DROP_TEMP_VIEW'undeclared here(not In function)
src/module.c:287: error: 'SQLITE_DROP_TRIGGER'undeclared here(not In function)
src/module.c:288: error: 'SQLITE_DROP_VIEW'undeclared here(not In function)
src/module.c:289: error: 'SQLITE_INSERT'undeclared here(not In function)
src/module.c:290: error: 'SQLITE_PRAGMA'undeclared here(not In function)
src/module.c:291: error: 'SQLITE_READ'undeclared here(not In function)
src/module.c:292: error: 'SQLITE_SELECT'undeclared here(not In function)
src/module.c:293: error: 'SQLITE_TRANSACTION'undeclared here(not In function)
src/module.c:294: error: 'SQLITE_UPDATE'undeclared here(not In function)
src/module.c:295: error: 'SQLITE_ATTACH'undeclared here(not In function)
src/module.c:296: error: 'SQLITE_DETACH'undeclared here(not In function)
src/module.c: In function 'init_sqlite':
src/module.c:426: implicit declaration of function'sqlite3_libversion'
src/module.c:426: warning: passing argument 1 of 'PyString_FromString' makes
pointer from integer without a cast
/usr/include/python2.6/stringobject.h:63: note: expected 'const char *' but
argument is of type 'int'
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /home/Glraey.Laptop/OpenStack/keystone/.venv/bin/python -c "import setuptools, tokenize;__file__='/home/Glraey.Laptop/OpenStack/keystone/.venv/build/pysqlite/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-QQ3qV2-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/Glraey.Laptop/OpenStack/keystone/.venv/include/site/python2.6 failed with error code 1 in /home/Glraey.Laptop/OpenStack/keystone/.venv/build/pysqlite
Storing debug log for failure in /home/Glraey.Laptop/.pip/pip.log
Command "tools/with_venv.sh pip install --upgrade -r /home/Glraey.Laptop/OpenStack/keystone/requirements.txt -r /home/Glraey.Laptop/OpenStack/keystone/test-requirements.txt" failed.
besides, python-sqlite2 has no dependencies of sqlite-devel:
> yum deplist python-sqlite2
Finding dependencies: 6(GLIBC_ 2.3) 6(GLIBC_ 2.1.3) 6(GLIBC_ 2.4) 6(GLIBC_ 2.0)
package: python-sqlite2.i686 1:2.3.5-2.el6
dependency: libc.so.
provider: glibc.i686 2.12-1.132.el6
dependency: python(abi) = 2.6
provider: python.i686 2.6.6-51.el6
provider: python.i686 2.6.6-52.el6
dependency: sqlite >= 3.3.3
provider: sqlite.i686 3.6.20-1.el6
dependency: libc.so.
provider: glibc.i686 2.12-1.132.el6
dependency: rtld(GNU_HASH)
provider: glibc.i686 2.12-1.132.el6
dependency: libc.so.6
provider: glibc.i686 2.12-1.132.el6
dependency: libsqlite3.so.0
provider: sqlite.i686 3.6.20-1.el6
dependency: libpthread.so.0
provider: glibc.i686 2.12-1.132.el6
dependency: libc.so.
provider: glibc.i686 2.12-1.132.el6
dependency: libc.so.
provider: glibc.i686 2.12-1.132.el6
dependency: libpython2.6.so.1.0
provider: python-libs.i686 2.6.6-51.el6
provider: python-libs.i686 2.6.6-52.el6