LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 04-22-2004, 10:49 AM   #1
Mike2001
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
Help installing pygame


Can anyone figure out whats wrong here. I am installing pygame on Mandrake 9.2. When I run ./setup.py it starts then errs here:

No Arguments Given, Perform Default Install? [Y/n]y
running install
running build
running build_py
running build_ext
building 'pygame.surfarray' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -g -fPIC -D_REENTRANT -I/usr/local/include/SDL -I/usr/include/python2.3 -c src/surfarray.c -o build/temp.linux-i686-2.3/src/surfarray.o
src/surfarray.c:24:32: Numeric/arrayobject.h: No such file or directory
src/surfarray.c: In function `pixels3d':
src/surfarray.c:92: error: `PyArray_UBYTE' undeclared (first use in this function)
src/surfarray.c:92: error: (Each undeclared identifier is reported only once
src/surfarray.c:92: error: for each function it appears in.)
src/surfarray.c:92: warning: assignment makes pointer from integer without a cast
src/surfarray.c:95: error: `PyArrayObject' undeclared (first use in this function)
src/surfarray.c:95: error: syntax error before ')' token
src/surfarray.c:95: error: `OWN_DIMENSIONS' undeclared (first use in this function)
src/surfarray.c:95: error: `OWN_STRIDES' undeclared (first use in this function)
src/surfarray.c:95: error: `SAVESPACE' undeclared (first use in this function)
src/surfarray.c:96: error: syntax error before ')' token
src/surfarray.c:97: error: syntax error before ')' token
src/surfarray.c:98: error: syntax error before ')' token
src/surfarray.c:99: error: syntax error before ')' token
src/surfarray.c: In function `pixels2d':
src/surfarray.c:126: error: `PyArray_UBYTE' undeclared (first use in this function)
src/surfarray.c:126: error: `PyArray_SHORT' undeclared (first use in this function)
src/surfarray.c:126: error: `PyArray_INT' undeclared (first use in this function)
src/surfarray.c:147: warning: assignment makes pointer from integer without a cast
src/surfarray.c:150: error: `PyArrayObject' undeclared (first use in this function)
src/surfarray.c:150: error: syntax error before ')' token
src/surfarray.c:151: error: syntax error before ')' token
src/surfarray.c:152: error: syntax error before ')' token
src/surfarray.c:152: error: `OWN_DIMENSIONS' undeclared (first use in this function)
src/surfarray.c:152: error: `OWN_STRIDES' undeclared (first use in this function)
src/surfarray.c:153: error: syntax error before ')' token
src/surfarray.c: In function `pixels_alpha':
src/surfarray.c:203: error: `PyArray_UBYTE' undeclared (first use in this function)
src/surfarray.c:203: warning: assignment makes pointer from integer without a cast
src/surfarray.c:206: error: `PyArrayObject' undeclared (first use in this function)
src/surfarray.c:206: error: syntax error before ')' token
src/surfarray.c:207: error: syntax error before ')' token
src/surfarray.c:208: error: syntax error before ')' token
src/surfarray.c:208: error: `OWN_DIMENSIONS' undeclared (first use in this function)
src/surfarray.c:208: error: `OWN_STRIDES' undeclared (first use in this function)
src/surfarray.c:209: error: syntax error before ')' token
src/surfarray.c: In function `array2d':
src/surfarray.c:243: error: `PyArray_INT' undeclared (first use in this function)
src/surfarray.c:243: warning: assignment makes pointer from integer without a cast
src/surfarray.c:246: error: `PyArrayObject' undeclared (first use in this function)
src/surfarray.c:246: error: syntax error before ')' token
src/surfarray.c:247: error: syntax error before ')' token
src/surfarray.c:258: error: syntax error before ')' token
src/surfarray.c:270: error: syntax error before ')' token
src/surfarray.c:282: error: syntax error before ')' token
src/surfarray.c:299: error: syntax error before ')' token
src/surfarray.c: In function `array3d':
src/surfarray.c:351: error: `PyArray_UBYTE' undeclared (first use in this function)
src/surfarray.c:351: warning: assignment makes pointer from integer without a cast
src/surfarray.c:354: error: `PyArrayObject' undeclared (first use in this function)
src/surfarray.c:354: error: syntax error before ')' token
src/surfarray.c:355: error: syntax error before ')' token
src/surfarray.c:372: error: syntax error before ')' token
src/surfarray.c:387: error: syntax error before ')' token
src/surfarray.c:402: error: syntax error before ')' token
src/surfarray.c:421: error: syntax error before ')' token
src/surfarray.c: In function `array_alpha':
src/surfarray.c:472: error: `PyArray_UBYTE' undeclared (first use in this function)
src/surfarray.c:472: warning: assignment makes pointer from integer without a cast
src/surfarray.c:481: error: `PyArrayObject' undeclared (first use in this function)
src/surfarray.c:481: error: syntax error before ')' token
src/surfarray.c:481: error: syntax error before ')' token
src/surfarray.c:481: error: syntax error before ')' token
src/surfarray.c:481: error: syntax error before ')' token
src/surfarray.c:485: error: syntax error before ')' token
src/surfarray.c:486: error: syntax error before ')' token
src/surfarray.c:497: error: syntax error before ')' token
src/surfarray.c:510: error: syntax error before ')' token
src/surfarray.c:528: error: syntax error before ')' token
src/surfarray.c: In function `array_colorkey':
src/surfarray.c:575: error: `PyArray_UBYTE' undeclared (first use in this function)
src/surfarray.c:575: warning: assignment makes pointer from integer without a cast
src/surfarray.c:581: error: `PyArrayObject' undeclared (first use in this function)
src/surfarray.c:581: error: syntax error before ')' token
src/surfarray.c:581: error: syntax error before ')' token
src/surfarray.c:581: error: syntax error before ')' token
src/surfarray.c:581: error: syntax error before ')' token
src/surfarray.c:585: error: syntax error before ')' token
src/surfarray.c:586: error: syntax error before ')' token
src/surfarray.c:597: error: syntax error before ')' token
src/surfarray.c:610: error: syntax error before ')' token
src/surfarray.c:623: error: syntax error before ')' token
src/surfarray.c:641: error: syntax error before ')' token
src/surfarray.c: In function `map_array':
src/surfarray.c:676: error: `PyArrayObject' undeclared (first use in this function)
src/surfarray.c:676: error: `array' undeclared (first use in this function)
src/surfarray.c:681: error: `PyArray_Type' undeclared (first use in this function)
src/surfarray.c:685: error: syntax error before ')' token
src/surfarray.c:698: error: `PyArray_INT' undeclared (first use in this function)
src/surfarray.c:698: warning: assignment makes pointer from integer without a cast
src/surfarray.c:700: error: syntax error before ')' token
src/surfarray.c:709: warning: assignment makes pointer from integer without a cast
src/surfarray.c:711: error: syntax error before ')' token
src/surfarray.c:721: warning: assignment makes pointer from integer without a cast
src/surfarray.c:723: error: syntax error before ')' token
src/surfarray.c: In function `blit_array':
src/surfarray.c:982: error: `PyArrayObject' undeclared (first use in this function)
src/surfarray.c:982: error: `array' undeclared (first use in this function)
src/surfarray.c:987: error: `PyArray_Type' undeclared (first use in this function)
src/surfarray.c:991: error: syntax error before ')' token
src/surfarray.c: In function `make_surface':
src/surfarray.c:1114: error: `PyArrayObject' undeclared (first use in this function)
src/surfarray.c:1114: error: `array' undeclared (first use in this function)
src/surfarray.c:1118: error: `PyArray_Type' undeclared (first use in this function)
src/surfarray.c:1120: error: syntax error before ')' token
src/surfarray.c:1124: error: `PyArray_LONG' undeclared (first use in this function)
error: command 'gcc' failed with exit status 1
 
Old 09-11-2004, 06:12 PM   #2
ssokolow
LQ Newbie
 
Registered: Aug 2004
Location: Canada
Posts: 24

Rep: Reputation: 15
Install Numeric. If you're on an RPM-based distro and you've installed it, then you forgot to also install the -devel package.

I ran into the same problem on Mandrake 10 while recompiling to enable mp3 support. (The only Mandrake RPMs I found didn't have it enabled and I like to play PyDance using mp3s)

You can get the source tarball from http://www.pfdubois.com/numpy/

If you want RPMs, I recommend http://rpm.pbone.net/
I've found that these ones work nicely on Mandrake 10.0:
- python-numeric-23.1-2mdk.src.rpm
- python-numeric-devel-23.1-2mdk.i586.rpm
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Mono-got stuck while installing gtk-sharp chutsu Linux - Software 11 01-18-2005 08:25 PM
pygame-1.6/is a tar file/need help master Slackware 1 11-26-2004 12:20 PM
Install pygame davholla Linux - Software 0 04-02-2004 05:37 AM
Installing Windows XP after installing Red Hat 9 BluePyre Linux - General 7 03-09-2004 03:37 PM
pygame kierwind Linux - Software 5 05-21-2003 04:19 AM


All times are GMT -5. The time now is 04:14 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration