please run

  make ncurses-clean
  make readline-clean
  ./configure

in the output of the latter you should see that the readline sage package
is not going to be installed.
The run

  make build





On Sat, 26 Oct 2019, 17:03 Jim Hefferon, <jim.heffe...@gmail.com> wrote:

> Thank you for the reply.  It did not appear to work.  I already had
> libreadline-dev but not libncurses5-dev.  In any event I have them now.
>
> ftpmaint@millstone:~$ apt -qq list libreadline-dev
> libreadline-dev/bionic,now 7.0-3 amd64 [installed]
> ftpmaint@millstone:~$ apt -qq list libncurses5-dev
> libncurses5-dev/bionic-updates,now 6.1-1ubuntu1.18.04 amd64 [installed]
>
> Then I changed to the relevant directory and ran the command you
> suggested. (I did not download and install fresh, but worked with what was
> there since that is what I thought you had in mind)
>
> cd /usr/local/src/sage-8.9
> ./sage -f python2
>
> It failed to finish Python, again complaining about readline. (I didnt run
> 'make build'.)
>
> [python2-2.7.15.p1]
> [python2-2.7.15.p1] Python build finished, but the necessary bits to build
> these modules were not found:
> [python2-2.7.15.p1] _bsddb             _tkinter           bsddb185
> [python2-2.7.15.p1] dbm                dl                 gdbm
> [python2-2.7.15.p1] imageop            sunaudiodev
> [python2-2.7.15.p1] To find the necessary bits, look in setup.py in
> detect_modules() for the module's name.
> [python2-2.7.15.p1]
> [python2-2.7.15.p1]
> [python2-2.7.15.p1] Failed to build these modules:
> [python2-2.7.15.p1] readline
> [python2-2.7.15.p1]
> [python2-2.7.15.p1] running build_scripts
> [python2-2.7.15.p1] creating build/scripts-2.7
> [python2-2.7.15.p1] copying and adjusting
> /usr/local/src/sage-8.9/local/var/tmp/sage/build/python2-2.7.15.p1/src/Tools/scripts/pydoc
> -> build/scripts-2.7
> [python2-2.7.15.p1] copying and adjusting
> /usr/local/src/sage-8.9/local/var/tmp/sage/build/python2-2.7.15.p1/src/Tools/scripts/idle
> -> build/scripts-2.7
> [python2-2.7.15.p1] copying and adjusting
> /usr/local/src/sage-8.9/local/var/tmp/sage/build/python2-2.7.15.p1/src/Tools/scripts/2to3
> -> build/scripts-2.7
> [python2-2.7.15.p1] copying and adjusting
> /usr/local/src/sage-8.9/local/var/tmp/sage/build/python2-2.7.15.p1/src/Lib/smtpd.py
> -> build/scripts-2.7
> [python2-2.7.15.p1] changing mode of build/scripts-2.7/pydoc from 664 to
> 775
> [python2-2.7.15.p1] changing mode of build/scripts-2.7/idle from 664 to 775
> [python2-2.7.15.p1] changing mode of build/scripts-2.7/2to3 from 664 to 775
> [python2-2.7.15.p1] changing mode of build/scripts-2.7/smtpd.py from 664
> to 775
> [python2-2.7.15.p1] /usr/bin/install -c -m 644 ./Tools/gdb/libpython.py
> python-gdb.py
> [python2-2.7.15.p1] make[2]: Leaving directory
> '/usr/local/src/sage-8.9/local/var/tmp/sage/build/python2-2.7.15.p1/src'
> [python2-2.7.15.p1] Testing importing of various modules...
> [python2-2.7.15.p1] ctypes module imported OK
> [python2-2.7.15.p1] math module imported OK
> [python2-2.7.15.p1] hashlib module imported OK
> [python2-2.7.15.p1] crypt module imported OK
> [python2-2.7.15.p1] Traceback (most recent call last):
> [python2-2.7.15.p1]   File "<string>", line 1, in <module>
> [python2-2.7.15.p1] ImportError: No module named readline
> [python2-2.7.15.p1] readline module failed to import
> [python2-2.7.15.p1] socket module imported OK
> [python2-2.7.15.p1] Error: One or more modules failed to import.
> [python2-2.7.15.p1]
> [python2-2.7.15.p1] real 1m36.320s
> [python2-2.7.15.p1] user 1m27.370s
> [python2-2.7.15.p1] sys 0m9.268s
> [python2-2.7.15.p1]
> ************************************************************************
> [python2-2.7.15.p1] Error building package python2-2.7.15.p1
> [python2-2.7.15.p1]
> ************************************************************************
> [python2-2.7.15.p1] Please email sage-devel (
> http://groups.google.com/group/sage-devel)
> [python2-2.7.15.p1] explaining the problem and including the log file
> [python2-2.7.15.p1]
> /usr/local/src/sage-8.9/logs/pkgs/python2-2.7.15.p1.log
> [python2-2.7.15.p1] Describe your computer, operating system, etc.
> [python2-2.7.15.p1] If you want to try to fix the problem yourself,
> *don't* just cd to
> [python2-2.7.15.p1]
> /usr/local/src/sage-8.9/local/var/tmp/sage/build/python2-2.7.15.p1 and type
> 'make' or whatever is appropriate.
> [python2-2.7.15.p1] Instead, the following commands setup all environment
> variables
> [python2-2.7.15.p1] correctly and load a subshell for you to debug the
> error:
> [python2-2.7.15.p1]   (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)
> [python2-2.7.15.p1] When you are done debugging, you can type "exit" to
> leave the subshell.
> [python2-2.7.15.p1]
> ************************************************************************
> Makefile:2169: recipe for target
> '/usr/local/src/sage-8.9/local/var/lib/sage/installed/python2-2.7.15.p1'
> failed
> make[1]: ***
> [/usr/local/src/sage-8.9/local/var/lib/sage/installed/python2-2.7.15.p1]
> Error 1
> make[1]: Leaving directory '/usr/local/src/sage-8.9/build/make'
>
>
> real 1m37.972s
> user 1m28.907s
> sys 0m9.717s
> ***************************************************************
> Error building Sage.
>
>
> The following package(s) may have failed to build (not necessarily
> during this run of 'make python2'):
>
>
> * package: python2-2.7.15.p1
>   log file: /usr/local/src/sage-8.9/logs/pkgs/python2-2.7.15.p1.log
>   build directory:
> /usr/local/src/sage-8.9/local/var/tmp/sage/build/python2-2.7.15.p1
>
>
> The build directory may contain configuration files and other potentially
> helpful information. WARNING: if you now run 'make' again, the build
> directory will, by default, be deleted. Set the environment variable
> SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
>
>
> Makefile:31: recipe for target 'python2' failed
> make: *** [python2] Error 1
>
> (Perhaps I should mention that I am not building out of idle curiousity.
> I'm revising a lab manual on doing Linear Algebra computations in Sage and
> SageTeX is complaining to me about different dates.)
>
> Thank you again,
> Jim
>
> On Saturday, October 26, 2019 at 8:54:22 AM UTC-4, Dima Pasechnik wrote:
>>
>> 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.h...@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-...@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/f664598b-13c2-414c-85f3-331c339484d9%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-devel/f664598b-13c2-414c-85f3-331c339484d9%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/CAAWYfq3mOMeroFBX3oH_pZxLqSEHSJiWsRrs_uRhxw4aAjTSRw%40mail.gmail.com.

Reply via email to