john.hoebing wrote: > The solution is to replace ./spkg/standard/readline-6.1* with > readline-6.2.p2.spkg and then go to the sage home directory and run > 'make distclean' and then run 'make'. The 'libreadline*' files that > are already built (and used by other packages) have to be replaced > with the new 6.2 spkg, so you have to restart the build from scratch. > > Well, maybe not from scratch, but I haven't yet found the minimum > restart point that gives a clean sage with readline; however, it > always works if you restart after a distclean. The new > readline-6.2.p2.spkg does work well, so far, on all of my amd64/11.10 > systems, so we can hope it becomes the default sage readline soon.
Good catch. I didn't think of that the old readline was already built (and hence probably also some spkgs that use it); just R failed to install. To rebuild all the spkgs that depend on readline (and only those, which unfortunately are a lot though, due to transitive dependencies, also including for example ATLAS which depends on Python for no good reason), you have to use the second variant I mentioned: $ cp -p /path/to/downloaded/readline-6.2.p2.spkg $SAGE_ROOT/spkg/standard/ $ env SAGE_UPGRADING=yes make build (You could delete the old readline-6.1.spkg, but Sage should automatically pick up the newer one anyway.) Note that although both libraries have the same major version number (6), and therefore all packages and other libraries will automatically use the new one after it has been built and installed, some packages might have tested the "capabilities" or usability of the old one, then disabling some features, so in fact needing a rebuild. To go triple-safe, you could in general also afterwards run $ ./sage -ba-force which rebuilds the whole Sage library, but that shouldn't be necessary. If you've already installed readline-6.2.p2, you can either delete or -- better -- just 'touch' spkg/installed/readline-6.2.p2 to make Sage (or more precisely 'make') think it isn't yet / has just been, before running 'env SAGE_UPGRADING=yes make ...'. Before doing the above, you could also install the devel version(s) of Ubuntu's libncurses and/or libncursesw (if they aren't already): $ sudo apt-get install libncurses5-dev libncursesw5-dev (On Ubuntu 11.10, these only work with the readline-6.2.p2 spkg, i.e., otherwise at least the build of R fails.) But if you do so (and they haven't been installed before), you should probably also rebuild the readline-6.2.p2 spkg, i.e., delete rather than 'touch' spkg/installed/readline-6.2.p2 as mentioned. -leif -- () The ASCII Ribbon Campaign /\ Help Cure HTML Email -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org