Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Here is how I resolved pythong 2.6.5 installation on ubuntu 12.10:</p> <p>1.) I tried to install the following libraries (some were already on the system):</p> <pre><code>apt-get install libreadline-dev apt-get install libssl-dev (already installed) apt-get install libbz2-dev (already installed) apt-get install build-essential (already installed) apt-get install sqlite3 apt-get install tk-dev apt-get install libsqlite3-dev apt-get install libc6-dev (already installed) apt-get install libgdbm-dev apt-get install libncurses-dev </code></pre> <p>2.) Issue with bz2 module not building: </p> <p>a.) I downloaded bz2 source from <a href="http://www.bzip.org/downloads.html" rel="nofollow">http://www.bzip.org/downloads.html</a>. b.) Modified Makefile and changed <code>cc=gcc</code> to 'cc=gcc -fPIC` following <a href="http://matrafox.info/problem-with-ffmpeg-usrlocalliblibbz2-a-could-not-read-symbols-bad-value.html" rel="nofollow">this post</a>. c.) Executed make and make install. d.) Tested bz2 with the following code from command line: python -c "import bz2; print bz2.<strong>doc</strong>"</p> <p>3.) Issue with _ssl module not building:</p> <p>a.) Fixed ssl by removing ssl v2 from python source. Followed instructions <a href="http://blog.schmichael.com/2012/05/29/building-python-2-6-8-on-ubuntu-12-04/" rel="nofollow">in this blog by Michael Schurter</a>. It worked like a charm.</p> <p>4.) At this point I installed Python 2.6.5 using <code>make altinstall</code>, as to not overwrite the existing python. I pointed /usr/bin/python to my new python installation. Still a couple of things were missing.</p> <p>5.) Added ez_setup: curl -O <a href="https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py" rel="nofollow">https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py</a> python ez_setup.py</p> <p>6.) Added pip: easy_install -U pip</p> <p>7.) Installed setuptools: pip install setuptools</p> <p>At this point it looks like it's all working!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload