when trying to upgrade to the new linbox-20070219, I get the following
error:
libtool: link: cannot find the library `/usr/local/sage/current/local/
sage/default/local/sage/sage-2.1.2/local/lib/libgmp.la'
my sage-location is identical to the one William attached to an
earlier message.
Originally, the tree was located at /usr/local/sage/sage-2.1.2. This
directory was renamed to
/usr/local/sage/current
and there is a symbolic link /usr/local/sage/default that points to /
usr/local/sage/current.
The file it is looking for would be located at /usr/local/sage/current/
local/lib/libgmp.la or /usr/local/sage/default/local/lib/libgmp.la
My guess is that, upon relocation, the "/usr" from the original /usr/
local/sage/sage-2.1.2/local/lib/libgmp.la got replaced by the
relocated root "/usr/local/sage/default"
After running sage using /usr/local/sage/current/sage, a "relocation"
was detected and the now "/usr" got replaced by the now current root "/
usr/local/sage/current/" etc. A little experimentation shows I can
make the pathname arbitrarily long in this way.
I think I see what is the culprit: in sage-location, in
update_library_files, there is a
i = z.find('local/')
which hopes to find the local in front of lib, but in this example it
finds the local just after usr. This indeed explains the current
behaviour.
I'm afraid you'll have to look for the *last* occurrence of "local",
not the *first*
(that, or instruct people to not install sage anywhere under /usr/
local/, but that seems a bit harsh)
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
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://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---