Sage: Difference between revisions

From miki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
== Installation ==
== Installation ==


=== Sage 4.2.1 ===
* Installing '''Sage 4.2.1''', '''Ubuntu 9.10 32bit i686''', on '''Ubuntu Jaunty 9.04'''.
{{lp2|<source lang="bash">
#better install it as standard user (or create a custom user for sage)
tar -xv --lzma -f sage-4.2.1-linux-Ubuntu_9.10-i686-Linux.tar.lzma
mv sage-4.2.1-linux-Ubuntu_9.10-i686-Linux sage-4.2.1
sudo ln -s /mnt/data/sage-4.2.1 /sage
</source>}}
* Sage complains that <tt>version `GLIBCXX_3.4.11' not found (required by /sage/local/lib/libgmpxx.so.3)</tt>. Fix is to install locally a more up-to-date version of libstdc++ (see [http://groups.google.com/group/sage-devel/browse_thread/thread/1b05c73e974bfa07/ab0393f1b002de09?lnk=raot]):
{{lp2|<source lang="bash">
cd /sage/local/lib
wget http://sage.math.washington.edu/home/wstein/tmp/fedora11/libstdc++.so.6.0.12
ln -s libstdc++.so.6.0.12 libstdc++.so.6
</source>}}

=== Sage 3.2.1 ===
Install instruction for Ubuntu - using binary image ''[http://www.sagemath.org/download.html sage-3.2.1-ubuntu_32bit-xeon-i686-Linux.tar.gz]''.
Install instruction for Ubuntu - using binary image ''[http://www.sagemath.org/download.html sage-3.2.1-ubuntu_32bit-xeon-i686-Linux.tar.gz]''.
Script below will install sage in <tt>/usr/local/sage-3.2.1</tt>, and create a copy of <tt>sage</tt> in path <tt>/usr/local/bin</tt>.
Script below will install sage in <tt>/usr/local/sage-3.2.1</tt>, and create a copy of <tt>sage</tt> in path <tt>/usr/local/bin</tt>.
Line 21: Line 37:
</source>
</source>


=== Notebook ===
== Notebook ==
Notebook is the html interface to Sage. It is launched with the command <tt>notebook</tt> (see also ([http://www.sagemath.org/doc/ref/module-sage.server.notebook.notebook.html The Sage Notebook object]).
Notebook is the html interface to Sage. It is launched with the command <tt>notebook</tt> (see also ([http://www.sagemath.org/doc/ref/module-sage.server.notebook.notebook.html The Sage Notebook object]).



Revision as of 15:33, 10 December 2009

Installation

Sage 4.2.1

  • Installing Sage 4.2.1, Ubuntu 9.10 32bit i686, on Ubuntu Jaunty 9.04.
#better install it as standard user (or create a custom user for sage)
tar -xv --lzma -f sage-4.2.1-linux-Ubuntu_9.10-i686-Linux.tar.lzma
mv sage-4.2.1-linux-Ubuntu_9.10-i686-Linux sage-4.2.1
sudo ln -s /mnt/data/sage-4.2.1 /sage
  • Sage complains that version `GLIBCXX_3.4.11' not found (required by /sage/local/lib/libgmpxx.so.3). Fix is to install locally a more up-to-date version of libstdc++ (see [1]):
cd /sage/local/lib
wget http://sage.math.washington.edu/home/wstein/tmp/fedora11/libstdc++.so.6.0.12
ln -s libstdc++.so.6.0.12 libstdc++.so.6

Sage 3.2.1

Install instruction for Ubuntu - using binary image sage-3.2.1-ubuntu_32bit-xeon-i686-Linux.tar.gz. Script below will install sage in /usr/local/sage-3.2.1, and create a copy of sage in path /usr/local/bin.

# (as root)

% cd /usr/local
% tar -xvzf .../sage-3.2.1-ubuntu_32bit-xeon-i686-Linux.tar.gz
% mv sage-3.2.1-Ubuntu-x86_64-opteron-x86_64-Linux sage-3.2.1
% chmod a+rX -R sage-3.2.1     
% cp /usr/local/sage-3.2.1/sage /usr/local/bin
% vi /usr/local/bin/sage
#  --> change SAGE_ROOT to /usr/local/sage-3.2.1

After installation, launch sage from root again because Sage needs to update some links, create files, etc...

% sage

Notebook

Notebook is the html interface to Sage. It is launched with the command notebook (see also (The Sage Notebook object).

% sage
sage> notebook(address='',port=8000)                       # To make notebook available on port 8000, even to remote computer
sage> notebook(address='',port=8000, require_login=False)  # No login necessary
sage> notebook(pretty_print=False)                         # To enable LaTeX pretty print by default in all worksheets
sage> notebook?                                            # Get help on notebook