i managed to get a working setup of python 2.6.1 + ipython on my ubuntu 8.10 system by installing from source using the following command:
- Code: Select all
./configure --prefix=/usr/local --with-zlib=/path/to/source/zlib-1.2.3 --with-readline=/path/to/source/readline-5.2
i did this so as to avoid overwriting python 2.5 files needed for ubuntu to function properly. everything about python itself has been working well since then, the interpreter, ipython, and even numpy (installed with the same --prefix).
now i wanted to install scribes, a gnome text editor. i tried it through synaptic but when i launched the newly installed app, nothing happened. so i removed it and tried installing from source. here's what i got after typing './configure':
- Code: Select all
checking for a Python interpreter with version >= 2.5... python
checking for python... /usr/local/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.6/site-packages
Error: Python bindings for D-Bus was not found.
configure: error: Error: Dependency check failed
apparently the configuration is finding my 2.6.1 in /usr/local instead of the 2.5 which it needs for its dependencies. i tried different --prefix= switches but none worked.
typing 'which python' in terminal says '/usr/local/bin/python'. apparently this is what ./configure checks in order to find python. my /usr/local/bin folder comes before /usr/bin in my PATH variable. so i did this:
- Code: Select all
PATH=/usr/bin:$PATH
and tried again. now the ./configure command completes successfully (detecting python 2.5) but the 'make' command fails, saying:
- Code: Select all
Making all in po
make[1]: Entering directory `/path/to/source/scribes-0.3.3.3/po'
file=`echo de | sed 's,.*/,,'`.gmo \
&& rm -f $file && -o $file de.po
/bin/sh: -o: not found
make[1]: *** [de.gmo] Error 127
make[1]: Leaving directory `/path/to/source/scribes-0.3.3.3/po'
make: *** [all-recursive] Error 1
i don't need any other app installed except scribes, but still it seems that both python versions have trouble coexisting, i.e. the very reason why i installed 2.6.1 in /usr/local in the first place is actually causing its share of havoc.
i tried removing and reinstalling scribes through apt-get and aptitude but scribes still wouldn't launch. any other app that i've installed prior to installing python 2.6.1 (e.g. geany, vlc) is doing perfectly alright.
any pointers?
thanks.

