[sage-support] Re: Problems with building SAGE
On Sep 12, 8:18 pm, Simon King <[EMAIL PROTECTED]> wrote: > Dear SAGE team, > > I had problems with installing SAGE from the sources. I tried to send you > the message below, including the install.log. > However, install.log comprises 8 MB, and your mail system refused to take > more than 1 MB. > > So, here it is without the install.log. Perhaps you can request specific > parts of the install.log, if necessary. > > : > /usr/local/sage-2.8.4.1/local/lib/libreadline.so.5: undefined symbol: PC Hello Simon, this indicates a problem with readline, but are there more symbols missing? Can you please try the following: - do you have libncurses-devel installed? On some systems readline requires ncurses and its development packages - if you don't have that package installed please install it and recompile from scratch in a different directory, just to be sure - if that doesn't help please post the complete logfile somewhere on the net (after compressing it) and post a link here so I (or others) can take a closer look. The dependencies of readline have been discussed in #sage-devel before, but there hasn't been any resolution yet. It seems to be distribution dependent if they are needed or not. 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/ -~--~~~~--~~--~--~---
[sage-support] Re: Problems with building SAGE
On 9/12/07, mabshoff <[EMAIL PROTECTED]> wrote: > On Sep 12, 8:18 pm, Simon King <[EMAIL PROTECTED]> wrote: > > Dear SAGE team, > > > > I had problems with installing SAGE from the sources. I tried to send you > > the message below, including the install.log. > > However, install.log comprises 8 MB, and your mail system refused to take > > more than 1 MB. > > > > So, here it is without the install.log. Perhaps you can request specific > > parts of the install.log, if necessary. > > > > > : > > /usr/local/sage-2.8.4.1/local/lib/libreadline.so.5: undefined symbol: PC > > Hello Simon, > > this indicates a problem with readline, but are there more symbols > missing? Can you please try the following: > > - do you have libncurses-devel installed? On some systems readline > requires ncurses and its development packages > - if you don't have that package installed please install it and > recompile from scratch in a different directory, just to be sure > - if that doesn't help please post the complete logfile somewhere on > the net (after compressing it) and post a link here so I (or others) > can take a closer look. > > The dependencies of readline have been discussed in #sage-devel > before, but there hasn't been any resolution yet. It seems to be > distribution dependent if they are needed or not. > Actually I don't know any Linux distributions that require the libncurses-devel package in order to compile Sage. That package is needed for some optional packages, e.g., Macaulay2 and Lie. Simon -- very important: 1. Precisely what Linux distribution (with version) are you using? 2. What is your computer (processor, RAM, etc.) William --~--~-~--~~~---~--~~ 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/ -~--~~~~--~~--~--~---
[sage-support] Re: Problems with building SAGE
Dear SAGE-Team, On Sep 12, 8:56 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > Simon -- very important: >1. Precisely what Linux distribution (with version) are you using? >2. What is your computer (processor, RAM, etc.) uname -a says: Linux mpc739 2.6.18.8-0.3-default #1 SMP Tue Apr 17 08:42:35 UTC 2007 x86_64 x86_64 x86_64 GNU/Linux The linux is openSUSE 10.2 (X86-64) Processor: AMD Athlon(tm) 64 Processor 3700+ RAM: 1028080 kB (MemTotal) or 2104472 including swaps Yours, Simon --~--~-~--~~~---~--~~ 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/ -~--~~~~--~~--~--~---
[sage-support] Re: Problems with building SAGE
On 9/14/07, Simon King <[EMAIL PROTECTED]> wrote: > > Dear SAGE-Team, > > On Sep 12, 8:56 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > > Simon -- very important: > >1. Precisely what Linux distribution (with version) are you using? > >2. What is your computer (processor, RAM, etc.) > > uname -a says: > Linux mpc739 2.6.18.8-0.3-default #1 SMP Tue Apr 17 08:42:35 UTC 2007 > x86_64 x86_64 x86_64 GNU/Linux > > The linux is > openSUSE 10.2 (X86-64) > > Processor: AMD Athlon(tm) 64 Processor 3700+ That all looks pretty standard. Without further information (the install.log file, which you haven't made available), I can only suggest that you at least try this binary: http://www.sagemath.org/SAGEbin/linux/64bit/sage-2.8.4.1-x86_64-debian_maximal-x86_64-Linux.tar.gz It's for Debian, so it might not work because of library dependencies, but it is worth a try. William --~--~-~--~~~---~--~~ 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/ -~--~~~~--~~--~--~---
[sage-support] Re: Problems with building SAGE
On Sep 15, 12:19 am, Simon King <[EMAIL PROTECTED]> wrote: > Dear Professor Stein, Well, he is known as William around here :) > > The binaries work fine, that was not the problem. Simply i wanted to learn > to build SAGE by myself, and when i found that "make" finished but did not > yield a working binary, i wanted to know why. > > I'm sorry that i didn't try to gzip the install.log in my first mail. It > is now less than 1 MB, hence should be accepted by your mail system -- see > attachment. > Got the attachment, looking at it. Could you check if you have termcap and its development package installed? readline usually defaults to termcap and only uses ncurses as an optional library to link against, but who knows what the OpenSuSE people did. I have a 10.1 OpenSuSE x86-64 box, but I have to check out there what happens. > Yours > Simon > > install.log.gz > 965KDownload 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/ -~--~~~~--~~--~--~---
[sage-support] Re: Problems with building SAGE
On Sep 15, 12:20 am, mabshoff <[EMAIL PROTECTED] dortmund.de> wrote: > On Sep 15, 12:19 am, Simon King <[EMAIL PROTECTED]> wrote: > > > Dear Professor Stein, > > Well, he is known as William around here :) > > > > > > > The binaries work fine, that was not the problem. Simply i wanted to learn > > to build SAGE by myself, and when i found that "make" finished but did not > > yield a working binary, i wanted to know why. > > > I'm sorry that i didn't try to gzip the install.log in my first mail. It > > is now less than 1 MB, hence should be accepted by your mail system -- see > > attachment. > > Got the attachment, looking at it. Could you check if you have termcap > and its development package installed? readline usually defaults to > termcap and only uses ncurses as an optional library to link against, > but who knows what the OpenSuSE people did. I have a 10.1 OpenSuSE > x86-64 box, but I have to check out there what happens. > > > Yours > > Simon > > > install.log.gz > > 965KDownload > > Cheers, > > Michael Hello Simon, I looked at the log. Readline builds fine, but there is trouble when building python: gcc -pthread -shared build/temp.linux-x86_64-2.5/usr/local/ sage-2.8.4.1/spkg/build/python-2.5.1.p6/src/Modules/readline.o -L /usr/ lib/termcap -L/usr/local/sage-2.8.4.1/local/lib -L/usr/local/lib - lreadline -lncurses -o build/lib.linux-x86_64-2.5/readline.so /usr/ lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ ld: /usr/lib/libncurses.a(lib_termcap.o): relocation R_X86_64_32S against `numcodes' can not be used when making a shared object; recompile with -fPIC /usr/lib/libncurses.a: could not read symbols: Bad value collect2: ld returned 1 exit status 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. Otherwise we need to set up a VMWare image with OpenSuSE 10.2 and see if the problem only happens to you. To compare here is my line from the log: gcc -pthread -shared build/temp.linux-x86_64-2.5/tmp/Work-mabshoff/ sage-2.8.4.2/spkg/build/python-2.5.1.p7/src/Modules/readl ine.o -L/usr/lib/termcap -L/tmp/Work-mabshoff/sage-2.8.4.2/local/lib - L/usr/local/lib -lreadline -lncurses -o build/lib.linu x-x86_64-2.5/readline.so building 'crypt' extension 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/ -~--~~~~--~~--~--~---
[sage-support] Re: Problems with building SAGE
Dear Michael, dear SAGE team, On Sep 15, 12:37 am, mabshoff <[EMAIL PROTECTED] dortmund.de> wrote: > I looked at the log. Readline builds fine, but there is trouble when > building python: 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. 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!) Yours sincerely Simon --~--~-~--~~~---~--~~ 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/ -~--~~~~--~~--~--~---
[sage-support] Re: Problems with building SAGE
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: > > > > 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. > > > > 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/ -~--~~~~--~~--~--~---
[sage-support] Re: Problems with building SAGE
On 9/17/07, mabshoff <[EMAIL PROTECTED]> wrote: > > 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... Those are all in your /usr/local/lib/ ?? I.e., you built and installed them or some other nonstandard software installed them there? If so, that may be your problem. If I were you, I would test temporarily moving /usr/local out of the way (e.g.,to /usr/local.0) and build SAGE from scratch (or at least forcing Python to rebuild) to see what happens. William --~--~-~--~~~---~--~~ 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/ -~--~~~~--~~--~--~---
[sage-support] Re: Problems with building SAGE
Dear William, On Sep 17, 3:41 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > > > 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? > > Those are all in your /usr/local/lib/ ?? I.e., you built > and installed them or some other nonstandard software > installed them there? If so, that may be your problem. > If I were you, I would test temporarily moving /usr/local out > of the way (e.g.,to /usr/local.0) and build SAGE from scratch > (or at least forcing Python to rebuild) to see what happens. I removed those things from /usr/local/lib/, installed/updated all required packages using yast, unpacked the sage-2.8.4.2 sources, said "make" --- and it works! Thank you very much Simon --~--~-~--~~~---~--~~ 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/ -~--~~~~--~~--~--~---