please try installing libreadline-dev and libncurses5-dev and rebuild python package with
./sage -f python2 and then make build On Sat, 26 Oct 2019, 12:54 Jim Hefferon, <jim.heffe...@gmail.com> wrote: > Thank you in advance for any help. I have a standard Ubuntu 18.04.3. I > am trying to build in /usr/local/src/sage-8.9, as not a root user. > > I followed the directions on > https://doc.sagemath.org/html/en/installation/source.html#sec-installation-from-sources > and > the final lines are here. As it suggests, I included the log file. Any > suggestions? > > > Testing importing of various modules... > ctypes module imported OK > math module imported OK > hashlib module imported OK > crypt module imported OK > Traceback (most recent call last): > File "<string>", line 1, in <module> > ImportError: No module named readline > readline module failed to import > socket module imported OK > Error: One or more modules failed to import. > > > real 1m37.228s > user 1m27.914s > sys 0m9.234s > ************************************************************************ > Error building package python2-2.7.15.p1 > ************************************************************************ > Please email sage-devel (http://groups.google.com/group/sage-devel) > explaining the problem and including the log file > /usr/local/src/sage-8.9/logs/pkgs/python2-2.7.15.p1.log > Describe your computer, operating system, etc. > If you want to try to fix the problem yourself, *don't* just cd to > /usr/local/src/sage-8.9/local/var/tmp/sage/build/python2-2.7.15.p1 and > type 'make' or whatever is appropriate. > Instead, the following commands setup all environment variables > correctly and load a subshell for you to debug the error: > (cd '/usr/local/src/sage-8.9/local/var/tmp/sage/build/python2-2.7.15.p1' > && '/usr/local/src/sage-8.9/sage' --sh) > When you are done debugging, you can type "exit" to leave the subshell. > ************************************************************************ > > Thank you, > Jim > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/8738244d-682e-4a06-a453-276db4a71a7c%40googlegroups.com > <https://groups.google.com/d/msgid/sage-devel/8738244d-682e-4a06-a453-276db4a71a7c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq20geBKnCPyQsHCV2doOWdu-nZtFf6UqRqmpiO9p%3D%2BKSQ%40mail.gmail.com.