[sage-support] Re: Arch Linux and Sage
I installed libfplll from the AUR, and copied it from the system. The libfplll build stopped while building "generate.Tpo", although gc1plus still consumed CPU time. I do not know why this was the case. As for the Singular thing, I have absolutely no idea. I'm on x86_64 Core 2 Duo E4500 2.2Ghz with 4GB RAM right now. Perhaps I'll try reformatting my system sometime to see if it's a problem with the libraries on my system. - Tim Joseph Dumol http://timdumol.com On Sun, Nov 8, 2009 at 1:06 PM, William Stein wrote: > > On Sat, Nov 7, 2009 at 8:58 PM, Tim Joseph Dumol wrote: > > The main issues are: > > > > * Incompatible libreadline.so.6 -- the libreadline in Sage is dynamically > > linked to libtermcap. Arch Linux disables libtermcap, so one needs to > copy > > the system's libreadline to $SAGE_ROOT/local/lib. This is also the case > in > > binary distributions. > > Maybe this could be fixed by not linking to termcap on archlinux. > This would just require changing the spkg-install. > > > * Issue building R -- this is a problem in many platforms with up-to-date > > GCC packages, and is worked around by either copying the system's libgcc, > or > > by building Sage with the environment vars SAGE_FORTRAN and > SAGE_FORTRAN_LIB > > set to the system's gfortran and libgfortran.so. > > We will switch to requiring gfortran by default soon. For now do > > export SAGE_FORTRAN=/usr/bin/gfortran >export SAGE_FORTRAN_LIB="/usr/lib/libgfortran.so" > > before building sage. > > > * Build hangs while building libfplll, which is worked around by copying > the > > system's libfplll, and editing the $SAGE_ROOT/local/installed/ to make > the > > build system think that libfplll is installed. > > I didn't see this at all. > > > * Finally, after the build is done, starting Sage or running the doctests > > fails with a message about a function in the Singular interface not being > > implemented. I do not know any workarounds to this. > > I didn't see this at all either. > > > > > Thus, it would probably be best to use the binary distribution for now. > > > > I've only built a 64-bit binary distribution, since I haven't setup a > 32-bit archlinux box yet.I will, but not now, since it takes a > while (even given the 32-bit install Dan Drake gave me -- there's > still a lot of config work I have to do). > > SUMMARY: I built the 64-bit binary.For me Sage starts fine and > *all* doctests pass (both normal and long), so I don't at all see the > Singular issues you mention. I also definitely didn't have any > trouble with libfplll. Is there really a system libfplll on your > system? That seems unlikely, given that it is such an incredibly > specialized library for a specific part of math. > > Anyway, I want to emphasize that the officially supported Linux > distros for building Sage are: > > Debian, Ubuntu, CentOS (=Redhat), Fedora Core, OpenSuse, Mandriva > > It would be nice to add arch linux to the list, but we're not quite > there yet. I'm confident we will be soon. > > William > > -- William > > > > --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Arch Linux and Sage
On Sat, Nov 7, 2009 at 9:13 PM, Alex Ghitza wrote: > > > I've been building Sage on 32-bit Archlinux for at least one year now. > > With 4.2, I only have two problems: the sqlite issue and the R issue. > Thanks to previous threads on this sort of thing, I work around them > by copying the system libreadline.so and libgcc.so to the appropriate > places in the sage build directory. > > It's a bit annoying because as far as I can tell I have to wait for > sqlite to fail before copying libreadline, and then for R to fail > before copying libgcc. So the whole thing needs a bit too much of my > attention. You should set SAGE_FORTRAN to completely avoid the R issue. > On the other hand, after that I have sage-4.2-goodness with longtests > passing. There are no problems with Singular on my system. Cool -- I'm glad the problem isn't 32-bit only (say). -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Arch Linux and Sage
I've been building Sage on 32-bit Archlinux for at least one year now. With 4.2, I only have two problems: the sqlite issue and the R issue. Thanks to previous threads on this sort of thing, I work around them by copying the system libreadline.so and libgcc.so to the appropriate places in the sage build directory. It's a bit annoying because as far as I can tell I have to wait for sqlite to fail before copying libreadline, and then for R to fail before copying libgcc. So the whole thing needs a bit too much of my attention. On the other hand, after that I have sage-4.2-goodness with longtests passing. There are no problems with Singular on my system. Best, Alex On Sat, Nov 07, 2009 at 09:06:36PM -0800, William Stein wrote: > > > * Build hangs while building libfplll, which is worked around by copying the > > system's libfplll, and editing the $SAGE_ROOT/local/installed/ to make the > > build system think that libfplll is installed. > > I didn't see this at all. > > > * Finally, after the build is done, starting Sage or running the doctests > > fails with a message about a function in the Singular interface not being > > implemented. I do not know any workarounds to this. > > I didn't see this at all either. > [...] -- Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne -- Australia -- http://www.ms.unimelb.edu.au/~aghitza/ --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Arch Linux and Sage
On Sat, Nov 7, 2009 at 8:58 PM, Tim Joseph Dumol wrote: > The main issues are: > > * Incompatible libreadline.so.6 -- the libreadline in Sage is dynamically > linked to libtermcap. Arch Linux disables libtermcap, so one needs to copy > the system's libreadline to $SAGE_ROOT/local/lib. This is also the case in > binary distributions. Maybe this could be fixed by not linking to termcap on archlinux. This would just require changing the spkg-install. > * Issue building R -- this is a problem in many platforms with up-to-date > GCC packages, and is worked around by either copying the system's libgcc, or > by building Sage with the environment vars SAGE_FORTRAN and SAGE_FORTRAN_LIB > set to the system's gfortran and libgfortran.so. We will switch to requiring gfortran by default soon. For now do export SAGE_FORTRAN=/usr/bin/gfortran export SAGE_FORTRAN_LIB="/usr/lib/libgfortran.so" before building sage. > * Build hangs while building libfplll, which is worked around by copying the > system's libfplll, and editing the $SAGE_ROOT/local/installed/ to make the > build system think that libfplll is installed. I didn't see this at all. > * Finally, after the build is done, starting Sage or running the doctests > fails with a message about a function in the Singular interface not being > implemented. I do not know any workarounds to this. I didn't see this at all either. > > Thus, it would probably be best to use the binary distribution for now. > I've only built a 64-bit binary distribution, since I haven't setup a 32-bit archlinux box yet.I will, but not now, since it takes a while (even given the 32-bit install Dan Drake gave me -- there's still a lot of config work I have to do). SUMMARY: I built the 64-bit binary.For me Sage starts fine and *all* doctests pass (both normal and long), so I don't at all see the Singular issues you mention. I also definitely didn't have any trouble with libfplll. Is there really a system libfplll on your system? That seems unlikely, given that it is such an incredibly specialized library for a specific part of math. Anyway, I want to emphasize that the officially supported Linux distros for building Sage are: Debian, Ubuntu, CentOS (=Redhat), Fedora Core, OpenSuse, Mandriva It would be nice to add arch linux to the list, but we're not quite there yet. I'm confident we will be soon. William -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Arch Linux and Sage
The main issues are: * Incompatible libreadline.so.6 -- the libreadline in Sage is dynamically linked to libtermcap. Arch Linux disables libtermcap, so one needs to copy the system's libreadline to $SAGE_ROOT/local/lib. This is also the case in binary distributions. * Issue building R -- this is a problem in many platforms with up-to-date GCC packages, and is worked around by either copying the system's libgcc, or by building Sage with the environment vars SAGE_FORTRAN and SAGE_FORTRAN_LIB set to the system's gfortran and libgfortran.so. * Build hangs while building libfplll, which is worked around by copying the system's libfplll, and editing the $SAGE_ROOT/local/installed/ to make the build system think that libfplll is installed. * Finally, after the build is done, starting Sage or running the doctests fails with a message about a function in the Singular interface not being implemented. I do not know any workarounds to this. Thus, it would probably be best to use the binary distribution for now. - Tim Joseph Dumol http://timdumol.com On Sun, Nov 8, 2009 at 12:39 PM, Josh wrote: > > Is there a reason why it does not compile well? > > On Nov 7, 8:54 pm, Tim Joseph Dumol wrote: > > Hey Josh, > > > > Currently, Sage does not build properly in Arch Linux. You may want to > > install the binary version athttp://sagemath.orgor at the Arch Linux AUR > (http://trac.sagemath.org/sage_trac/ticket/7408). > > > > - Tim Joseph Dumol http://timdumol.com > > > > On Sun, Nov 8, 2009 at 9:21 AM, Josh wrote: > > > > > So when attempting to run make I got this: > > > > > sage: An error occurred while installing sqlite-3.6.17 > > > Please email sage-develhttp://groups.google.com/group/sage-devel > > > explaining the problem and send the relevant part of > > > of /home/josh/Downloads/sage-4.2/install.log. Describe your computer, > > > operating system, etc. > > > If you want to try to fix the problem yourself, *don't* just cd to > > > /home/josh/Downloads/sage-4.2/spkg/build/sqlite-3.6.17 and type > > > 'make'. > > > Instead type "/home/josh/Downloads/sage-4.2/sage -sh" > > > in order to set all environment variables correctly, then cd to > > > /home/josh/Downloads/sage-4.2/spkg/build/sqlite-3.6.17 > > > (When you are done debugging, you can type "exit" to leave the > > > subshell.) > > > make[1]: *** [installed/sqlite-3.6.17] Error 1 > > > make[1]: Leaving directory `/home/josh/Downloads/sage-4.2/spkg' > > > > > real0m0.774s > > > user0m0.723s > > > sys 0m0.043s > > > Error building Sage. > > > > > I installed sqlite, is there still stuff that is wrong? > > > --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Arch Linux and Sage
Is there a reason why it does not compile well? On Nov 7, 8:54 pm, Tim Joseph Dumol wrote: > Hey Josh, > > Currently, Sage does not build properly in Arch Linux. You may want to > install the binary version athttp://sagemath.orgor at the Arch Linux AUR > (http://trac.sagemath.org/sage_trac/ticket/7408). > > - Tim Joseph Dumol http://timdumol.com > > On Sun, Nov 8, 2009 at 9:21 AM, Josh wrote: > > > So when attempting to run make I got this: > > > sage: An error occurred while installing sqlite-3.6.17 > > Please email sage-develhttp://groups.google.com/group/sage-devel > > explaining the problem and send the relevant part of > > of /home/josh/Downloads/sage-4.2/install.log. Describe your computer, > > operating system, etc. > > If you want to try to fix the problem yourself, *don't* just cd to > > /home/josh/Downloads/sage-4.2/spkg/build/sqlite-3.6.17 and type > > 'make'. > > Instead type "/home/josh/Downloads/sage-4.2/sage -sh" > > in order to set all environment variables correctly, then cd to > > /home/josh/Downloads/sage-4.2/spkg/build/sqlite-3.6.17 > > (When you are done debugging, you can type "exit" to leave the > > subshell.) > > make[1]: *** [installed/sqlite-3.6.17] Error 1 > > make[1]: Leaving directory `/home/josh/Downloads/sage-4.2/spkg' > > > real 0m0.774s > > user 0m0.723s > > sys 0m0.043s > > Error building Sage. > > > I installed sqlite, is there still stuff that is wrong? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Arch Linux and Sage
Hey Josh, Currently, Sage does not build properly in Arch Linux. You may want to install the binary version at http://sagemath.org or at the Arch Linux AUR ( http://trac.sagemath.org/sage_trac/ticket/7408 ). - Tim Joseph Dumol http://timdumol.com On Sun, Nov 8, 2009 at 9:21 AM, Josh wrote: > > So when attempting to run make I got this: > > sage: An error occurred while installing sqlite-3.6.17 > Please email sage-devel http://groups.google.com/group/sage-devel > explaining the problem and send the relevant part of > of /home/josh/Downloads/sage-4.2/install.log. Describe your computer, > operating system, etc. > If you want to try to fix the problem yourself, *don't* just cd to > /home/josh/Downloads/sage-4.2/spkg/build/sqlite-3.6.17 and type > 'make'. > Instead type "/home/josh/Downloads/sage-4.2/sage -sh" > in order to set all environment variables correctly, then cd to > /home/josh/Downloads/sage-4.2/spkg/build/sqlite-3.6.17 > (When you are done debugging, you can type "exit" to leave the > subshell.) > make[1]: *** [installed/sqlite-3.6.17] Error 1 > make[1]: Leaving directory `/home/josh/Downloads/sage-4.2/spkg' > > real0m0.774s > user0m0.723s > sys 0m0.043s > Error building Sage. > > I installed sqlite, is there still stuff that is wrong? > > > > --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Arch Linux and Sage
So when attempting to run make I got this: sage: An error occurred while installing sqlite-3.6.17 Please email sage-devel http://groups.google.com/group/sage-devel explaining the problem and send the relevant part of of /home/josh/Downloads/sage-4.2/install.log. Describe your computer, operating system, etc. If you want to try to fix the problem yourself, *don't* just cd to /home/josh/Downloads/sage-4.2/spkg/build/sqlite-3.6.17 and type 'make'. Instead type "/home/josh/Downloads/sage-4.2/sage -sh" in order to set all environment variables correctly, then cd to /home/josh/Downloads/sage-4.2/spkg/build/sqlite-3.6.17 (When you are done debugging, you can type "exit" to leave the subshell.) make[1]: *** [installed/sqlite-3.6.17] Error 1 make[1]: Leaving directory `/home/josh/Downloads/sage-4.2/spkg' real0m0.774s user0m0.723s sys 0m0.043s Error building Sage. I installed sqlite, is there still stuff that is wrong? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: convertor Sage -> TeX -> PDF
Stochastix wrote: > I have a similar but slightly different request. > When I have a plot in sage, say of a function x-> sin(x), I would like > to be able to do something like what is explained in > > http://www.texample.net/tikz/examples/gnuplot-basics/ > > for gnuplot and pgf. This means, extracting the relevant numerical > values and leaving pgf deal with axis, ticks, grid, captions and > additional stuff in order to keep the same fonts as in LaTeX for both > the text and the pictures. > > Any idea ? In addition to what William said, I think we ought to eventually support pgf (either through matplotlib or on our own). This would be very handy in sagetex, for example. Note that we already use pgf to draw graphs (vertex/line things) in latex. There has been interest in a pgf backend to matplotlib (what we use to actually draw 2d graphics most of the time): http://www.mailinglistarchive.com/html/matplotlib-us...@lists.sourceforge.net/2009-08/msg00358.html I played with making a pgf backend to matplotlib once, but ran out of time to experiment with it. Jason -- Jason Grout --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: convertor Sage -> TeX -> PDF
On Sat, Nov 7, 2009 at 4:40 AM, Stochastix wrote: > > I have a similar but slightly different request. > When I have a plot in sage, say of a function x-> sin(x), I would like > to be able to do something like what is explained in > > http://www.texample.net/tikz/examples/gnuplot-basics/ > > for gnuplot and pgf. This means, extracting the relevant numerical > values and leaving pgf deal with axis, ticks, grid, captions and > additional stuff in order to keep the same fonts as in LaTeX for both > the text and the pictures. > > Any idea ? You can easily extract the relevant numerical values for all elements of plots. E.g., sage: L = list(plot(sin)[0]) Another example: sage: a = plot(sin) + plot(cos) sage: a[0] Line defined by 200 points sage: a[1] Line defined by 200 points sage: list(a[1])[:10] [(-1.0, 0.54030230586813977), (-0.98921646193235457, 0.54934475026523821), (-0.97881737105892419, 0.55800432723415849), (-0.96672470607055161, 0.567998237362355), (-0.95509177118254784, 0.57753384135311991), (-0.94833678316216885, 0.58303517065191224), (-0.94399062303568926, 0.58656067742426055), (-0.93148561011253583, 0.59664242831390957), (-0.92443618000428662, 0.60228477505404343), (-0.90878687891761545, 0.61470306127180685)] --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Gap Undeposited Implementations
I posted a new version of the braid package at http://www.opensourcemath.org/braid/ If you extract it in sage*/local/lib/gap*/pkg and then start GAP by sage -gap, then it loads using gap> LoadPackage("braid"); On Wed, Nov 4, 2009 at 10:27 PM, Adam Sorkin wrote: > > I am trying to load a Gap package for braid orbit computations. I > would like to run everything through Sage if possible. This is an > undeposited Implementation, so running "sage -i gap_packages-4.4.10_4 > " doesn't retrieve this package. I'm running this on OSX, 10.5, and > have gap_version() = 4.4.10. I've downloaded and unzipped the package. > I've tried the instructions: > > > in sage, in gap_console() > Read("assemble.g"); > > > and get the message > > "Error, file must exist and be readable called from > ( ) called from read-eval-loop > Entering break read-eval-print loop ..." > > Any suggestions? > > Adam > > > > --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Intro to Sage presentation at conference
OK, I gave a talk at a local conference which had a lot to do with SAGE the other day. I think it went well, even if the topic was a little over the heads of the participants Have a look at my comments about this on my blog. Just surf on over to my website http://calcpage.tripod.com and click the link for my blog near the top of the home page. Enjoy, A. Jorge Garcia http://calcpage.tripod.com Teacher & Professor Applied Mathematics, Physics & Computer Science Baldwin Senior High School & Nassau Community College --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: aspect ratio and graphics array
I was running 4.1.1. After a *while* I am now running 4.2. It s better, but still problematic: If you do the code sent above, they are circles, but not all of the same size!?! It s more obvious if you repeat the construction: graph = Graphics() graph += circle((0,0),20) graph.set_aspect_ratio(1) graph2 = graphics_array([[graph,graph,graph,graph], [graph,graph,graph,graph],[graph,graph,graph,graph], [graph,graph,graph,graph]]) graph2.show() On Nov 7, 3:53 am, Jason Grout wrote: > Paul-Olivier Dehaye wrote: > > Hi > > the following code: > > > graph = Graphics() > > graph += circle((0,0),10) > > graph.set_aspect_ratio(1) > > graph2 = graphics_array([[graph,graph],[graph,graph]]) > > graph2.show() > > > gives 4 ellipsis, while i would have expected to get 4 circles. Is > > this a bug? How do I place pictures side by side (graphics_array) > > while keeping each picture's aspect ratio? > > This works fine in the newest version of Sage: > > http://sagenb.org/home/pub/965/ > > What version do you have? The plotting code was recently reworked, and > some things with aspect ratios changed. > > Thanks, > > Jason > > -- > Jason Grout --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: convertor Sage -> TeX -> PDF
I have a similar but slightly different request. When I have a plot in sage, say of a function x-> sin(x), I would like to be able to do something like what is explained in http://www.texample.net/tikz/examples/gnuplot-basics/ for gnuplot and pgf. This means, extracting the relevant numerical values and leaving pgf deal with axis, ticks, grid, captions and additional stuff in order to keep the same fonts as in LaTeX for both the text and the pictures. Any idea ? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -~--~~~~--~~--~--~---