Results 1 to 2 of 2

Thread: gcc fails during pysqlite install

  1. #1
    Join Date
    Jun 2008
    Location
    Madrid
    Posts
    81

    Default gcc fails during pysqlite install

    Hello.
    I'm trying to install pysqlite, and receive the following
    Code:
    $ sudo python setup.py install
    
    ...
    src/module.c:248: error: ‘SQLITE_ATTACH’ undeclared here (not in a function)
    src/module.c:249: error: ‘SQLITE_DETACH’ undeclared here (not in a function)
    src/module.c: In function ‘init_sqlite’:
    src/module.c:376: warning: implicit declaration of function ‘sqlite3_libversion’
    src/module.c:376: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast
    error: command 'gcc' failed with exit status 1
    I have the latest version gcc available from yast:
    Code:
    $ rpm -q gcc
    gcc-4.3-39.1
    I am able to install other python modules without a problem. Any ideas?
    SuSE-12.3, Lenovo G780, 3.7.10-1.16-desktop

  2. #2
    Join Date
    Jun 2008
    Location
    Madrid
    Posts
    81

    Default [RESOLVED]: gcc fails during pysqlite install

    I didn't have sqlite3-devel installed. This did the trick.
    SuSE-12.3, Lenovo G780, 3.7.10-1.16-desktop

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •