sagemath / sage-windows

Build tools for the Sagemath Windows installer
348 stars 47 forks source link

broken symbolic link: doc -> /doesnotexist/html/en #52

Open beliaevs opened 3 years ago

beliaevs commented 3 years ago

After installation of sage 9.2 local documentation is not accessible from jupyter notebook: http://localhost:8888/kernelspecs/sagemath/doc/index.html?v=20201201102718 gets 404: not found. From sage console: $ cd /opt/sagemath-9.2/local/share/jupyter/kernels/sagemath $ file doc doc: broken symbolic link to /doesnotexist/html/en

Directory C:\Program Files\SageMath 9.2\runtime\opt\sagemath-9.2\local\share\doc\sage\html\en exists an is OK.

embray commented 3 years ago

I'm looking into it. The new installer had to change some things about how symlinks are handled, so it's entirely possible something got borked here

embray commented 3 years ago

Turns out this is not unique to the Windows version, and is also broken upstream: https://trac.sagemath.org/ticket/30903

For the time being you can work around it by fixing the symlink. In the Sage shell run:

$ ln -sf $SAGE_ROOT/local/share/doc/sage/html/en $SAGE_ROOT/local/share/jupyter/kernels/sagemath/doc
beliaevs commented 3 years ago

Turns out this is not unique to the Windows version, and is also broken upstream: https://trac.sagemath.org/ticket/30903

For the time being you can work around it by fixing the symlink. In the Sage shell run:

$ ln -sf $SAGE_ROOT/local/share/doc/sage/html/en $SAGE_ROOT/local/share/jupyter/kernels/sagemath/doc

Thanks a lot! It works, at least for Sage installed for single user.