1 | initial version |
After looking at both disk images and looking for things online, before installing anything, I have some partial answers:
There are extended installation instructions included in the distribution disk images does give different instructions for each distribution; the instructions on the website are only for the non-app distribution. Looking at the content of the disk images I see these differences in the directory structures:
/sage/
; on the "app" image, the sage distribution is in /Sage-6.1.1.app/Contents/Resources/sage/
./.git/
(which probably shouldn't be included)/README.txt
and an empty (and unnecessary) /.Trashes/
While the non-app distribution must be installed somewhere, it is not clear why the instructions use /Applications/
.
/Library/Frameworks/
. This is done, for example, by the official Mac OS installers of Python and Mono. Most of the relevant information is linked from http://stackoverflow.com/questions/1444543/usr/local/bin/
.
I couldn't find any documentation of the general rule, but it was easy to find several posts in various forums which refer to that path for different particular command-line tools./usr/loca/bin/
(other than as Frameworks). I would guess that if the executable goes in /usr/local/bin/
the libraries would go in /usr/local/lib/
, but it was not easy to find many posts which refer to that path.The instructions on the website are only for the non-app distribution. Since it does not include an Application bundle, only a command-line executable, it says to tell finder to open the command-line executable in the Terminal. I think it would be better to put the binaries elsewhere (either in a Framework or /usr/local/lib/
) and only put an alias in /Applications/
.
It's not clear why the image with more data takes up less space.
According to the extended installation instructions included in the distribution disk images, the app distribution can create a symlink to the command-line executable in /usr/local/bin/
after installation.
Running sage as a background service is not currently supported, but may be possible by unsupported means.
It seems like the "right way" on Mac OS would be to make Sage essentially a Framework, with a companion Application that relies on the Framework for most of its functionality. Without an installer, the disk image could follow the common practice of having the Application icon appear next to a shortcut to /Applications/
with an arrow indicating to copy one into the other, repeat that for the Framework and /Library/Frameworks/
(or the library dir and /usr/local/bin/
), and keep the option in the Application to add a link to the command-line executable in /usr/local/lib/
. Documentation on the website should explain the two, and that it's OK to install only the Framework. Once the Framework supports running as a background service, the same documentation should include instructions for using the browser UI with or without the Application installed.
And with that, I'll try installing from the app image.