Find the answer to your Linux question:
Results 1 to 6 of 6
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Python development header or "python-devel"?


    I'm trying to compile pocketsphinx using cygwin and i get an error when running make.

    collect2: ld returned 1 exit status
    error: command 'gcc' failed with exit status 1
    make[1]: *** [pymod-build-stamp] Error 1
    make[1]: Leaving directory `/cygdrive/c/MOBILE/SDK/pocketsphinx/base/sphinxbase-
    0.6.1/python'
    make: *** [all-recursive] Error 1


    From what I researched, it seems I need the python development header or "python-devel" package . Where can I get this and how do I install it?

    Hopefully someone can help even though I'm using cygwin...

    thank you!

    -Mike

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,454
    Have a look here.
    "I'm just a little old lady; don't try to dazzle me with jargon!"
    www.hrussman.entadsl.com

  3. #3
    I tried that but still same error. I'm thinking maybe gcc can't find a python lib or header. Is there a way to tell gcc to look in /usr/include/python2.6 for either a lib or header file?

  4. $spacer_open
    $spacer_close
  5. #4
    Look in synaptics for -dev related to python packages.

  6. #5
    Quote Originally Posted by MakiMaki View Post
    Look in synaptics for -dev related to python packages.
    That looks like GUI for apt, but I have cygwin and don't think I could run in.
    Does anyone know of a mirror for python-dev?

  7. #6
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,454
    Quote Originally Posted by mike6679 View Post
    I tried that but still same error. I'm thinking maybe gcc can't find a python lib or header. Is there a way to tell gcc to look in /usr/include/python2.6 for either a lib or header file?
    Yes, that's quite easy. The -I (that's upper case i) option tells gcc to look for included headers in a non-standard directory. The -L option tells it to do the same for library files. I assume these will work in cygwin too.
    "I'm just a little old lady; don't try to dazzle me with jargon!"
    www.hrussman.entadsl.com

Posting Permissions

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