#10967: R breaks if SAGE_LOCAL undefined
------------------------+---------------------------------------------------
Reporter: ahd | Owner: tbd
Type: defect | Status: new
Priority: minor | Milestone: sage-4.7
Component: packages | Keywords: R
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Comment(by jhpalmieri):
I don't know anything about R, but this looks more complicated to me.
When I look at R.sh.in, right after the #SAGEHACK# part, I see
{{{
R_HOME="${R_HOME_DIR}"
export R_HOME
R_SHARE_DIR="${R_HOME_DIR}/share"
export R_SHARE_DIR
R_INCLUDE_DIR="${R_HOME_DIR}/include"
export R_INCLUDE_DIR
R_DOC_DIR="${R_HOME_DIR}/doc"
export R_DOC_DIR
}}}
When I install the spkg, every instance of {{{R_HOME_DIR}}} gets replaced
with the hard-coded full path to SAGE_LOCAL/lib/R, rather than being kept
as R_HOME_DIR. Doesn't this defeat the purpose #SAGEHACK#? Won't things
go wrong if you move the whole Sage installation?
Anyway, I see the same error "/lib/R//etc/ldpaths: No such file or
directory" if I run R. If I apply the patch above, it works on one
machine (an Intel Mac running OS X 10.6), but on another (also a mac, same
OS) I get an error
{{{
dyld: Library not loaded: /usr/local/lib/libgfortran.2.dylib
Referenced from: /Applications/sage/local/lib/R/lib/libR.dylib
Reason: image not found
Trace/BPT trap
}}}
Indeed, libgfortran is not in /usr/local/lib, I think it's only in
/Applications/sage/local/lib.
I'll post the patch anyway, in case it helps. New spkg at
[http://sage.math.washington.edu/home/palmieri/SPKG/r-2.10.1.p5.spkg]. If
this works, please mark the ticket as "needs review" and add the URL to
the ticket description, so the release manager can find it.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10967#comment:12>
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.