Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md and Installation Manual for 9.1, integrate instructions for Windows (WSL and Cygwin) in manuals #25206

Closed
embray opened this issue Apr 18, 2018 · 76 comments

Comments

@embray
Copy link
Contributor

embray commented Apr 18, 2018

Followup to #22450 to improve any hard-coded (e.g. in the official Sage docs, as opposed to on a the wiki) documentation concerning installing Sage for Windows, in particular to emphasize the native binary.

Cygwin source material:

WSL source material:

See also:

CC: @orlitzky @tscrim @darijgr @soehms @tobiasdiez @dimpase @jhpalmieri @vbraun

Component: documentation

Author: Matthias Koeppe

Branch: d56b24e

Reviewer: Michael Orlitzky

Issue created by migration from https://trac.sagemath.org/ticket/25206

@embray embray added this to the sage-8.2 milestone Apr 18, 2018
@embray
Copy link
Contributor Author

embray commented Apr 18, 2018

Dependencies: #22450

@embray embray self-assigned this Apr 18, 2018
@embray embray modified the milestones: sage-8.2, sage-8.3 Apr 26, 2018
@embray embray modified the milestones: sage-8.3, sage-8.4 Jul 18, 2018
@embray embray modified the milestones: sage-8.4, sage-8.5 Oct 28, 2018
@embray
Copy link
Contributor Author

embray commented Dec 28, 2018

comment:5

Retargeting some of my tickets.

@embray embray modified the milestones: sage-8.5, sage-8.7 Dec 28, 2018
@embray
Copy link
Contributor Author

embray commented Mar 25, 2019

comment:6

Removing most of the rest of my open tickets out of the 8.7 milestone, which should be closed.

@embray embray removed this from the sage-8.7 milestone Mar 25, 2019
@embray embray added the pending label Mar 25, 2019
@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 18, 2020

comment:7

README needs some updates regarding Windows

@mkoeppe mkoeppe added this to the sage-9.1 milestone Apr 18, 2020
@mkoeppe mkoeppe removed the pending label Apr 18, 2020
@mkoeppe

This comment has been minimized.

@mkoeppe mkoeppe changed the title Update README and installation documentation on Windows Update README, installation manual and developer's guide on Windows (WSL and Cygwin) Apr 25, 2020
@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 27, 2020

Changed dependencies from #22450 to none

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 27, 2020

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 27, 2020

Commit: 2ba0f40

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 27, 2020

comment:16

First edit.


New commits:

2ba0f40src/doc/en/installation/source.rst: Mention WSL, remove mention of outdated platforms

@mkoeppe
Copy link
Contributor

mkoeppe commented Apr 28, 2020

Author: ...

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 6, 2020

Changed commit from 082e238 to 7683168

@mkoeppe
Copy link
Contributor

mkoeppe commented May 6, 2020

comment:50

OK I'll just stop here.

@mkoeppe
Copy link
Contributor

mkoeppe commented May 6, 2020

comment:51

Needs review

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 6, 2020

Changed commit from 7683168 to 75fb70d

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 6, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

75fb70dsrc/doc/en/developer/packaging.rst: Get rid of links to outdated sage wiki pages

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 7, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

3f353fbsrc/doc/en/installation/source.rst: Add recommended ubuntu packages from wiki

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 7, 2020

Changed commit from 75fb70d to 3f353fb

@mkoeppe
Copy link
Contributor

mkoeppe commented May 7, 2020

comment:55

(last change)

@orlitzky
Copy link
Contributor

orlitzky commented May 7, 2020

Reviewer: Michael Orlitzky

@orlitzky
Copy link
Contributor

orlitzky commented May 7, 2020

comment:56

LGTM, now quit changing it =P

@mkoeppe
Copy link
Contributor

mkoeppe commented May 7, 2020

comment:57

Thanks!

@vbraun
Copy link
Member

vbraun commented May 8, 2020

comment:58
[dochtml] OSError: /var/lib/buildbot/slave/sage_git/build/src/doc/en/installation/troubles.rst:4: WARNING: Duplicate explicit target name: "sage-support mailing list".

@mkoeppe
Copy link
Contributor

mkoeppe commented May 8, 2020

comment:59

Sorry, fix coming shortly

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 8, 2020

Changed commit from 3f353fb to d56b24e

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 8, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

d56b24eFix doc markup

@vbraun
Copy link
Member

vbraun commented May 9, 2020

@tobiasdiez
Copy link
Contributor

comment:63

Thanks for updating the help. I just followed the instructions and came up with the following detailed step-by-step procedure to get sage running under Windows using WLS (which is the updated version from #28549). I think it would be worthwhile to add it to the documentation to make it easier for Windows-folks to contribute. However, I'm not sure which files to edit (in fact, I'm not even able to find the readme edited in this PR).

Prerequisites

Git (run everything in the Windows command line / Powershell console)

  • Clone repository (preserving symlinks)

    git clone -c core.symlinks=true git://github.com/sagemath/sage.git
    cd sage
    

* Correct line endings (necessary if global core.autocrlf is set to true; this should be obsolete with #29733):

git config --local core.autocrlf false
git rm --cached -r .
git reset --hard

* Setup remote trac (nessary if you want to contribute)
  
  Follow the instructions to set-up the ssh key https://help.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent and then follow http://doc.sagemath.org/html/en/developer/trac.html#trac-authentication-through-ssh and http://doc.sagemath.org/html/en/developer/manual_git.html#chapter-manual-git

git remote add trac git://trac.sagemath.org/sage.git -t master
git remote set-url --push trac [email protected]:sage.git

* Switch to development branch

git checkout develop


## Build sage (run everything from Ubuntu bash)
* Switch to Ubuntu: ` wsl `
* Install prerequisites as described in [corresponding script for Linux](http://doc.sagemath.org/html/en/installation/source.html#linux-recommended-installation). (Without the Python 3.7 dependencies, which apt-get couldn't find.)

sudo apt-get update

sudo apt-get install as in the link

* Make sure you are still in the sage folder
* Set how many cores you want to use for building (important, otherwise it will take ages)

export MAKE="make -j4"


* Build

make

* Test sage

./sage
2+2

* Register git credentials (necessary if you want to commit from WSL)

git config --global user.name ""
git config --global user.email


## Develop (using VS Code)
* Start Visual Studio Code.
* Install "Remote-WSL" extension.
* Press F1, enter Remote-WSL: New Window, and hit enter.
* Use the File menu to open your folder.
* For running & debuging, follow https://code.visualstudio.com/remote-tutorials/wsl/edit-and-debug
* Use `./sage -br` to trigger a rebuild of sage.

@tobiasdiez
Copy link
Contributor

Changed commit from d56b24e to none

@embray
Copy link
Contributor Author

embray commented May 28, 2020

comment:64

I was about to note in the wiki page that by default when you install the ccache package on Cygwin it does not configure the system to use ccache. Of course it's possible to install the Sage ccache package but this is unnecessary. So the documentation should be updated to explain how to configure ccache on Cygwin. Should I open a new ticket for that?

@mkoeppe
Copy link
Contributor

mkoeppe commented May 28, 2020

comment:65

Replying to @embray:

I was about to note in the wiki page that by default when you install the ccache package on Cygwin it does not configure the system to use ccache. Of course it's possible to install the Sage ccache package but this is unnecessary. So the documentation should be updated to explain how to configure ccache on Cygwin. Should I open a new ticket for that?

Yes, that would be great

@slel
Copy link
Member

slel commented Jul 25, 2020

comment:66

Note: a follow-up ticket was opened by @embray:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants