Error in building Sage from source
I clone the source code to the local and try to build sage by./sage -br
. It not works, the following is the message at run time:
make build/make/Makefile --stop make[1]: Entering directory '/home/weiyin98/sage/sage' ./bootstrap -d make[2]: Entering directory '/home/weiyin98/sage/sage' rm -rf config/install-sh config/compile config/config.guess config/config.sub config/missing configure build/make/Makefile-auto.in rm -f src/doc/en/installation/.txt find src/doc/en/reference/spkg -maxdepth 1 -name index.rst -prune -o -name ".rst" -exec rm -f {} + for a in environment environment-optional src/environment src/environment-optional; do rm -f $a.yml $a-3.[89].yml $a-3.1[0-9].yml; done rm -f src/requirements.txt rm -f src/setup.cfg rm -f build/pkgs/cypari/version_requirements.txt rm -f build/pkgs/cysignals/version_requirements.txt rm -f build/pkgs/cython/version_requirements.txt rm -f build/pkgs/gmpy2/version_requirements.txt rm -f build/pkgs/jupyter_core/version_requirements.txt rm -f build/pkgs/memory_allocator/version_requirements.txt rm -f build/pkgs/numpy/version_requirements.txt rm -f build/pkgs/pkgconfig/version_requirements.txt rm -f build/pkgs/pplpy/version_requirements.txt rm -f build/pkgs/setuptools/version_requirements.txt rm -f build/pkgs/wheel/version_requirements.txt make[2]: Leaving directory '/home/weiyin98/sage/sage' bootstrap:: installing 'build/pkgs/cypari/version_requirements.txt' bootstrap:: installing 'build/pkgs/cysignals/version_requirements.txt' bootstrap:: installing 'build/pkgs/cython/version_requirements.txt' bootstrap:: installing 'build/pkgs/gmpy2/version_requirements.txt' bootstrap:: installing 'build/pkgs/jupyter_core/version_requirements.txt' bootstrap:: installing 'build/pkgs/memory_allocator/version_requirements.txt' bootstrap:: installing 'build/pkgs/numpy/version_requirements.txt' bootstrap:: installing 'build/pkgs/pkgconfig/version_requirements.txt' bootstrap:: installing 'build/pkgs/pplpy/version_requirements.txt' bootstrap:: installing 'build/pkgs/setuptools/version_requirements.txt' bootstrap:: installing 'build/pkgs/wheel/version_requirements.txt' bootstrap:: installing 'm4/sage_spkg_configures.m4' bootstrap:: installing 'm4/sage_spkg_versions.m4' bootstrap:: installing 'm4/sage_spkg_versions_toml.m4' ./bootstrap: installing /home/weiyin98/sage/sage/build/pkgs/sagelib/src/requirements.txt ./bootstrap: 11: m4: not found make[1]: * [Makefile:374: configure] Error 1 make[1]: Leaving directory '/home/weiyin98/sage/sage' make: * [Makefile:39: sagelib-no-deps] Error 2
I have also tried to build it on github's codespace. Also I failed, and the message is same.
What happens when you use
./bootstrap && ./configure && make
instead of./sage -br
?It still not work. And three have failed to build:
pip-24.2
,sagelib-10.8.beta1
andpython3-3.12.5
. I don't understand why it needs to rebuild python during 'make'. I have installed python3.12.9 in my WSL.