Jan: Sorry, forgot to mention that I used the 16.04 tarball on 18.04. Vincent: Tried installing sagemath using your recipe. Works OK for my original problem. However, have now reverted for several reasons... (a) 8.1 not 8.3 (b) I usually add packages to the GAP pkg directory. I didnt find such a directory. sagemath structure looks very different. (c) Seems slower than 16.04 tarball solution.
Graham On 12 August 2018 at 15:41, Jan Groenewald <j...@aims.ac.za> wrote: > Hi > > I thought there were no binary tarballs for 18.04? > http://files.sagemath.org/linux/64bit/index.html > > Regards, > Jan > > > On Sun, 12 Aug 2018 at 13:57, Graham Gerrard <graham.gerr...@gmail.com> > wrote: > >> Hi Jan >> >> I initially installed from the binary tarball. Successfully tried >> >> sudo apt install tk tk-dev >> sage -f python2 >> >> Ubuntu18.04 seems to be missing several development tools. So I guess >> this will all be resolved when a version of sage for 18.04 is formally >> released. >> >> Many thanks for your help. >> >> Graham >> >> On 11 August 2018 at 15:22, Jan Groenewald <j...@aims.ac.za> wrote: >> >>> Hi >>> >>> On Sat, 11 Aug 2018 at 15:38, Graham Gerrard <graham.gerr...@gmail.com> >>> wrote: >>> >>>> I am using sage from a command prompt ... >>>> >>>> >>>> show(line2d([(0,0),(1,1),(2,4)])) produces >>>> >>>> /home/graham/SageMath/local/lib/python2.7/lib-tk/Tkinter.py in >>>> <module>() >>>> 37 # Attempt to configure Tcl/Tk without requiring PATH >>>> 38 import FixTk >>>> ---> 39 import _tkinter # If this fails your Python may not be >>>> configuredhttps://packages.ubuntu.com/search?keywords=tk& >>>> searchon=names&suite=bionic§ion=all for Tk >>>> 40 tkinter = _tkinter # b/w compat for export >>>> 41 TclError = _tkinter.TclError >>>> >>>> ImportError: libtk8.6.so: cannot open shared object file: No such file >>>> or directory. >>>> >>> >>> >>> Did you install from source? (versus from apt / software centre?) >>> >>> http://doc.sagemath.org/html/en/installation/source.html#tcl-tk >>> >>> So it looks like even if you just sudo apt install tk8.6 (and mabye >>> tk8.6-blt2.5??) >>> your ubuntu python might pick it up but not the sage python. >>> >>> So you should sudo apt install tk8.6-dev (and mabye tkblt-dev??) >>> and then rebuild the sage python as per the instructions at the link >>> above. >>> >>> tk packages in ubuntu 18.04: >>> >>> https://packages.ubuntu.com/search?keywords=tk&searchon= >>> names&suite=bionic§ion=all >>> >>> Or perhaps there is someone else who can answer if one can tell Sage not >>> to try to use tk for >>> show(lines(... but to use another graphics toolkit. >>> >>> Regards, >>> Jan >>> -- >>> .~. >>> /V\ Jan Groenewald >>> /( )\ www.aims.ac.za >>> ^^-^^ >>> >>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "sage-support" group. >>> To unsubscribe from this topic, visit https://groups.google.com/d/ >>> topic/sage-support/xbLE-tPJziI/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> sage-support+unsubscr...@googlegroups.com. >>> To post to this group, send email to sage-support@googlegroups.com. >>> Visit this group at https://groups.google.com/group/sage-support. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> 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 post to this group, send email to sage-support@googlegroups.com. >> Visit this group at https://groups.google.com/group/sage-support. >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > .~. > /V\ Jan Groenewald > /( )\ www.aims.ac.za > ^^-^^ > > -- > You received this message because you are subscribed to a topic in the > Google Groups "sage-support" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/sage-support/xbLE-tPJziI/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > sage-support+unsubscr...@googlegroups.com. > To post to this group, send email to sage-support@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/d/optout. > -- 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 post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.