Menu

Install error in Ubuntu

Paulino
2007-06-29
2013-04-29
  • Paulino

    Paulino - 2007-06-29

    I have this error while installing pymssql in Ubuntu 7.04.
    I have previously installed the packages freetds-dev and tdsodbc.

    abc@abuntu:~/pymssql-0.8.0$ sudo python setup.py install
    Password:
    running install
    running build
    running build_py
    running build_ext
    building '_mssql' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include -I/usr/local/include -I/usr/include/freetds -I/usr/local/include/freetds -I/usr/pkg/freetds/include -I/usr/include/python2.5 -c mssqldbmodule.c -o build/temp.linux-i686-2.5/mssqldbmodule.o
    mssqldbmodule.c:31:20: error: Python.h: Ficheiro ou directoria inexistente
    mssqldbmodule.c:32:26: error: structmember.h: Ficheiro ou directoria inexistente
    mssqldbmodule.c:33:22: error: datetime.h: Ficheiro ou directoria inexistente
    mssqldbmodule.c:81:19: error: stdio.h: Ficheiro ou directoria inexistente
    mssqldbmodule.c:82:52: error: string.h: Ficheiro ou directoria inexistente
    mssqldbmodule.c:83:51: error: stdlib.h: Ficheiro ou directoria inexistente
    mssqldbmodule.c:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c:109: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c:114: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
    mssqldbmodule.c:125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c:126: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c:129: error: expected declaration specifiers or ‘...’ before ‘size_t’
    mssqldbmodule.c:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mssql_ConnectionObj_Type’
    mssqldbmodule.c:148: error: ‘NULL’ undeclared here (not in a function)
    mssqldbmodule.c:159: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c:280: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c:312: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c:343: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c:414: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c:436: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c: In function ‘err_handler’:
    mssqldbmodule.c:471: error: ‘_mssql_ConnectionObj’ has no member named ‘dbproc’
    mssqldbmodule.c:472: error: ‘_mssql_ConnectionObj’ has no member named ‘mssql_error_str’
    mssqldbmodule.c:473: error: ‘_mssql_ConnectionObj’ has no member named ‘mssql_severity’
    mssqldbmodule.c:485: warning: implicit declaration of function ‘snprintf’
    mssqldbmodule.c:485: warning: incompatible implicit declaration of built-in function ‘snprintf’
    mssqldbmodule.c:485: warning: implicit declaration of function ‘strlen’
    mssqldbmodule.c:485: warning: incompatible implicit declaration of built-in function ‘strlen’
    mssqldbmodule.c:517: warning: implicit declaration of function ‘strerror’
    mssqldbmodule.c:517: warning: initialization makes pointer from integer without a cast
    mssqldbmodule.c: In function ‘msg_handler’:
    mssqldbmodule.c:567: error: ‘_mssql_ConnectionObj’ has no member named ‘dbproc’
    mssqldbmodule.c:568: error: ‘_mssql_ConnectionObj’ has no member named ‘mssql_error_str’
    mssqldbmodule.c:569: error: ‘_mssql_ConnectionObj’ has no member named ‘mssql_severity’
    mssqldbmodule.c:582: warning: incompatible implicit declaration of built-in function ‘snprintf’
    mssqldbmodule.c:582: warning: incompatible implicit declaration of built-in function ‘strlen’
    mssqldbmodule.c: At top level:
    mssqldbmodule.c:608: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c:722: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c:742: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c: In function ‘_mssql_ConnectionObj_dealloc’:
    mssqldbmodule.c:760: error: ‘_mssql_ConnectionObj’ has no member named ‘connected’
    mssqldbmodule.c:761: error: ‘PyObject’ undeclared (first use in this function)
    mssqldbmodule.c:761: error: (Each undeclared identifier is reported only once
    mssqldbmodule.c:761: error: for each function it appears in.)
    mssqldbmodule.c:761: error: ‘o’ undeclared (first use in this function)
    mssqldbmodule.c:761: warning: implicit declaration of function ‘_mssql_close’
    mssqldbmodule.c:762: warning: implicit declaration of function ‘Py_XDECREF’
    mssqldbmodule.c:765: warning: implicit declaration of function ‘PyObject_Free’
    mssqldbmodule.c: At top level:
    mssqldbmodule.c:769: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c:780: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mssql_ConnectionObj_methods’
    mssqldbmodule.c:793: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mssql_ConnectionObj_members’
    mssqldbmodule.c:805: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mssql_ConnectionObj_Type’
    mssqldbmodule.c:852: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_mssql_methods’
    mssqldbmodule.c:863: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘init_mssql’
    mssqldbmodule.c:930: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c:996: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    mssqldbmodule.c:1122: error: expected declaration specifiers or ‘...’ before ‘size_t’
    mssqldbmodule.c: In function ‘rmv_lcl’:
    mssqldbmodule.c:1125: error: ‘size_t’ undeclared (first use in this function)
    mssqldbmodule.c:1125: error: expected ‘;’ before ‘l’
    mssqldbmodule.c:1140: error: ‘l’ undeclared (first use in this function)
    mssqldbmodule.c:1141: error: ‘buflen’ undeclared (first use in this function)
    mssqldbmodule.c: In function ‘clr_err’:
    mssqldbmodule.c:1160: error: ‘_mssql_ConnectionObj’ has no member named ‘mssql_error_str’
    mssqldbmodule.c:1162: error: ‘_mssql_ConnectionObj’ has no member named ‘mssql_severity’
    mssqldbmodule.c: In function ‘maybe_raise’:
    mssqldbmodule.c:1173: error: ‘PyObject’ undeclared (first use in this function)
    mssqldbmodule.c:1173: error: ‘o’ undeclared (first use in this function)
    mssqldbmodule.c:1177: warning: implicit declaration of function ‘PyObject_GetAttr’
    mssqldbmodule.c:1177: error: ‘_mssql_module’ undeclared (first use in this function)
    mssqldbmodule.c:1177: warning: implicit declaration of function ‘PyString_FromString’
    mssqldbmodule.c:1178: warning: implicit declaration of function ‘PyInt_AS_LONG’
    mssqldbmodule.c:1179: warning: implicit declaration of function ‘Py_DECREF’
    mssqldbmodule.c:1181: error: ‘_mssql_ConnectionObj’ has no member named ‘mssql_severity’
    mssqldbmodule.c:1185: error: ‘_mssql_ConnectionObj’ has no member named ‘mssql_error_str’
    mssqldbmodule.c:1187: warning: implicit declaration of function ‘PyErr_SetString’
    mssqldbmodule.c:1187: error: ‘_mssql_error’ undeclared (first use in this function)
    mssqldbmodule.c:1190: error: ‘Py_BEGIN_ALLOW_THREADS’ undeclared (first use in this function)
    mssqldbmodule.c:1191: error: expected ‘;’ before ‘dbcancel’
    mssqldbmodule.c:1192: error: ‘Py_END_ALLOW_THREADS’ undeclared (first use in this function)
    mssqldbmodule.c:1194: error: expected ‘;’ before ‘return’
    error: command 'gcc' failed with exit status 1

    Thank You,

    Paulino

     
    • Paulino

      Paulino - 2007-06-29

      It was the python-dev package missing

      I'm sorry :)

       

Log in to post a comment.