Can not run make

84 views
Skip to first unread message

Tim M

unread,
Jul 16, 2023, 5:33:45 AM7/16/23
to sage-support
Good evening all, I am trying to run make but get the following error.
make build/make/Makefile --stop
make[1]: Entering directory '/home/macka/Sage/sage-9.5'
rm -f config.log
mkdir -p logs/pkgs
ln -s logs/pkgs/config.log config.log
****************************************************************************
error: Sage source tree is unconfigured. Please run "./configure" first.
note:  Type "./configure --help" to see the available configuration options.
****************************************************************************
make[1]: *** [Makefile:55: build/make/Makefile] Error 1
make[1]: Leaving directory '/home/macka/Sage/sage-9.5'
make: *** [Makefile:38: base-toolchain] Error 2

I have run ./configure many times but nothing changes.

Any help would be much appreciated.

David Joyner

unread,
Jul 16, 2023, 5:41:09 AM7/16/23
to sage-s...@googlegroups.com
What is the output of ./configure?

Note the latest stable version is 10.0, not 9.5.



Any help would be much appreciated.

--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/c1bee291-ec60-4dd5-a11b-4c99383ba5e5n%40googlegroups.com.

Tim M

unread,
Jul 17, 2023, 7:16:48 AM7/17/23
to sage-support
Thanks for responding.

The output of ./ configure is as follows:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for root user... yes
configure: error: You cannot build Sage as root, switch to an unprivileged user.  (If building in a container, use --enable-build-as-root.)

I understand I cant run make as root but to run configure I need to be root.  As for the version, on the Sagemath download it said 9.5 for my version of Linux.

Any help is appreciated

David Joyner

unread,
Jul 17, 2023, 7:37:18 AM7/17/23
to sage-s...@googlegroups.com
On Mon, Jul 17, 2023 at 7:16 AM Tim M <typica...@gmail.com> wrote:
Thanks for responding.

The output of ./ configure is as follows:
checking for a BSD-compatible install... /usr/bin/install -c

...
 
checking for shared library run path origin... done
checking for root user... yes
configure: error: You cannot build Sage as root, switch to an unprivileged user.  (If building in a container, use --enable-build-as-root.)

I understand I cant run make as root but to run configure I need to be root.  As for the version, on the Sagemath download it said 9.5 for my version of Linux.

What happens when you try to run configure as macka?

What release of linux are you running?
 

Dima Pasechnik

unread,
Jul 17, 2023, 7:37:45 AM7/17/23
to sage-s...@googlegroups.com
Sorry, you apparently want to build Sage from source. Then you need to
download the sources:
https://doc.sagemath.org/html/en/installation/index.html#linux
from
https://github.com/sagemath/sage/releases

Nothing there says you need version 9.5 for anything.
We stopped shipping pre-built binary Linux versions of Sage a while
ago (the last such were released for Sage 9.4, as far as I know)
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/cf56e976-9da2-4a92-a0bf-dd65d51d268fn%40googlegroups.com.

Tim M

unread,
Jul 17, 2023, 8:30:51 AM7/17/23
to sage-support
OK I think I have it, if I download the source of version 10 from github I should be able to configure and make that.

Tim M

unread,
Jul 18, 2023, 6:21:47 AM7/18/23
to sage-support
Im sorry this just isn't working for me.  I downloaded the version 10.tar.gz file and after unpacking there is no ./configure available.

Dima Pasechnik

unread,
Jul 18, 2023, 6:28:54 AM7/18/23
to sage-s...@googlegroups.com
On Tue, Jul 18, 2023 at 11:21 AM Tim M <typica...@gmail.com> wrote:
>
> Im sorry this just isn't working for me. I downloaded the version 10.tar.gz file and after unpacking there is no ./configure available.
Yes, you need to run

./bootstrap

(or, what amounts to the same thing,
make configure
)

first of all, as documented in https://github.com/sagemath/sage/#readme
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/e5e1320e-98c0-49a2-8a17-19a470b0435dn%40googlegroups.com.

Tim M

unread,
Jul 18, 2023, 7:01:55 AM7/18/23
to sage-support
Thank you for the help, I have followed the guide and I get the same fails:

configure output
checking for a BSD-compatible install... /bin/install -c

checking whether build environment is sane... yes
checking for a race-free mkdir -p... /bin/mkdir -p

checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for ld used by gcc... /bin//ld
checking if the linker (/bin//ld) is GNU ld... yes

checking for shared library run path origin... done
checking for root user... yes
configure: error: You cannot build Sage as root, switch to an unprivileged user.  (If building in a container, use --enable-build-as-root.)

make output
make build/make/Makefile --stop
make[1]: Entering directory '/home/macka/Sage/sage-10.0'

rm -f config.log
mkdir -p logs/pkgs
ln -s logs/pkgs/config.log config.log
****************************************************************************
error: Sage source tree is unconfigured. Please run "./configure" first.
note:  Type "./configure --help" to see the available configuration options.
****************************************************************************
make[1]: *** [Makefile:56: build/make/Makefile] Error 1
make[1]: Leaving directory '/home/macka/Sage/sage-10.0'
make: *** [Makefile:39: base-toolchain] Error 2

Dima Pasechnik

unread,
Jul 18, 2023, 7:27:18 AM7/18/23
to sage-s...@googlegroups.com
any reason to run this as root?

configure: error: You cannot build Sage as root, switch to an
unprivileged user. (If building in a container, use
--enable-build-as-root.)

If you absolutely must run this as root, you can run

./configure --enable-build-as-root
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/38e118a8-e697-4f4a-a29a-2be0a79c9bb1n%40googlegroups.com.

David Joyner

unread,
Jul 18, 2023, 7:51:51 AM7/18/23
to sage-s...@googlegroups.com
What happens when you try to run configure as macka?

Tim M

unread,
Jul 18, 2023, 7:52:17 AM7/18/23
to sage-support
It was giving me a bunch of fails when I didn't sudo make.  but that fixed it, it is now working.

Thankyou so much for your help.

Reply all
Reply to author
Forward
0 new messages