#14706: Upgrade R to version 3.0.2
-------------------------------------+-------------------------------------
Reporter: charpent | Owner: jdemeyer
Type: enhancement | Status: needs_info
Priority: major | Milestone: sage-5.13
Component: packages: | Resolution:
standard | Merged in:
Keywords: r-project spkg | Reviewers: Leif Leonhardy, Karl-
Authors: Emmanuel | Dieter Crisman, Jeroen Demeyer
Charpentier, Jean-Pierre Flori | Work issues:
Report Upstream: N/A | Commit:
Branch: | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by jpflori):
I guess the real problem on OS X is that as shown above, R does not modify
DYLD_LIBRARY_PATH, but rather DYLD_FALLBACK_LIBRARY_PATH through
etc/ldpaths in R.sh, whereas Sage modifies directly DYLD_LIBRARY_PATH.
See
{{{
## We already added -L's from LDFLAGS (except on Darwin):
## seem to be doing it again
for arg in ${LDFLAGS} ${FLIBS} ${BLAS_LIBS} ${LAPACK_LIBS} ${X_LIBS} \
${TCLTK_LIBS}; do
case "${arg}" in
-L*)
lib=`echo ${arg} | sed "s/^-L//"`
r_want_lib=true
## don't add anything for Darwin
case "${host_os}" in darwin*) r_want_lib=false ;; esac
## Do not add non-existent directories.
test -d "${lib}" || r_want_lib=false
if test x"${r_want_lib}" = xtrue; then
## Canonicalize (/usr/lib/gcc-lib/i486-linux/3.3.4/../../..).
lib=`cd "${lib}" && ${GETWD}`
## Do not add something twice, or default paths.
r_save_IFS="${IFS}"; IFS="${PATH_SEPARATOR}"
for dir in ${R_LD_LIBRARY_PATH}${IFS}${r_ld_library_defaults}; do
if test x"${dir}" = x"${lib}"; then
r_want_lib=false
break
fi
done
IFS="${r_save_IFS}"
if test x"${r_want_lib}" = xtrue; then
R_SH_VAR_ADD(R_LD_LIBRARY_PATH, [${lib}], [${PATH_SEPARATOR}])
fi
fi
;;
esac
done
fi
}}}
at the end of configure.ac.
So when R is not installed, at installation time, when R is run, no
libR.dylib is found in DYLD_LIBRARY_PATH, but it is in the FALLBACK
variant.
But when R is already installed, then libR.dylib is found in
DYLD_LIBRARY_PATH and that's potentially a wrong version...
--
Ticket URL: <http://trac.sagemath.org/ticket/14706#comment:101>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.