On Jan 30, 2010, at 7:50 AM, akasaka...@googlemail.com wrote:
I'm using sagemath now for about 6 month at ubuntu linux and i would like to make a suggestion. Because sagemath has so many dependencies to all the other math-packages I think it is not practicable to create debian packages. I just compiled everything into /usr/loca/sage-x.y.z folder as everybody should do but this takes quite a lot of time as you know and produces about 50000 files in this folder. On the other Hand I had the problem that my virtual server, which has only 200MB RAM + 400MB swap so it would not compile. First I packed the folder with the compiled stuff to a tar.bz2 (1.1GB), but this is annoying and takes too long. Using sagemath on my eeepc with just 4GB SSD was not useful too. So my idea was using squashfs as all the linux livecd do. I compiled sagemath on my desktop with 2 hyperthreading processors and then made a sage-x.y.z.sqfs file with all the 50000 files (about 1.6GB) in it. This sqfs-file is about 639MB. I copied this to a sd- card and mounted this file to the /usr/local/sage-x.y.z folder I made at my eee. This takes about 100ms. Then I made the symlink /usr/local/ bin/sage -> /usr/local/sage-x.y.z/sage. This was all. From downloading the file until using, it takes about 10 seconds, with a script maybe just 1. Setting up a quick and dirty server, this way is maybe better than using problematic precompiled images. I use this way since sagemath version 4.0.1, without any problem. On my virtual server I used unsquashfs from the squashfs-tools to unpack the files.
Just to be sure I'm understanding you, the primary advantage of this vs. downloading a binary .tar is that its size is smaller (and perhaps it's quicker, though less standard, to mount an image than unpack a tar)?
If you give me a place where I can upload my sqfs files I would maintain this way of distribution for some time and writing a wiki page for it. Right now I have sagemath 4.3.1 sqfs-files for ubuntu jaunty and karmic.
Harald Schilly takes care of the web site. - Robert -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org