#10208: Remove "warning: Replacing library search directory..." if caused by
symbolic links
------------------------------+---------------------------------------------
Reporter: jhpalmieri | Owner: GeorgSWeber
Type: defect | Status: positive_review
Priority: minor | Milestone: sage-4.6.1
Component: build | Keywords: LDSHARED symlink linker path
Author: John Palmieri | Upstream: N/A
Reviewer: Leif Leonhardy | Merged:
Work_issues: |
------------------------------+---------------------------------------------
Comment(by jhpalmieri):
Replying to [comment:4 leif]:
> Ok, then (at least your) MacOS X lacks the `readlink` and `realpath`
commands, or you've set `SAGE_ROOT` manually.
I think that SAGE_ROOT is set in the script sage-env, by running "pwd" in
an appropriate directory. Perhaps with the GNU version of this, it
resolves all links. On Darwin, and it seems perhaps also on Solaris, you
need to run "pwd -P" to do this. On sage.math, 'pwd -P' also resolves
links. So we might also consider something like this change to sage-env:
{{{
#!diff
diff -r 4047e578febc sage-env
--- a/sage-env Sat Oct 30 16:05:33 2010 -0700
+++ b/sage-env Wed Nov 03 17:07:46 2010 -0700
@@ -23,20 +23,20 @@
##########################################################################
# GUESS SAGE_ROOT from pwd
-SAVEDIR="`pwd`"
+PWD="pwd -P"
+SAVEDIR="`$PWD`"
if [ -f sage -a -d spkg ]; then
- GUESSED_SAGE_ROOT="`pwd`"
+ GUESSED_SAGE_ROOT="`$PWD`"
else
if [ -f ../../sage -a -d ../../spkg ]; then
cd ../../
- GUESSED_SAGE_ROOT="`pwd`"
+ GUESSED_SAGE_ROOT="`$PWD`"
else
GUESSED_SAGE_ROOT=""
fi
fi
cd "$SAVEDIR"
-
if [ "$SAGE_ROOT" = "" ]; then
if [ "$GUESSED_SAGE_ROOT" = "" ]; then
echo "Error: You must set the SAGE_ROOT environment"
}}}
(On the other hand, I don't understand why on sage.math, running 'pwd'
from the command line in /scratch/palmieri/sage gives me
"/scratch/palmieri/sage", while running it from sage-env gives me
"/mnt/usb1/scratch/palmieri/sage-4.6".)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10208#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en.