Open GoogleCodeExporter opened 8 years ago
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.
http://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
# http://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.
Original comment by g1p...@gmail.com
on 8 Jul 2011 at 7:57
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 ?
Original comment by g1p...@gmail.com
on 13 Jul 2011 at 11:23
Other possibility:
http://code.google.com/p/snake-os/issues/detail?id=6
Works for me without chroot!
Original comment by mkhom...@googlemail.com
on 4 Jan 2012 at 1:00
Original issue reported on code.google.com by
g1p...@gmail.com
on 14 Jun 2011 at 3:24