Subject Re: [firebird-python] Error installing kinterbasdb on Ubuntu 12.04 64 bit
Author mariuz
On Fri, May 18, 2012 at 02:23:59PM -0700, Maximiliano Robaina wrote:
> Hi,
> I'm trying to install kinterbasdb on Ubuntu Server 12.04 64 bits (python 2.7.3) but I get this error:
>
> building 'kinterbasdb._kiservices' extension
>
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -UNDEBUG -I/usr/include/python2.7 -I/usr/include/python2.7 -c _kiservices.c -o build/temp.linux-x86_64-2.7/_kiservices.o -pedantic -g -std=c99 -fno-strict-aliasing -pthread -O3
>
> _kiservices.c: In function ‘_init_kiservices_ibase_header_constants’:
>
> _kiservices.c:809:3: error: ‘isc_info_db_impl_isc_a’ undeclared (first use in this function)
>
> _kiservices.c:809:3: note: each undeclared identifier is reported only once for each function it appears in
>
> _kiservices.c:811:3: error: ‘isc_info_db_impl_isc_u’ undeclared (first use in this function)
>
> _kiservices.c:813:3: error: ‘isc_info_db_impl_isc_v’ undeclared (first use in this function)
>
> _kiservices.c:815:3: error: ‘isc_info_db_impl_isc_s’ undeclared (first use in this function)
>
> error: command 'gcc' failed with exit status 1
>
>
> What am I doing wrong here?
> How can I resolve this?
Old driver
svn co https://firebird.svn.sourceforge.net/svnroot/firebird/python/kinterbasdb/trunk/ kinterbasdb
cd kinterbasdb
sudo python setup.py install


New driver can installed with
pip install fdb


To use the documentation for the moment you can use the kinterbasdb
one just for reference
http://www.firebirdsql.org/file/documentation/drivers_documentation/python/3.3.0/tutorial.html#connecting-to-a-database
this might be handy
import fdb as kinterbasdb