[sage-support] Re: still problems again installing Sage9.2

2021-06-08 Thread roja...@gmail.com
Yes. Great instructions. It is working perfectly. Deep thanks!
Best

El martes, 8 de junio de 2021 a las 18:37:04 UTC-4, slelievre escribió:

> P.S. The instructions helped Anita get kbmag working.
> They also helped someone install PyNormaliz, see
> https://groups.google.com/g/sage-support/c/oQhyxt7Tggc/m/y8eS0W3NAQAJ
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/ff0c960d-8b86-4f9b-857b-117c0e88ba62n%40googlegroups.com.


[sage-support] Re: still problems again installing Sage9.2

2021-06-08 Thread slelievre
P.S. The instructions helped Anita get kbmag working.
They also helped someone install PyNormaliz, see
https://groups.google.com/g/sage-support/c/oQhyxt7Tggc/m/y8eS0W3NAQAJ

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/969025c1-6627-4cf3-a8f9-d9010728bc0fn%40googlegroups.com.


[sage-support] Re: still problems again installing Sage9.2

2021-05-31 Thread slelievre
The Sage shipped by the SageMath macOS app
can run Sage and install many extra packages,
but does not ship build tools that are necessary
for installing certain extra packages.

So you might want to install a fuller Sage.

Some suggested steps follow. Lines that start
with a dollar sign and space are commands to run
in a terminal (without the initial dollar sign).

A.  Visit the SageMath macOS download page:
https://www.sagemath.org/download-mac.html

B.  Select a mirror close to you

C.  Click "intel"

D.  Get the latest version for your system,
for instance if you have macOS 11, get:
`sage-9.3-OSX_11.2.3-x86_64.tar.bz2`

E.  Move the dowloaded `.tar.bz2` file to the location
of your choice, for instance `/Applications`

F.  Extract it, either by a double click or with
```
$ cd /Applications
$ tar xf sage-9.3-OSX_11.2.3-x86_64.tar.bz2
```
and get a folder called SageMath.

G.  Clear any extended attributes macOS might
have put on the files in that folder with
```
$ xattr -cr /Applications/SageMath
```

H.  Create a symlink to the Sage executable,
placing it somewhere in your path, for example:
```
$ ln -sf /Applications/SageMath/sage /usr/local/bin
```
If there is a permission problem, use sudo:
```
$ sudo ln -sf /Applications/SageMath/sage /usr/local/bin
```
(enter your admin password for that Mac when prompted).
(Note that if the version without sudo failed, you can
avoid re-typing or copy-pasting the whole ln command:
use "up-arrow" to get the last command, hit Ctrl-A
to move to the start of the line, then type `sudo`,
hit Space, hit Enter.)

I.  Now you can start Sage from any location
```
$ which sage
/usr/local/bin/sage
$ ls -halF $(which sage)
...
$ sage --version
...
$ sage
...
```
Hit Ctrl-D, or type `quit` and hit Enter, to quit.

To launch Jupyter, you can run
```
$ sage -n jupyter
```

J.  Install any extra packages you like, e.g.
```
$ sage -i fricas
$ sage -i gap_packages
$ sage -i jupyterlab_widgets
$ sage --pip install RISE
$ sage --pip install jupytext
```

K.  To install extra GAP packages, e.g. `kbmag`,
one way is to use the GAP package `PackageManager`.

This can be done in GAP. Here we start Sage's GAP
and work there (don't forget the semicolons!):
```
$ sage --gap
...
gap> LoadPackage("PackageManager");
true
gap> InstallPackage("kbmag");
true
gap> LoadPackage("kbmag");
true
```
To quit GAP, either hit Ctrl-D or type `quit;` and hit Enter.

Or this can be done in Sage using `libgap`:
```
$ sage -q
sage: libgap.eval('LoadPackage("PackageManager")')
true
sage: libgap.eval('InstallPackage("kbmag")')
true
sage: libgap.eval('LoadPackage("kbmag")')
true
```

Note: kbmag is installed once and for all. Next time
you start GAP or Sage, you can directly load it.

L.  If you want to make the SageMath Jupyter kernel
available to a system-wide Jupyter installation:
```
$ ORIG=/Applications/SageMath/local/share/jupyter/kernels
$ DEST=~/Library/Jupyter/kernels
$ ln -sf $ORIG/sagemath $DEST
```

M.  If you want the ability to double-click `.ipynb` files
to open them, install nteract from
https://nteract.io/

Hope this helps. Let us know if you got things working.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/f8b9c0b1-29fa-4896-bc15-803a2548c3e5n%40googlegroups.com.