|
251 | 251 | ftp.qnx.com in /usr/free. I used the following process to build, |
252 | 252 | test and install Python 1.5 under QNX: |
253 | 253 |
|
254 | | - 1) SHELL=/usr/local/bin/bash CC=cc CFLAGS="-5 -O" RANLIB=: \ |
255 | | - bash ./configure --verbose --without-gcc --with-libm="" |
| 254 | + 1) CONFIG_SHELL=/usr/local/bin/bash CC=cc RANLIB=: \ |
| 255 | + ./configure --verbose --without-gcc --with-libm="" |
256 | 256 |
|
257 | 257 | 2) copy Modules/Setup.in to Modules/Setup; edit Modules/Setup to |
258 | 258 | activate everything that makes sense for your system... tested |
259 | 259 | here at QNX with the following modules: |
260 | 260 |
|
261 | | - regex reop pcre posix signal readline array cmath math strop |
262 | | - struct time operator _locale fcntl pwd grp crypt select socket |
263 | | - errno termios audioop imageop rgbimg md5 timing rotor syslog |
264 | | - new gdbm soundex binascii parser cStringIO cPickle zlib curses |
| 261 | + array, audioop, binascii, cPickle, cStringIO, cmath, crypt, curses, |
| 262 | + errno, fcntl, gdbm, grp, imageop, _locale, math, md5, new, operator, |
| 263 | + parser, pcre, posix, pwd, readline, regex, reop, rgbimg, rotor, |
| 264 | + select, signal, socket, soundex, strop, struct, syslog, termios, |
| 265 | + time, timing, zlib |
265 | 266 |
|
266 | | - 3) SHELL=/usr/local/bin/bash make SHELL=/usr/local/bin/bash |
| 267 | + Newly compiled/tested in 1.5.1: |
267 | 268 |
|
268 | | - 4) SHELL=/usr/local/bin/bash make SHELL=/usr/local/bin/bash test |
| 269 | + audioop, imageop, rgbimgmodule |
269 | 270 |
|
270 | | - The socket, strftime and possibly gdbm tests might fail in the |
271 | | - test harness; going through them by hand shows that they work. |
272 | | - A good exercise for the reader: make these work "out of the box". |
| 271 | + 3) make SHELL=/usr/local/bin/bash |
| 272 | + |
| 273 | + or, if you feel the need for speed: |
| 274 | + |
| 275 | + make SHELL=/usr/local/bin/bash OPT="-5 -Oil+nrt" |
| 276 | + |
| 277 | + 4) make SHELL=/usr/local/bin/bash test |
| 278 | + |
| 279 | + The socket test might fail in the test harness; going through it by |
| 280 | + hand shows that they work. |
273 | 281 |
|
274 | | - 5) SHELL=/usr/local/bin/bash make SHELL=/usr/local/bin/bash install |
| 282 | + A good exercise for the reader: make this work "out of the box". |
| 283 | + |
| 284 | + Using GNU readline 2.2 seems to behave strangely, but I think that's |
| 285 | + a problem with my readline 2.2 port. :-\ |
| 286 | + |
| 287 | + 5) make SHELL=/usr/local/bin/bash install |
275 | 288 |
|
276 | 289 | If you get SIGSEGVs while running Python (I haven't yet, but I've |
277 | 290 | only run small programs and the test cases), you're probably running |
278 | 291 | out of stack; the default 32k could be a little tight. To increase |
279 | 292 | the stack size, edit the Makefile in the Modules directory to read: |
280 | 293 | LDFLAGS = -N 48k |
281 | 294 |
|
| 295 | +BeOS: Chris Herborth ( [email protected]) writes: |
| 296 | + See BeOS/README for notes about compiling/installing Python on |
| 297 | + BeOS R3 or later. Note that only the PowerPC platform is supported |
| 298 | + at this time, but feel free to try building it on x86. |
| 299 | + |
282 | 300 | Cray T3E: Konrad Hinsen writes: |
283 | 301 | 1) Don't use gcc. It compiles Python/graminit.c into something that |
284 | 302 | the Cray assembler doesn't like. Cray's cc seems to work fine. |
|
0 commit comments