Differences between revisions 14 and 15
Revision 14 as of 2009-08-09 20:50:10
Size: 2827
Editor: PeterJeremy
Comment: Sage 4.1 builds on FreeBSD-7.2/i386 so remove 'under construction' note
Revision 15 as of 2009-08-10 18:52:02
Size: 2837
Editor: PeterJeremy
Comment: Cover what will become 4.1.1 as well
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
 * [[/sage-4.1|Sage 4.1 on FreeBSD 7.2 & 8.x]]  * [[/sage-4.1|Sage 4.1 and 4.1.1 on FreeBSD 7.2 & 8.x]]

Sage Port to FreeBSD 6.x, 7.x and 8.x

Native Port

Since Sage 3.2 it is possible to build Sage with a few modifications and get it to start up, but there are problems with java for example, so not all doctests pass. Specific build notes:

Linux Emulation

Precompiled Sage binaries will run under linux emulation on FreeBSD with some caveats; the biggest issue is a noted error when trying to render plain 2-D plots. Otherwise, both the command line and notebook interfaces seem to work, including raytracing withTachyon. Tested configurations (plotting works on none, all other features "seem" to work):

  • sage-2.10.2-linux-32bit-debian-i686-Linux on FreeBSD 6.3-RELEASE with linux_base-fc-4_10 (fedora core 4.10)

  • sage-3.0-debian32-intel-i686-Linux on FreeBSD 6.3-RELEASE with linux_base-fc-4_10 (fedora core 4.10)

Here are basic instructions:

  1. Make sure the linux kernel module was compiled into FreeBSD and is loaded with kldstat; linprocfs does not seem to be required
  2. Install emulators/linux_base (using ports system, pkg_add -r, etc)

  3. Download and extract the latest sage binary distribution (eg, sage-2.10.2-linux-32bit-debian-i686-Linux.tar.gz)

  4. Enter extracted directory and edit the script sage to set SAGE_ROOT to the full path of that directory

  5. Run /compat/linux/bin/bash ./sage

Official Port

ThePorter's Handbookis the place to look for porting directions It may make sense to have both a native math/sage-math and a linux math/linux-sage-math port, at least for a while? A linux port would be more reliable and easier to keep up to date. Here is a possible pkg-descr:

Sage: Open Source Mathematics Software
--------------------------------------
Creating a viable free open source alternative to
Magma, Maple, Mathematica, and Matlab
WWW: http://sagemath.org/

and a possible pkg-descr:

#####################################################################
#                                                                   #
# NOTE: Some additional packages are highly recommended for Sage:   #
#                                                                   #
#                                                                   #
#   latex (print/latex): for type setting                           #
#                                                                   #
#####################################################################