Ask Your Question
0

#I Getting PackageInfo URLs... false #I Package "database_odlyzko_zeta" not found in package list

asked 2023-08-04 02:04:43 +0100

takashi gravatar image

I want to install the optional odlyzko database of riemann zeta zeros.

-i is not available in the mac binary app.

so I tried the suggested workaround:

libgap.LoadPackage("PackageManager") libgap.InstallPackage("database_odlyzko_zeta")

and got the response:

I Getting PackageInfo URLs...

false

I Package "database_odlyzko_zeta" not found in package list

Is there a solution to the workaround not working? Is there a way to get a version of sagemath for mac that actually supports the -i function?

How can I get Sagemath to work smoothly again like it did when I first installed it many years ago?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2023-08-04 03:36:29 +0100

Building Sagemath from source will let you use sage -ito install packages. See https://doc.sagemath.org/html/en/inst... and in particular the parts under "Yes, development". Use the command ./configure --enable-database_odlyzko_zeta=yes to build the package as part of the initial installation.

edit flag offensive delete link more

Comments

Thanks for the advice. There are multiple versions of instructions to build Sagemath from source, and some are clearer than others. I am trying to work through it, but am running into problems. When I try to install gfortran using brew, it doesn't work, and spits out a whole bunch of "No such file or directory" messages ending with "Permission denied." Also, the GCC version on my computer is 14.0.0, but the instructions say it needs to be between 8.0.0 and 12.0.0.

takashi gravatar imagetakashi ( 2023-08-04 06:29:36 +0100 )edit

The instructions at https://doc.sagemath.org/html/en/inst... should work. If not, look at https://stackoverflow.com/questions/1.... If that doesn't help, maybe completely remove homebrew and start over? If that still doesn't work, you can install Sagemath without any homebrew packages, it will just take longer: just try ./configure; make. First you could do export MAKE="make -j4" to speed up the compilation process because it will try to build using 4 parallel processes. You could replace 4 with other higher numbers if your machine is capable of it.

John Palmieri gravatar imageJohn Palmieri ( 2023-08-04 18:32:31 +0100 )edit

I just got done removing files from a conflicting admin account on the computer, and I'm trying the instructions at https://doc.sagemath.org/html/en/inst...

I am stuck on the step source SAGE_ROOT/.homebrew-build-env (replacing SAGE_ROOT by Sage’s home directory)

These instructions leave it up to my discretion what to put in for Sage's home directory, but I don't know what to put in because SAGE has not been installed yet.

Can you please help me understand what I am supposed to put in the place of SAGE_ROOT to make this work?

takashi gravatar imagetakashi ( 2023-08-15 04:42:51 +0100 )edit

You will have to decide where to install Sage. Once you compile it, you cannot move it or else it won't work; if you decide on a different location, you will need to build it again. On my machine I use my own home directory, but I suppose some people might use /usr/local or some other location. Once you decide, then download a tar file or clone the GitHub distribution in your desired spot. Eventually, you will want to add the location to your PATH variable (in .zshrc if you are using the default zsh) to make sure that you can run sage without specifying the full path. You can also create a symbolic link to SAGE_ROOT/sage in a convenient spot. (See instruction #19 in SAGE_ROOT/README.md. Indeed, look at that file for more installation instructions and advice.)

John Palmieri gravatar imageJohn Palmieri ( 2023-08-15 06:35:38 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2023-08-04 02:04:43 +0100

Seen: 136 times

Last updated: Aug 04 '23