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

On Tue, Jul 18, 2023 at 12:01 PM Tim M <typicalski...@gmail.com> wrote:
>
> 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
>
> On Tuesday, 18 July 2023 at 20:28:54 UTC+10 Dima Pasechnik wrote:
>>
>> 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
>>
>> >
>> > On Monday, 17 July 2023 at 22:30:51 UTC+10 Tim M wrote:
>> >>
>> >> 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.
>> >>
>> >> On Monday, 17 July 2023 at 21:37:45 UTC+10 Dima Pasechnik wrote:
>> >>>
>> >>> On Mon, Jul 17, 2023 at 12:16 PM 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 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.
>> >>>
>> >>> 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)
>> >>>
>> >>>
>> >>> >
>> >>> > Any help is appreciated
>> >>> >
>> >>> > On Sunday, 16 July 2023 at 19:41:09 UTC+10 David Joyner wrote:
>> >>> >>
>> >>> >> On Sun, Jul 16, 2023 at 5:33 AM Tim M <typica...@gmail.com> wrote:
>> >>> >>>
>> >>> >>> 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.
>> >>> >>>
>> >>> >>
>> >>> >>
>> >>> >> 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.
>> >>> >
>> >>> > --
>> >>> > 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/cf56e976-9da2-4a92-a0bf-dd65d51d268fn%40googlegroups.com.
>> >
>> > --
>> > 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/e5e1320e-98c0-49a2-8a17-19a470b0435dn%40googlegroups.com.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/38e118a8-e697-4f4a-a29a-2be0a79c9bb1n%40googlegroups.com.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq370PcbRrJcykeKt3DqM_AAN-pocT8CEi-jFHztKNJaoA%40mail.gmail.com.

Reply via email to