Menu

#164 Python install guide (request)

New
nobody
None
Medium
Defect
2012-01-04
2011-06-14
Anonymous
No

Originally created by: g1p... (code.google.com)@gmail.com

For the past hour ive tried to install python2.6 on a lenny chroot but keeps failing. Has anyone got the files and a guide to install python 2.6 or 2.7 within a lenny chroot please.

Related

Tickets: #156

Discussion

  • Anonymous

    Anonymous - 2011-07-08

    Originally posted by: g1p... (code.google.com)@gmail.com

    Getting a little closer but no cigar atm

    Gentoo environment within SnakeOs.

    Very simple way to chroom into Gentoo which has Python installed.

    First need to chroot into a debian shell which has the updated TAR command.
    https://code.google.com/p/snake-os/wiki/Debian_Chroot

    Next prepare the directories and download the following gentoo packages.

    stage3-armv4l-2008.0.tar.bz2
    python-2.6.5-[r3].tbz2

    Find your closest mirror to download the stage3
    http://www.gentoo.org/main/en/mirrors2.xml

        ssh to NAS - or putty from win
        make a gentoo directory on your USB attached storage
        #mkdir /usb/{name}/gentoo
        #cd /usb/{name}/gentoo

        Download gentoo fs and python 2.6 using wget:
        # wget http://tinderbox.dev.gentoo.org/default-linux/arm/armv4l-unknown-linux-gnu/dev-lang/python-2.6.5-r3.tbz2
        # wget http://\{mirror}/experimental/arm/stages/armv4l/stage3-armv4l-2008.0.tar.bz2
        (not all mirrors have the experimental directories)

        # Load the debian FS following step 1 - 7
        # https://code.google.com/p/snake-os/wiki/Debian_Chroot
        # step 8 should look something like this :
          mount -o bind   /usb/{name}/gentoo /usb/{name}/debian/mnt/sda1
          (replace {name} with your USB storage location)

        # chroot /usb/{name}/debian/
        # cd /mnt/sda1
        # tar xjf stage3-armv4l-2008.0.tar.bz2
        # tar xvjf python-2.6.5-[r3].tbz2

        DONE gentoo chroot with 2.6 python (kind of installed)

    Whats next...
    Someone else to write how to get python2.6 fully installed with sqlite would be helpful. Ive had to guess upto this point but couldnt get python modules to work.

     
  • Anonymous

    Anonymous - 2011-07-13

    Originally posted by: g1p... (code.google.com)@gmail.com

    Looks like this will be the last update as I have what was first asked for....

    Gentoo chroot
    Python 2.6.5

    sqlite3.version_info
    (2, 6, 3)

    Ended up being as simple as installing pysqlite
    Homepage = http://trac.edgewall.org/wiki/PySqlite

       # cd /home
       # wget http://pysqlite.googlecode.com/files/pysqlite-2.6.3.tar.gz
       # tar xfz pysqlite-2.6.3.tar.gz
       # cd pysqlite-2.6.3
       # python setup.py build_static install

    within any python script you want sqlite connected include the following line
       # from pysqlite2 import dbapi2 as sqlite3

    -------------------
    I think this is a good alternative chroot to debain
    Please wrap this up into a single page and includes on wiki ?

     

Log in to post a comment.

MongoDB Logo MongoDB