#12347: make install broken in Sage 4.8
------------------------+---------------------------------------------------
   Reporter:  zimmerma  |          Owner:  GeorgSWeber
       Type:  defect    |         Status:  new        
   Priority:  major     |      Milestone:  sage-5.0   
  Component:  build     |       Keywords:             
Work_issues:            |       Upstream:  N/A        
   Reviewer:            |         Author:             
     Merged:            |   Dependencies:             
------------------------+---------------------------------------------------

Comment(by ppurka):

 The sage directory is relocatable and so simply moving the directory from
 `/tmp/sage-4.8` to `/usr/local/sage-4.8` will enable you to run sage
 again. After moving the folder you should also run sage just once (
 `/usr/local/sage-4.8/sage` ) so that it resolves all the paths.

 As for make install being broken, it seems to happen because there is no
 `SAGE_ROOT="....."` in the file anymore and so that hard coding doesn't
 get done any more. A simple fix should be this patch to the Makefile in
 your `/tmp/sage-4.8/Makefile`:
 {{{
 #!diff
 --- Makefile.old        2012-01-24 20:37:40.000000000 +0800
 +++ Makefile    2012-01-24 20:42:38.000000000 +0800
 @@ -149,7 +149,7 @@
         mkdir -p $(DESTDIR)/sage
         mkdir -p $(DESTDIR)/bin/
         cp -rpv * $(DESTDIR)/sage/
 -       python local/bin/sage-hardcode_sage_root $(DESTDIR)/sage/sage
 "$(DESTDIR)"/sage
 +       sed -i -e "s@^#SAGE_ROOT=/path/.*$@SAGE_ROOT=$(DESTDIR)/sage@;q"
 "$(DESTDIR)/sage/sage"
         cp $(DESTDIR)/sage/sage $(DESTDIR)/bin/
         cd $(DESTDIR)/bin/; ./sage -c

 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12347#comment:1>
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.

Reply via email to