On Sep 17, 11:10 am, Simon King <[EMAIL PROTECTED]> wrote:
> Dear Michael, dear SAGE team,
>
> On Sep 15, 12:37 am, mabshoff <[EMAIL PROTECTED]> wrote:
> > I looked at the log. Readline builds fine, but there is trouble when
> > building python:
>
> <snip>
>
> That might be a point. In fact, when i start python from the command
> line, i get "ImportError: No module named readline".
>
> I tried both to install python via "yast -i python" and from the
> sources, but the error message was the same.
>
> Python's config.log file contains the line
> ac_cv_lib_readline_readline=no
>
> However, there is libhistory.so.5.2, libreadline.a, libreadline.so.5.2
> etc in my /usr/local/lib/ !
> So how can i make python find it? But perhaps this is a question to
> the python-team...
>
> > So, the interesting question is now: What to do? Python's configure
> > has no switch to enable or disable [n]curses, so please reinstall that
> > rpm and try again.
>
> <snip>
>
> What do you mean by "that rpm"? ncurses?
>
> I just did
> yast -i ncurses-devel
> but this didn't change a thing, at least not for Python.
>
> Python's config.log file also says
> ac_cv_kpthread=no
> ac_cv_kthread=no
> ac_cv_lib_c_inet_aton=yes
> ac_cv_lib_dl_dlopen=yes
> ac_cv_lib_dld_shl_load=no
> ac_cv_lib_intl_textdomain=no
> ac_cv_lib_nsl_t_open=no
> ac_cv_lib_readline_readline=no
> ac_cv_lib_readline_rl_callback_handler_install=no
> ac_cv_lib_readline_rl_completion_matches=no
> ac_cv_lib_readline_rl_pre_input_hook=no
> ac_cv_lib_socket_socket=no
>
> Perhaps this gives another hint. Are there other packages that i might
> want to install?
> HOW to install them? (I'm far from being experienced Linux user!)
>
I just build a ncurses spkg. You can find it at
http://fsmath.mathematik.uni-dortmund.de/~mabshoff/sage/ncurses-5.6.spkg
Download it, install it via "spkg -i $PATHTOSPKG/$SPKG", then rebuild
python via "spkg -f spkg/standard/python--...."
After building libncurses you should have:
[EMAIL PROTECTED] sage-2.8.4.1]$ ls -al local/lib/libncurses*
-rw-r--r-- 1 mabshoff mabshoff 698474 Sep 17 11:45 local/lib/
libncurses.a
-rwxr-xr-x 1 mabshoff mabshoff 162458 Sep 17 11:45 local/lib/
libncurses++.a
-rw-r--r-- 1 mabshoff mabshoff 3028668 Sep 17 11:45 local/lib/
libncurses_g.a
> Yours sincerely
> Simon
Let me know what happens. We might have to specifiy the location of
libncurses in the Python makefiles if it still picks the one in /usr/
lib.
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---