Can't run binaries

192 views
Skip to first unread message

Sarfo

unread,
Jan 17, 2017, 10:09:49 AM1/17/17
to sage-devel
Hello,

I have been trying to run a local copy of sagemath from a binary I downloaded after extracting the tarball, typing ./sage in the terminal gives the following error. Please how do I fix it?


gyamfy@holiness ~/SageMath $ ./sage
RecursionError: maximum recursion depth exceeded during compilation
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 7.3, Release Date: 2016-08-04                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘

ERROR:  The Sage installation tree has moved

from /home/buildbot/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidmas391yaj2
  to /home/gyamfy/SageMath

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")

Eric Gourgoulhon

unread,
Jan 17, 2017, 10:14:29 AM1/17/17
to sage-devel
Hi,

It seems your binary is quite old (version 7.3). Can you try again with the 7.5.1 binaries which have just been uploaded at http://www.sagemath.org/download.html
Best wishes,

Eric.

Sarfo

unread,
Jan 17, 2017, 12:02:39 PM1/17/17
to sage-devel


Thanks Eric

I have download the latest binaries but I still get the same error

My OS is : Linux Mint 18 Cinnamon 64-bit
Cinnamon Version: 3.0.6
Linux Kernel 4.4.0-21-generic



gyamfy@holiness ~/SageMath $ ./sage
RecursionError: maximum recursion depth exceeded during compilation
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 7.5.1, Release Date: 2017-01-15                   │

Eric Gourgoulhon

unread,
Jan 17, 2017, 12:15:14 PM1/17/17
to sage-devel


Le mardi 17 janvier 2017 18:02:39 UTC+1, Sarfo a écrit :


Thanks Eric

I have download the latest binaries but I still get the same error


Which binary have downloaded?
I've tried with sage-7.5.1-Ubuntu_16.04-x86_64.tar.bz2
and it works fine for me. My system is pretty similar to yours;
OS: Ubuntu 16.04
Linux Kernel; 4.4.0-59-generic

Eric.
 

Paul Masson

unread,
Jan 17, 2017, 5:58:16 PM1/17/17
to sage-devel
If you have Anaconda installed, then remove any references it added to your $PATH variable. They create a conflict with Sage.

Dima Pasechnik

unread,
Jan 18, 2017, 3:41:38 AM1/18/17
to sage-devel
compiling from source might be easier and faster than trying a binary that is not quite matching the OS.

Sarfo

unread,
Jan 18, 2017, 3:54:21 AM1/18/17
to sage-devel
Thank you all for the responses

I have reinstall the OS and everything works fine now.

Eric Gourgoulhon

unread,
Jan 18, 2017, 3:57:57 AM1/18/17
to sage-devel
Le mercredi 18 janvier 2017 09:41:38 UTC+1, Dima Pasechnik a écrit :
compiling from source might be easier and faster than trying a binary that is not quite matching the OS.


Yes indeed. Here are a few hints to build from source:

1/ Make sure that the prerequisites are installed on your system, cf.
http://doc.sagemath.org/html/en/installation/source.html#prerequisites
For Ubuntu 16.04 the list of packages to install is
https://wiki.sagemath.org/prerequisitesUbuntu
I guess it is should be pretty similar for Linux Mint 18

2/ run the following commands in a terminal:
git clone https://github.com/sagemath/sage.git
cd sage 
MAKE="make -j8" make
You may adapt the 8 in "-j8" to the number of threads you want
to use for the parallel build, depending on your CPU.

Best wishes,

Eric.

Sarfo

unread,
Jan 18, 2017, 4:21:40 AM1/18/17
to sage-devel


On Wednesday, 18 January 2017 08:57:57 UTC, Eric Gourgoulhon wrote:
Le mercredi 18 janvier 2017 09:41:38 UTC+1, Dima Pasechnik a écrit :
compiling from source might be easier and faster than trying a binary that is not quite matching the OS.


Yes indeed. Here are a few hints to build from source:

Thank you very much Eric

Gere Mia

unread,
Mar 8, 2017, 4:46:30 PM3/8/17
to sage-devel
How does one move the sage directory after building it?

Gere Mia

unread,
Mar 8, 2017, 4:52:18 PM3/8/17
to sage-devel
I built mine in /tmp, now it wants me to run it in temp. How can I run it from somewhere else?

François Bissey

unread,
Mar 8, 2017, 5:06:10 PM3/8/17
to sage-...@googlegroups.com
There used to be a "make install" target but it is deprecated.
You should move the entire install and run
./sage --location
but I never do that. Someone else may have more experience with it.

Francois
> --
> 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
> <mailto:sage-devel+...@googlegroups.com>.
> To post to this group, send email to sage-...@googlegroups.com
> <mailto:sage-...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.

Dima Pasechnik

unread,
Mar 9, 2017, 5:40:14 AM3/9/17
to sage-devel
at present a normal build cannot be moved, you must build in place.
(there is also a special building procedure for binary movable (once!) distributions, but that's probably not

There is a ticket to have this fixed: https://trac.sagemath.org/ticket/21479
which hopefully will be in soon, and then you'd be able to specify the install location.

Reply all
Reply to author
Forward
0 new messages