Loading ...
Sorry, an error occurred while loading the content.

[Cheetahtemplate-discuss] src/_namemapper.c:15:58: error when trying to install Cheetah 2.0.1

Expand Messages
  • carwong88
    Hello, I ran into src/_namemapper.c errors and warnings when I tried to install Cheetah 2.0.1. Looks like I m missing some library. Does any one know what
    Message 1 of 2 , Oct 7, 2008
    • 0 Attachment
      Hello,

      I ran into "src/_namemapper.c" errors and warnings when I tried to install Cheetah 2.0.1. Looks like I'm missing some library.

      Does any one know what other library that I need in order to install Cheetah 2.0.1?

      carmenw@zpt5:/tmp/Cheetah-2.0.1$ sudo python setup.py install
      running install
      running build
      running build_py
      running build_ext
      building 'Cheetah._namemapper' extension
      gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.4 -c src/_namemapper.c -o build/temp.linux-i686-2.4/src/_namemapper.o
      src/_namemapper.c:15:58: error: Python.h: No such file or directory
      src/_namemapper.c:16:20: error: string.h: No such file or directory
      src/_namemapper.c:17:20: error: stdlib.h: No such file or directory
      src/_namemapper.c:24: error: syntax error before '*' token
      src/_namemapper.c:24: warning: type defaults to 'int' in declaration of 'NotFound'
      src/_namemapper.c:24: warning: data definition has no type or storage class
      src/_namemapper.c:25: error: syntax error before '*' token
      ...snip...
      src/_namemapper.c:478: warning: implicit declaration of function 'PyDict_SetItemString'
      src/_namemapper.c:480: warning: implicit declaration of function 'PyImport_ImportModule'
      src/_namemapper.c:480: warning: statement with no effect
      src/_namemapper.c:481: warning: assignment makes pointer from integer without a cast
      src/_namemapper.c:485: warning: implicit declaration of function 'Py_FatalError'
      error: command 'gcc' failed with exit status 1


      Thanks,
      ~Carmen
    • Tavis Rudd
      Carmen, It looks like you need to install the Python header files. I don t know what your OS/distro is, but most call the package python-dev or something
      Message 2 of 2 , Nov 10, 2008
      • 0 Attachment
        Carmen,
        It looks like you need to install the Python header files. I
        don't know what your OS/distro is, but most call the package 'python-dev'
        or something similar.
        Tavis

        On Tue, 7 Oct 2008, carwong88 wrote:

        > Hello,
        >
        > I ran into "src/_namemapper.c" errors and warnings when I tried to install
        > Cheetah 2.0.1. Looks like I'm missing some library.
        >
        > Does any one know what other library that I need in order to install Cheetah
        > 2.0.1?
        >
        > carmenw@zpt5:/tmp/Cheetah-2.0.1$ sudo python setup.py install
        > running install
        > running build
        > running build_py
        > running build_ext
        > building 'Cheetah._namemapper' extension
        > gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
        > -fPIC -I/usr/include/python2.4 -c src/_namemapper.c -o
        > build/temp.linux-i686-2.4/src/_namemapper.o
        > src/_namemapper.c:15:58: error: Python.h: No such file or directory
        > src/_namemapper.c:16:20: error: string.h: No such file or directory
        > src/_namemapper.c:17:20: error: stdlib.h: No such file or directory
        > src/_namemapper.c:24: error: syntax error before '*' token
        > src/_namemapper.c:24: warning: type defaults to 'int' in declaration of
        > 'NotFound'
        > src/_namemapper.c:24: warning: data definition has no type or storage class
        > src/_namemapper.c:25: error: syntax error before '*' token
        > ...snip...
        > src/_namemapper.c:478: warning: implicit declaration of function
        > 'PyDict_SetItemString'
        > src/_namemapper.c:480: warning: implicit declaration of function
        > 'PyImport_ImportModule'
        > src/_namemapper.c:480: warning: statement with no effect
        > src/_namemapper.c:481: warning: assignment makes pointer from integer
        > without a cast
        > src/_namemapper.c:485: warning: implicit declaration of function
        > 'Py_FatalError'
        > error: command 'gcc' failed with exit status 1
        >
        >
        > Thanks,
        > ~Carmen
        >

        -------------------------------------------------------------------------
        This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
        Build the coolest Linux based applications with Moblin SDK & win great prizes
        Grand prize is a trip for two to an Open Source event anywhere in the world
        http://moblin-contest.org/redirect.php?banner_id=100&url=/
        _______________________________________________
        Cheetahtemplate-discuss mailing list
        Cheetahtemplate-discuss@...
        https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
      Your message has been successfully submitted and would be delivered to recipients shortly.