How do I add missing functions?
I am new to sagemath.
I followed the steps for installing sagemath 9.6 from:
sagemanifolds[DOT]obspm[DOT]fr/install_ubuntu[DOT]html
However, while testing out the included functions, I noticed that I do not have any height functions:
height(); local_height(); global_height(); archimedean_local_height(); non_archimedean_local_height();
etc.
How do I add these missing functions?
Height of what object? Do you want to add functions locally in your code, or globally in next version of Sage?
locally in my code. it seems to be in Sage already, just not in my version
You need to provide a minimal example illustrating the issue. See https://en.wikipedia.org/wiki/Minimal...
I started with
apt install sagemath apt install sagemath-doc
then followed the steps from the link in my question:
sudo apt install [...too large for comment...]
git clone --branch master https://github.com/sagemath/sage.git
cd sage/
make configure ./configure MAKE="make -j8" make
then deleted the first installed binary :
sudo rm /usr/bin/sage
then moved the new binary to my PATH:
sudo ln -sf $(pwd)/sage /usr/local/bin
sudo ln -sf $(pwd)/sage /usr/bin
When I run sage -v it says:
SageMath version 9.6, Release Date: 2022-05-15
yet I receive the errors listed in response to slelievre's answer