Python 2.2 (#1, Apr 24 2002, 20:17:38) [GCC 2.95.3 20010315 (release)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import portage >>> import readline Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: /lib/libreadline.so.4.1: undefined symbol: BC >>>
the readline and cursus libraries also don't get linked to the interpreter, so there's no readline support in the interpreter itself. When I link them manually in with: gcc -Xlinker -export-dynamic -o python Modules/python.o libpython2.2.a -ldl -lpthread -lutil -lm -lreadline -lcurses everything's OK
fixed in 2.2.1 (to be unmasked soon)...