On 04/09/2011 06:12 PM, Rohan Sachdeva wrote:
Just so you know there is a PPA for 3.2 - https://launchpad.net/~irie/+archive/python3.2 <https://launchpad.net/%7Eirie/+archive/python3.2>

Should make things a lot easier.

Rohan

On Sat, Apr 9, 2011 at 11:45 AM, Nevins Duret <dur...@bellsouth.net <mailto:dur...@bellsouth.net>> wrote:

    On 04/09/2011 02:32 PM, Walter Prins wrote:


    On 9 April 2011 17:44, Nevins Duret <dur...@bellsouth.net
    <mailto:dur...@bellsouth.net>> wrote:

        Compiling with Ubuntu

        # get required packages for build
        sudo  apt-get  install  build-essential libncursesw5-dev 
libreadline5-dev libssl-dev libgdbm-dev libc6-dev libsqlite3-dev tk-dev

        # get source
        wget  http://www.python.org  
<http://www.python.org>/ftp/python/3.2/Python-3.2.tgz&&  tar  -xvf  
Python-3.2.tgz

        # make install
        ./configure
        make
        sudo  make  altinstall

        # make 3.2 the default python system wide (number 1 at the end stays 
there)
        sudo  update-alternatives--install  /usr/bin/python pythonopt/py32/bin1

        # ensure various versions of python play nice with each other
        sudo  update-alternatives--config  python


        Again I really appreciate your help, getting over this hurdle would 
help me be confident in what goes on under the hood.
        At this point, it seems that I will need instructions on how to remove 
python3.2 in order to get a reattempt at installing it
        properly.




    OK... It's usually preferable if at all possible to install
    things using the system's package manager -- is there any
    particular reason that you must use Python 3.2 and can't install
    Python 3.1.2, which is available in the repositories? It may be
    installed by simply doing:

    sudo apt-get install python3-all

    As for fixing/undoing any problems in your system -- I'm
    reluctant to try and fix that via this list and without more
    information.  I'd therefore suggest asking on the Ubuntu
    community forums programming sub-forum.
    http://ubuntuforums.org/forumdisplay.php?f=310

    Walter


    Hello Walter,

        I can't thank you enough for your help.  Yes, I usually use
    the Synaptic Package Manager, however in this case, Python version
    3.2 is not on the Synaptic package Manager.  This is why I chose
    to build it from source.  As far as what I think is causing this
    when I go in the Terminal and type:
    p me out.
    sudo update-alternatives --install /usr/bin/python/python3.2
    python /opt/py32/bin/python3.2 1

    I get this as an error message:

    update-alternatives: renaming python link from /usr/bin/python to
    /usr/bin/python/python3.2.
    update-alternatives: warning: forcing reinstallation of
    alternative /opt/py32/bin because link group python is broken.
    update-alternatives: error: unable to make
    /usr/bin/python/python3.2.dpkg-tmp a symlink to
    /etc/alternatives/python: No such file or directory

    I must add that I am running this in the Terminal under the
Python-3.2 directory that I uncompressed after I downloaded it. The reason why I'm using this version of Python is because
    Blender2.5, a 3D animation open source program is built on
    Python3.2 and requires it if I am to develop it using CMAKE.  And,
    so far, I have blender installed on /opt/py32.

        I really appreciate your help, and am learning tons by going
    through this.  I understand that posting this question here may
    not be suitable, but I'm confident someone will be able to help me
    out.
    Thanks so much.

    Best Regards,

    Nevins Duret

    _______________________________________________
    Tutor maillist  - Tutor@python.org <mailto:Tutor@python.org>
    To unsubscribe or change subscription options:
    http://mail.python.org/mailman/listinfo/tutor


Hello Rohan,

With that said, how do I go about adding this link to my list of repositories? Before, I would just have to go to the Update Manager, and then I would just add the link, now, as a result of not being able to launch Update Manager as result of the bad Python3.2 install, I am not able to successfully add the link to my list of repositories. Again, I thank you for your help.

Best Regards,

Nevins Duret
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to