Currently advised way to build sage from a fresh git clone

44 views
Skip to first unread message

Maarten Derickx

unread,
Mar 19, 2021, 3:07:15 PM3/19/21
to sage-devel
Hi All,

I haven't had a development version of sage for some time, and now am setting one up again. In setting it up I found out that both my understanding of how to do a build from a fresh git clone for some time ago, as well as the current developer documentation don't seem to matching the current situation anymore.

Here is how I got a working sage installation:

git clone git://github.com/sagemath/sage.git #I realize I need to add git.sagemath.org later
make #gives an error that I should run configure first
./configure 
make

The ./configure used and second make to be unnecessary according to my memory and the documentation on https://doc.sagemath.org/html/en/developer/walk_through.html#obtaining-the-sage-source-code 

Additionally the ./configure command is not available until you run make at least once, so is there a step that I am missing (or an argument to the first make) so that I don't get an error after the first make?

Thanks,
Maarten

Maarten Derickx

unread,
Mar 19, 2021, 3:09:18 PM3/19/21
to sage-devel
On Friday, 19 March 2021 at 20:07:15 UTC+1 Maarten Derickx wrote:
Hi All,

I haven't had a development version of sage for some time, and now am setting one up again. In setting it up I found out that both my understanding of how to do a build from a fresh git clone for some time ago, as well as the current developer documentation don't seem to matching the current situation anymore.

Here is how I got a working sage installation:

git clone git://github.com/sagemath/sage.git #I realize I need to add git.sagemath.org later
make #gives an error that I should run configure first
./configure 
make

The ./configure used and second make to be unnecessary according to my memory and the documentation on https://doc.sagemath.org/html/en/developer/walk_through.html#obtaining-the-sage-source-code 

*The ./configure  and second make used to be unnecessary 

Samuel Lelievre

unread,
Mar 19, 2021, 3:33:30 PM3/19/21
to sage-devel
Running `configure` before `make` became mandatory after

- Sage Trac ticket 29316: Require ./configure before make

merged in Sage 9.2.beta2.

With that in mind, the steps are now as follows.

Clone and change to the obtained folder:
```
$ git clone ...
$ cd ...
```
Then either
```
$ make configure
$ ./configure
$ make
```
or
```
$ ./bootstrap
$ ./configure
$ make
```
or if you like quiet:
```
$ git clone ... -q
$ cd ...
$ ./bootstrap -q
$ ./configure -q
$ ./make -s V=0
```
Happy building Sage!  --Samuel

Matthias Koeppe

unread,
Mar 19, 2021, 3:42:55 PM3/19/21
to sage-devel
Our README.md is up to date. Unfortunately, the section "Sage Development Process" in Developer's Guide is not.
https://trac.sagemath.org/ticket/29784 describes the task of updating this section - which needs help.

Reply all
Reply to author
Forward
0 new messages