#6375: Run sage once as part of install process to generate sage-flags.txt
------------------------+---------------------------------------------------
 Reporter:  craigcitro  |       Owner:  tbd     
     Type:  defect      |      Status:  new     
 Priority:  major       |   Milestone:  sage-4.1
Component:  build       |    Keywords:          
 Reviewer:              |      Author:          
   Merged:              |  
------------------------+---------------------------------------------------
 When sage runs for the first time, it creates a file `sage-flags.txt` to
 keep track of what special instructions the CPU supports. Several people
 have run into trouble compiling and installing sage as root, and then
 running it as a normal user, because they don't have permission to create
 the file. Here's such a traceback:

 {{{
 Traceback (most recent call last):
   File "/usr/local/sage-4.0.2/local/bin/sage-location", line 174, in
 <module>
     t, R = install_moved()
   File "/usr/local/sage-4.0.2/local/bin/sage-location", line 18, in
 install_moved
     write_flags_file()
   File "/usr/local/sage-4.0.2/local/bin/sage-location", line 82, in
 write_flags_file
     open(flags_file,'w').write(get_flags_info())
 IOError: [Errno 13] Permission denied: '/usr/local/sage-4.0.2/local/lib
 /sage-flags.txt'
 }}}

 It would seem sensible to run `local/bin/sage-starts` once during the
 install process to create this file.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6375>
Sage <http://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