By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,772 Members | 919 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,772 IT Pros & Developers. It's quick & easy.

Pystemmer 1.0.1 installation problem in Linux

P: n/a
Dear all,

I am a newbie to Python community. For my project, I tried to install
Pystemmer 1.0.1 (http://snowball.tartarus.org/wrappers/
PyStemmer-1.0.1.tar.gz) on my linux ubuntu 7.10 machine but
unsuccessful. It produced the following error:

running install
running build
running build_ext
building 'Stemmer' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-
prototypes -fPIC -Isrc -Ilibstemmer_c/include -I/usr/include/python2.5
-c libstemmer_c/src_c/stem_ISO_8859_1_danish.c -o build/temp.linux-
i686-2.5/libstemmer_c/src_c/stem_ISO_8859_1_danish.o
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.3/include/
syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.1.3/include/
limits.h:11,
from libstemmer_c/src_c/../runtime/header.h:2,
from libstemmer_c/src_c/stem_ISO_8859_1_danish.c:4:
/usr/lib/gcc/i486-linux-gnu/4.1.3/include/limits.h:122:61: error:
limits.h: No such file or directory
error: command 'gcc' failed with exit status 1

Did anyone experience this before?

Any comment/suggestion is highly appreciated.

Thank you.

Best regards,

Supheakmungkol
Mar 27 '08 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Hello Supheakmungkol,
I am a newbie to Python community. For my project, I tried to install
Pystemmer 1.0.1 (http://snowball.tartarus.org/wrappers/
PyStemmer-1.0.1.tar.gz) on my linux ubuntu 7.10 machine but
unsuccessful. It produced the following error:

running install
running build
running build_ext
building 'Stemmer' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-
prototypes -fPIC -Isrc -Ilibstemmer_c/include -I/usr/include/python2.5
-c libstemmer_c/src_c/stem_ISO_8859_1_danish.c -o build/temp.linux-
i686-2.5/libstemmer_c/src_c/stem_ISO_8859_1_danish.o
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.3/include/
syslimits.h:7,
* * * * * * * * *from /usr/lib/gcc/i486-linux-gnu/4.1.3/include/
limits.h:11,
* * * * * * * * *from libstemmer_c/src_c/../runtime/header.h:2,
* * * * * * * * *from libstemmer_c/src_c/stem_ISO_8859_1_danish.c:4:
/usr/lib/gcc/i486-linux-gnu/4.1.3/include/limits.h:122:61: error:
limits.h: No such file or directory
error: command 'gcc' failed with exit status 1

Did anyone experience this before?
Nope, compiles out of the box for me on 7.1 (IIRC easy_install worked
for it as well).
Any comment/suggestion is highly appreciated.
Do you have limits.h on your system?
Did you install the python2.5-dev package?

HTH,
--
Miki <mi*********@gmail.com>
http://pythonwise.blogspot.com
Mar 27 '08 #2

P: n/a
On Mar 27, 8:40 am, mungkol <supheakmungkol.sa...@gmail.comwrote:
Dear all,

I am a newbie to Python community. For my project, I tried to install
Pystemmer 1.0.1 (http://snowball.tartarus.org/wrappers/
PyStemmer-1.0.1.tar.gz) on my linux ubuntu 7.10 machine but
unsuccessful. It produced the following error:

running install
running build
running build_ext
building 'Stemmer' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-
prototypes -fPIC -Isrc -Ilibstemmer_c/include -I/usr/include/python2.5
-c libstemmer_c/src_c/stem_ISO_8859_1_danish.c -o build/temp.linux-
i686-2.5/libstemmer_c/src_c/stem_ISO_8859_1_danish.o
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.3/include/
syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.1.3/include/
limits.h:11,
from libstemmer_c/src_c/../runtime/header.h:2,
from libstemmer_c/src_c/stem_ISO_8859_1_danish.c:4:
/usr/lib/gcc/i486-linux-gnu/4.1.3/include/limits.h:122:61: error:
limits.h: No such file or directory
error: command 'gcc' failed with exit status 1

Did anyone experience this before?

Any comment/suggestion is highly appreciated.

Thank you.

Best regards,

Supheakmungkol
This is a system configuration issue, not a Python issue: you seem to
be missing a header file. First, make sure it exists ( /usr/lib/gcc/
i486-linux-gnu/4.1.3/include/limits.h ) and that you have permission
to read it. If it's there, just sudo chmod a+r it and see if that
helps. Also try installing Ubuntu's standard essential build tools
( sudo apt-get update && sudo apt-get install build-essential ) and
see if that helps
Mar 27 '08 #3

P: n/a
Hi,

Can anyone help me out?

Thanks,
Praveena.
Mar 27 '08 #4

P: n/a
En Thu, 27 Mar 2008 15:24:05 -0300, Praveena Boppudi (c)
<pb******@vmware.comescribió:
Can anyone help me out?
What is "the project screen"?
Do you want your development session using any IDE? Your running program?
What platform? OS? Console or graphical application?
Why using Python?

--
Gabriel Genellina

Mar 27 '08 #5

P: n/a
mungkol wrote:
Dear all,

I am a newbie to Python community. For my project, I tried to install
Pystemmer 1.0.1 (http://snowball.tartarus.org/wrappers/
PyStemmer-1.0.1.tar.gz) on my linux ubuntu 7.10 machine but
unsuccessful. It produced the following error:
you need to install the "build-essential" pacakge group on Ubuntu so that
you can compile programs.

apt-get install build-essential
limits.h: No such file or directory
This is probably /usr/include/linux/limits.h part of the kernel headers.
--
damjan
Mar 27 '08 #6

P: n/a
"Praveena Boppudi (c)" <pb******@vmware.comwrites:
Can anyone help me out?
Probably, but your chances improve by starting a *new* thread to
discuss your new question, instead of replying to an existing thread.

--
\ "Pinky, are you pondering what I'm pondering?" "I think so, |
`\ Brain, but Zero Mostel times anything will still give you Zero |
_o__) Mostel." -- _Pinky and The Brain_ |
Ben Finney
Mar 27 '08 #7

P: n/a
On Mar 28, 6:06 am, Damjan <gdam...@gmail.comwrote:
mungkol wrote:
Dear all,
I am a newbie to Python community. For my project, I tried to install
Pystemmer 1.0.1 (http://snowball.tartarus.org/wrappers/
PyStemmer-1.0.1.tar.gz) on my linux ubuntu 7.10 machine but
unsuccessful. It produced the following error:

you need to install the "build-essential" pacakge group on Ubuntu so that
you can compile programs.

apt-get install build-essential
limits.h: No such file or directory

This is probably /usr/include/linux/limits.h part of the kernel headers.

--
damjan
Dear all,

Thank you so much. It works out when I install the "build-essential"
package as suggested.

I appreciate your help very much.

Regards,

Supheakmungkol
Mar 28 '08 #8

This discussion thread is closed

Replies have been disabled for this discussion.