Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 66c07d8

Browse files
committed
trac 29558: first draft
1 parent 249fc90 commit 66c07d8

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

src/doc/bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ mkdir -p "$OUTPUT_DIR"
2323

2424
shopt -s extglob
2525

26-
for SYSTEM in arch debian fedora cygwin; do
26+
for SYSTEM in arch debian fedora cygwin homebrew; do
2727
SYSTEM_PACKAGES=$(echo $(${STRIP_COMMENTS} build/pkgs/$SYSTEM.txt))
2828
for PKG_SCRIPTS in build/pkgs/*; do
2929
if [ -d $PKG_SCRIPTS ]; then

src/doc/en/installation/source.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,13 @@ On Debian ("buster" or newer) or Ubuntu ("bionic" or newer):
228228

229229
.. literalinclude:: debian.txt
230230

231+
.. WARNING::
232+
233+
Note: in this documentation, commands like these are
234+
autogenerated. They may as such include duplications. The
235+
duplications are certainly not necessary for the commands to
236+
function properly, but they don't cause any harm, either.
237+
231238
On Fedora / Redhat / CentOS:
232239

233240
.. literalinclude:: fedora.txt
@@ -297,6 +304,43 @@ a registration.
297304
to Command Line Tools.
298305

299306

307+
308+
macOS recommended installation
309+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
310+
311+
Although Sage can in theory build its own version of gfortran, this
312+
can take a while, and the process fails on some recent versions of
313+
OS X. So instead you can install your own copy. One advantage of this
314+
is that you can install it once, and it will get used every time you
315+
build Sage, rather than building gfortran every time.
316+
317+
One way to do that is with the `Homebrew package manager
318+
<https://brew.sh>`_. Install Homebrew as their web page describes, and
319+
then the command ::
320+
321+
$ brew install gcc
322+
323+
will install Homebrew's gcc package, which includes gfortran. Sage
324+
will also use other Homebrew packages, if they are present. You can
325+
install the following:
326+
327+
.. literalinclude:: homebrew.txt
328+
329+
Some Homebrew packages are installed "keg-only," meaning that they are
330+
not available in standard paths. To make them accessible when building
331+
Sage, run ::
332+
333+
$ source SAGE_ROOT/.homebrew-build-env
334+
335+
(replacing ``SAGE_ROOT`` by Sage's home directory). You can add a
336+
command like this to your shell profile if you want the settings to
337+
persist between shell sessions.
338+
339+
Some additional optional packages are taken care of by:
340+
341+
.. literalinclude:: homebrew-optional.txt
342+
343+
300344
.. _section_cygwinprereqs:
301345

302346
Cygwin prerequisite installation

0 commit comments

Comments
 (0)