Correctly re-installing sage from source after removing a prior install from source?

30 views
Skip to first unread message

Siddharth Bhat

unread,
Jan 9, 2021, 8:57:55 AM1/9/21
to sage-devel
I'd installed SAGE from source once, and then deleted the folder. I'm now trying to install SAGE again from source, this time at a /different/ location. It builds, and then finally fails with:

----
[2021-01-09 19:20:11] SageMath version 9.3.beta5, Release Date: 2020-12-27
ERROR:  The Sage installation tree has moved

from /home/bollu/work/sage
  to /home/bollu/software/sage

This is not supported, and Sage will not work. To install Sage from a
binary package:

1. Open the .tar.bz2 archive (or .dmg on OSX)

2. Move the SageMath folder/app to where you want it to be. You can
   also rename the directory now.

3. Start sage for the first time. This will then automatically patch
   paths in binaries.

After starting Sage for the first time you cannot change the
installation any more. To install Sage elsewhere, start over from the
binary package. Or recompile Sage from scratch in the new location
("make distclean && make")
------

Unfortunately, I can't follow the instructions because I don't *have* a SageMath install anymore. It seems like some sort of
specter of the previous installation is still hanging around somewhere. 

How do I actually cleanly install SAGE a second time?

Thanks,

Dima Pasechnik

unread,
Jan 9, 2021, 10:13:38 AM1/9/21
to sage-devel
On Sat, Jan 9, 2021 at 1:57 PM Siddharth Bhat <siddu...@gmail.com> wrote:
>
> I'd installed SAGE from source once, and then deleted the folder. I'm now trying to install SAGE again from source, this time at a /different/ location. It builds, and then finally fails with:
>
> ----
> [2021-01-09 19:20:11] SageMath version 9.3.beta5, Release Date: 2020-12-27
> ERROR: The Sage installation tree has moved
>
> from /home/bollu/work/sage
> to /home/bollu/software/sage

A standard Sage build presently cannot be moved. You need to build it in place.
So can just move your /home/bollu/software/sage back to /home/bollu/work/sage
and use it from there (e.g. by creating a symbolic link from
/home/bollu/software/sage to /home/bollu/work/sage)

HTH
Dima

PS. the binary package messages here are misleading.
>
> This is not supported, and Sage will not work. To install Sage from a
> binary package:
>
> 1. Open the .tar.bz2 archive (or .dmg on OSX)
>
> 2. Move the SageMath folder/app to where you want it to be. You can
> also rename the directory now.
>
> 3. Start sage for the first time. This will then automatically patch
> paths in binaries.
>
> After starting Sage for the first time you cannot change the
> installation any more. To install Sage elsewhere, start over from the
> binary package. Or recompile Sage from scratch in the new location
> ("make distclean && make")
> ------
>
> Unfortunately, I can't follow the instructions because I don't *have* a SageMath install anymore. It seems like some sort of
> specter of the previous installation is still hanging around somewhere.
>
> How do I actually cleanly install SAGE a second time?
>
> Thanks,
> ~Siddharth
>
>
> --
> https://bollu.github.io/
>
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAPipc%3D2M-SCy1kO4D7bsAumk-ePO2bTg6r7%2BAFhEJUkWYpkdKQ%40mail.gmail.com.

Volker Braun

unread,
Jan 10, 2021, 4:55:13 AM1/10/21
to sage-devel
Did you set up global environment variables (like SAGE_ROOT) in you previous install? This is not recommended. Whats the output of "env | grep SAGE"?

Siddharth Bhat

unread,
Jan 10, 2021, 8:22:57 AM1/10/21
to sage-devel
I have SAGE_ROOT unset.

bollu@cantordust:~/ > env | grep SAGE

Best,
~Siddharth

--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages