Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagesmc
Path: blob/master/src/bin/sage-README-osx.txt
8815 views
1
This is Sage -- open source mathematical software.
2
3
http://www.sagemath.org
4
5
**
6
These binaries are only for the OS X version that is indicated by the package .dmg name.
7
They generally will not work on any other OS X version (unless explicitly stated otherwise).
8
**
9
10
There are two ways in which Sage can be distributed. One is as a
11
"regular" OS X application named something like Sage-VERSION. If you
12
see such an application, skip to the section about Sage.app. If
13
instead you see a folder called "sage", proceed as follows.
14
15
1) Download the dmg somewhere and double click on it.
16
17
2) Drag the sage folder somewhere, e.g., /Applications
18
19
** WARNING ** If you get an error copying the folder do the following:
20
Do not drag the the folder out of the dmg image. Use the
21
shell (via Terminal) and do a
22
"cp -R -P /Volumes/sage-2.9.2-OSX10.4-intel-i386-Darwin/sage ."
23
from the location where you want to install to. Adjust the name of the
24
Volume as needed.
25
26
3) Use finder to visit the sage folder you just copied it and double click on the "sage" icon.
27
28
4) Select to run it with "Terminal":
29
Choose Applications, then select "All Applications" in the
30
"Enable:" drop down. Change the "Applications" drop down
31
to "Utilities". On the left, scroll and select "Terminal".
32
Click "Open", then in the next dialog select "Update".
33
34
5) Sage should pop up in a window.
35
36
6) For the graphical notebook, type
37
notebook()
38
You might have to open Firefox or Safari (your choice)
39
to the URL
40
http://localhost:8000
41
to use Sage on your computer.
42
43
7) Email
44
http://groups.google.com/group/sage-support
45
with any questions.
46
47
48
========
49
Sage.app
50
========
51
52
Sage.app is a fairly simple application which starts the Sage server
53
when launched and stops it when quitting. It also contains a
54
primitive browser which can be used to view the Sage notebook if
55
desired. Sage.app can also be used to launch terminal sessions for
56
many of your favorite Sage commands. Note that holding the option key
57
changes some of the commands that can be run, and holding the command
58
key will allow you to edit the command before running them.
59
60
Any feedback is welcome: http://groups.google.com/group/sage-devel
61
62
------------
63
Installation
64
------------
65
66
Simply copy the application to your hard drive as you would any other
67
application.
68
69
You may also wish to add the sage executable to your PATH for use in a
70
normal terminal session. This can be done from the Preferences window
71
and the Add To PATH button. It will ask whether to add to
72
/usr/local/bin or ~/bin. To remove this, simply delete the symlink in
73
whichever location you chose or overwrite it with a new version.
74
75
WARNING: When Sage.app is run, it may take a _long_ time for the
76
server to start up. Please don't give up. If you think it has taken
77
too long, use View Log under the Development menu to see if there are
78
any errors.
79
80
-----
81
Setup
82
-----
83
84
If you have a copy of Sage.app which did not come bundled with a Sage
85
distribution (say you built a new version of Sage.app yourself), then
86
the first time it is run, it will prompt you for a Sage executable.
87
Please choose the executable that is called sage and is what you would
88
run from the command line. You can change this later in the
89
preferences. You can also drag a sage folder (SAGE_ROOT) onto
90
Sage.app to change what sage executable it will use.
91
92
-----------
93
Preferences
94
-----------
95
96
Sage.app can be run as a normal application, or as a menu extra (icon
97
on the right side of the menu), or both. This can be set in
98
Preferences where you can set whether to use Sage.app as a browser,
99
whether to always start the server, and whether you wish to always
100
edit terminal session arguments before they are run.
101
102
You may also set default parameters for terminal sessions. For
103
example to send -b to gap (to inhibit the initial banner), type gap as
104
the session (lowercase as you see it in the menus--use "sage" (without
105
quotes) for sage sessions), -b as the argument and hit Apply.
106
Unfortunately, due to a bug in the Cocoa framework, choosing the
107
session with the mouse does not correctly update the Default Arguments
108
field. Instead please select a previous session with the keyboard.
109
The same applies to the Terminal Emulator selection.
110
111
You may select a method of running terminal sessions. If you do not
112
see your favorite terminal emulator here, please let know what it is,
113
so we can add it. You can also create/edit the applescript directly
114
for the ultimate in flexibility. Place %@ where you wish the command
115
to be inserted (but only do so once).
116
117
------------
118
SAGE_BROWSER
119
------------
120
121
WARNING: setting SAGE_BROWSER in .bashrc will overwrite the value
122
which allows Sage.app to work. Therefore please use something like
123
124
SAGE_BROWSER=${SAGE_BROWSER-/path/to/script/to/open/your/browser}
125
126
(or nothing at all) in your .bashrc if you wish to use Sage.app as the
127
Sage notebook browser.
128
129
-----------------
130
OS X 10.4 (Tiger)
131
-----------------
132
133
On Tiger (10.4) the method of making Sage.app appear in the Dock does
134
not work, hence the preference to show in the Dock is disabled. If
135
you wish the application to appear in the Dock, you may run the
136
following in a shell (changing the path to Sage.app appropriately)
137
138
defaults write /Applications/Sage.app/Contents/Info LSUIElement 0
139
140
To go back to Dockless mode:
141
142
defaults write /Applications/Sage.app/Contents/Info LSUIElement 1
143
144
You will of course have to restart Sage.app
145
146
--------
147
Building
148
--------
149
150
If you wish to build a copy of Sage.app for yourself, you can run
151
152
SAGE_APP_BUNDLE=yes sage -bdist VERSION
153
154
which will create a version that is bundled with a binary
155
distribution. If you wish to make changes, or create a version which
156
does not contain a distribution, then open
157
src/mac-app/Sage.xcodeproj in Xcode. If you are
158
building on OS X 10.4, then you will need to change the SDK by opening
159
Project Settings, and in Cross-Develop in General set it to 10.4
160
(universal).
161
162