Menu

Building Issue

deejaybags
2006-10-25
2013-04-29
  • deejaybags

    deejaybags - 2006-10-25

    Im trying to build pymssql-0.8.0 and i get the following error:

    [root@dodge pymssql-0.8.0]# python setup.py install
      File "setup.py", line 47
        e += "Setup.py is unable to find SQL 2000 developer tools include directory.
    \n"
           ^
    SyntaxError: invalid syntax

    Python 2.5 and freetds 0.65 are installed as well...

    any ideas??

     
    • deejaybags

      deejaybags - 2006-10-25

      scratch that... i rebooted after reinstalling python2.5 and that error went away. But now i have a new error...

      [root@dodge pymssql-0.8.0]# python setup.py install
      running install
      running build
      running build_py
      running build_ext
      building '_mssql' extension
      gcc -pthread -shared build/temp.linux-i686-2.5/mssqldbmodule.o -L/usr/lib -L/usr
      /local/lib -L/usr/lib/freetds -L/usr/local/lib/freetds/usr/pkg/freetds/lib -lsyb
      db_mssql -o build/lib.linux-i686-2.5/_mssql.so
      /usr/bin/ld: cannot find -lsybdb_mssql
      collect2: ld returned 1 exit status
      error: command 'gcc' failed with exit status 1

      i also built rpms from the freetds source in an attempt to make things a little easier to manage...
      i needed to install unixODBC and unixODBC-devel for the rpms to build, no worries there...
      then i installed the freetds rpms that were built and then ran the install command again and received the above error.

      Thanks for any help that people can give...

       
      • A

        A - 2006-10-25

        Please change sybdb_mssql into sybdb. sybdb_mssql went away in newer versions of Mandriva Linux.

        Regards,
        Andrzej Kukula

         
    • deejaybags

      deejaybags - 2006-10-25

      scratch that again... wrong info in setup.py... im an idiot, i know, i know...

       
    • deejaybags

      deejaybags - 2006-10-25

      yup i worked that out too (see post calling self idiot several times)...
      thanks for your help...

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.