|
1 | 1 | Python for BeOS R5 |
2 | 2 |
|
3 | | -This directory contains several useful things to help you build your own |
4 | | -version of Python for BeOS. |
5 | | - |
6 | | -What's Here? |
7 | | - |
8 | | -ar-fake - A shell script that copies around .o files, for the as much |
9 | | - of the general effect of ar as we need but more fool-proof. |
10 | | - It also has an "so" command to build the shared library |
11 | | - that we actually install and use. |
12 | | - |
13 | | -linkmodule - A shell script used by the build process to build the |
14 | | - shared library versions of the standard modules; you'll |
15 | | - probably need this if you want to build dynamically loaded |
16 | | - modules from the Python archives. |
17 | | - |
18 | | -README - This file (obviously!). |
19 | | - |
20 | | -README.readline-2.2 - Instructions for compiling/installing GNU readline 2.2. |
21 | | - You'll have to grab the GNU readline source code from |
22 | | - prep.ai.mit.edu:/pub/GNU or any other GNU mirror. |
23 | | - |
24 | | - The Python interpreter is much nicer to work with |
25 | | - interactively if you've got readline installed. Highly |
26 | | - recommended. |
27 | | - |
28 | 3 | To build, |
29 | 4 |
|
30 | 5 | 1) ./configure --prefix=/boot/home/config |
@@ -84,6 +59,67 @@ Install: |
84 | 59 |
|
85 | 60 | make install |
86 | 61 |
|
| 62 | + |
| 63 | +Using GNU readline: |
| 64 | + |
| 65 | + The Python interpreter is much nicer to work with interactively if |
| 66 | + you've got readline installed. Highly recommended. |
| 67 | + |
| 68 | + You can get the original GNU readline 2.2 source code from your |
| 69 | + favourite GNU software repository, such as |
| 70 | + ftp://prep.ai.mit.edu/pub/gnu/. |
| 71 | + |
| 72 | + You can get the only-slightly-modified-for-BeOS version of GNU |
| 73 | + readline 2.2 from the GeekGadgets repository; |
| 74 | + ftp://ftp.ninemoons.com/pub/geekgadgets/. |
| 75 | + |
| 76 | + |
| 77 | +Building libreadline for BeOS hosts: |
| 78 | + |
| 79 | + Note that we don't build a shared library version of libreadline and |
| 80 | + libhistory. That's left as an exercise for the reader. |
| 81 | + |
| 82 | + You won't be able to link against libreadline.a using the limited |
| 83 | + linker. |
| 84 | + |
| 85 | + 1) If you're on a PowerPC system, install the POSIX ar from |
| 86 | + http://www.qnx.com/~chrish/Be/software/index.html#programming |
| 87 | + (note that it's currently packaged with Python, in the BeOS/ar-1.1 |
| 88 | + directory). |
| 89 | + |
| 90 | + If you're on an x86 system, you can leave out the "AR=ar-posix" |
| 91 | + part of the following instructions. In fact, you'll have to... |
| 92 | + |
| 93 | + 2) For PowerPC, configure with: |
| 94 | + |
| 95 | + CC=mwcc CFLAGS="-O7 -i- -I." AR=ar-posix RANLIB=: ./configure --verbose \ |
| 96 | + --without-gcc --prefix=/boot/home/config powerpc-*-beos |
| 97 | + |
| 98 | + For x86, configure with: |
| 99 | + |
| 100 | + CC=mwcc CFLAGS="-O2 -i- -I." RANLIB=: ./configure --verbose \ |
| 101 | + --without-gcc --prefix=/boot/home/config x86-*-beos |
| 102 | + |
| 103 | + Don't worry about the warnings/errors configure spews for |
| 104 | + powerpc-*-beos or x86-*-beos; readline doesn't actually use this host |
| 105 | + information for anything, although configure will die if you don't |
| 106 | + specify it. |
| 107 | + |
| 108 | + 3) Edit config.h to comment out "#define HAVE_SELECT 1"; select() on |
| 109 | + BeOS doesn't work on file descriptors (such as stdin). |
| 110 | + |
| 111 | + 4) For PowerPC, make with: |
| 112 | + |
| 113 | + make AR=ar-posix |
| 114 | + |
| 115 | + For x86, make with: |
| 116 | + |
| 117 | + make |
| 118 | + |
| 119 | + 5) Install with: |
| 120 | + |
| 121 | + make install |
| 122 | + |
87 | 123 | Enjoy! |
88 | 124 |
|
89 | 125 | - Chris Herborth ( [email protected]) |
|
0 commit comments