Hi all,

So I just tried to do a sage -upgrade, and it failed trying to install
mpfi. The log showed that libgmp.la was complaining that it was
relocated; indeed, libgmp.la contained the following lines at the end:

# Directory that this library needs to be installed in:
libdir='/Users/craigcitro/sage-2.10/local/lib'

This is where I'd first run make, but I'd moved the sage install tree,
and this didn't get updated. Also, doing a strings - libgmp.dylib
shows references to that same path as well.

I know that when you move the install tree, the first time you start
Sage, it says "The sage install seems to have been moved, wait a
moment" or something along these lines. [...] So I just discovered how
that works, i.e. I discovered the local/bin/sage-location script. It
looks like it should go through and fix exactly this kind of thing; I
just did a ' grep "/my/old/path" *.la ' in sage/local/lib, and sure
enough, none of these files have been changed. So I edited
sage/local/lib/sage-current-location.txt to point to the old location,
and re-ran sage-location. It fixed *almost* everything -- I still had
the following line left:

libmpfr.la:dependency_libs=' -L/sage/local/lib
/Users/craigcitro/sage-2.10/local/lib/libgmp.la'

So the fix seems obvious: make sage-location smart enough to correct
these dependency_libs lines as well, which it doesn't seem to do at
all. However, there's something suspicious about that: if I do a '
grep "dependency_libs" *.la ' in my local/lib directory, there are
plenty of files that have that line. However, the mpfr one is the only
one that still needs correcting. So here's the question: how did the
other ones get corrected? Or, maybe more to the point, however the
other ones got corrected, why didn't libmpfr.la? The only thing I can
think of is that I'm currently halfway through a sage -upgrade, so
maybe they were corrected because those packages had all been rebuilt?
(I'm dubious about this, because several packages with .la files
didn't change between 2.10 and 2.10.1, so most of those packages
shouldn't have been rebuilt.)

-cc

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@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-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to