Find the answer to your Linux question:
Results 1 to 6 of 6
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]: ...
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Posts
    3

    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
    955
    Have a look here.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    Just Joined!
    Join Date
    Dec 2010
    Posts
    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. #4
    Just Joined!
    Join Date
    Dec 2010
    Posts
    16
    Look in synaptics for -dev related to python packages.

  5. #5
    Just Joined!
    Join Date
    Dec 2010
    Posts
    3
    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?

  6. #6
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    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!"

Posting Permissions

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