CryingSaul wrote:wacky, you are a very precious individual...
Aww, shucks.

i've tried modifying your suggestions a little (i didn't even know the option --with existed), and typed this in the python 2.6.1 source dir (after doing 'make clean' and 'make distclean' for good measure in all source dirs):
- Code: Select all
./configure --prefix=/usr/local --with-zlib=/path/to/source/zlib-1.2.3 --with-readline=/path/to/source/readline-5.2
and went through the compiling process all over again. now everything works: 'python' launches 2.6.1, 'import readline' works, ipython and numpy both work (they were both previously installed from sources into /usr/local and were not overwritten, and from the messages i got during compilation it seems the python installer found them and left them alone), and even the setuptools egg stopped complaining about zlib (although with ipython finally working i don't need that anymore...)
Fantastic! I'm very glad (and somewhat relieved) to hear that. This was really starting to push the boundaries of my compiling-things-from-source knowledge, so it's nice to see a successful outcome
before I start floundering. I learnt the "--with-xyz" from compiling PHP, but tend to forget how consistent compilation procedures usually are in Unix-land, so didn't think to suggest it for this until a Google result mentioned it.
i have still no way of knowing if ubuntu will like what i did or not, i'll let you know if something weird happens.
Thanks. As long as the Ubuntu Python scripts are using the right version, and as long as you installed your Python somewhere different so it didn't overwrite the old standard library or other such bits,
and as long as you kept your "new" sources (e.g. zlib) separate from the system ones, I'm fairly sure that everything will be fine.
for the time being, i finally got what i needed: numpy and 2.6.1 in a paperback-sized device...
They are cute little things, aren't they? If I could find a good enough excuse, I'd get one myself.
it's been such a headache that i think i'll write a tutorial about how to resolve these issues. a lot of this knowledge is scattered all over the net and newbies have a hard time assembling the puzzle.
You're right; I've been thinking of fleshing-out my "install many Pythons side-by-side" guide, but something that covered installing modules and such would be good, too. It's a tricky business making sure that all the right library versions are available (such as zlib).
i hope to be able to help you out someday.
If you write that tutorial, I'm sure I'd find it useful.
