Installing Sage on Ubuntu 24.04 , waited 12 hours for documentation to install

45 views
Skip to first unread message

Stuart Anderson

unread,
Jul 6, 2025, 1:02:25 PMJul 6
to sage-support
my terminal showed;
Setting up build directory /home/stuart/Sage/sage/local/var/tmp/sage/build/sagemath_doc_html-none
Host system: Linux stuart-i7-3060 6.11.0-29-generic #29~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jun 26 14:16:59 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
C compiler: gcc, Using built-in specs., COLLECT_GCC=gcc, COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/13/lto-wrapper, OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa, OFFLOAD_TARGET_DEFAULT=1, Target: x86_64-linux-gnu, Configured with: ../src/configure -v --with-pkgversion='Ubuntu 13.3.0-6ubuntu2~24.04' --with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-13 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-13-fG75Ri/gcc-13-13.3.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-13-fG75Ri/gcc-13-13.3.0/debian/tmp-gcn/usr --enable-offload-defaulted --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2, Thread model: posix, Supported LTO compression algorithms: zlib zstd, gcc version 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04)
No stamp file for package 'sagemath_doc_html' in /home/stuart/Sage/sage/local/var/lib/sage/installed
No spkg-legacy-uninstall script; nothing to do
[spkg-install] mkdir -p en/reference/repl
[spkg-install] sage -advanced > en/reference/repl/options.txt
[spkg-install] make doc-inventory--reference-references
[spkg-install] sage --docbuild --no-pdf-links reference/references inventory 

After waiting about 12 hours I pressed control C twice to abort the installation, then I received these terminal messages;

[spkg-install] [reference] Interrupting Mathematica...
[spkg-install] [reference] Interrupted!
[spkg-install] make[6]: *** [Makefile:28: doc-inventory--reference-references] Interrupt
[spkg-install] make[5]: *** [Makefile:44: doc-inventory-reference] Interrupt
************************************************************************
Error installing package sagemath_doc_html-none
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the log files
  /home/stuart/Sage/sage/logs/pkgs/sagemath_doc_html-none.log
and
  /home/stuart/Sage/sage/config.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/stuart/Sage/sage/local/var/tmp/sage/build/sagemath_doc_html-none and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
  (cd '/home/stuart/Sage/sage/local/var/tmp/sage/build/sagemath_doc_html-none' && '/home/stuart/Sage/sage/sage' --buildsh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************
details of my hardware and the config.log and sagemath_doc_html-none.log attached
sagemath_doc_html-none.log
hardinfo2_report.html
config.log

Dima Pasechnik

unread,
Jul 6, 2025, 6:27:07 PMJul 6
to sage-s...@googlegroups.com, sage-devel
Dear Stuart,

thanks for the message. We don't test Sagemath on machines with
Mathematica installed, sorry.
Do you actually have a working Mathematica installation?
Sage is able to use terminal interface to it, using "math" command.
Does typing "math" (without quotes) in the terminal give you a
Mathematica prompt?
A quick and dirty way to disable the interface (which can be buggy) is
to remove the path to "math" from the PATH
environment variable, and re-run make.

To get the path in question, type "which math" (without quotes) in the terminal.
It will output something like
/foo/bar/baz/math
and you'd need to make sure "/foo/bar/baz/" is not in PATH.

HTH
Dima

PS. If anyone is willing to try to set up a CI test for math, one
needs to follow something like

https://github.com/WolframResearch/WL-FunctionCompile-CI-Template

PRs to incorporate this are welcome.
> --
> 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 visit https://groups.google.com/d/msgid/sage-support/854e453b-f459-49c7-a5be-0372b8224155n%40googlegroups.com.

Stuart Anderson

unread,
Jul 6, 2025, 10:23:58 PMJul 6
to sage-support
Yes I have an expired licence for mathematica 
math
Wolfram 14.2.0 Kernel for Linux x86 (64-bit)
I've deleted mathematica and its path.

How do I rerun make ?  I'm getting ;
make: *** No targets specified and no makefile found.  Stop.

Stuart Anderson

unread,
Jul 6, 2025, 10:24:12 PMJul 6
to sage-support
I was in the wrong folder, make is working and the documentation is being installed

Thanks for your help
On Monday, July 7, 2025 at 8:27:07 AM UTC+10 dim...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages