#10345: OS architecture check for Sage bash script
----------------------------+-----------------------------------------------
   Reporter:  eviatarbach   |       Owner:  tbd       
       Type:  defect        |      Status:  new       
   Priority:  minor         |   Milestone:  sage-4.6.1
  Component:  distribution  |    Keywords:            
     Author:  Eviatar Bach  |    Upstream:  N/A       
   Reviewer:                |      Merged:            
Work_issues:                |  
----------------------------+-----------------------------------------------
 Currently the Sage bash script on the Linux version (I can't speak for any
 others) does not check OS architecture upon execution. Although not
 necessary for running versions lower than the OS architecture, if it is
 higher it will not run. The bash script should verify the architecture and
 return an error if incorrect. It is relatively easy to fix, by appending
 the following lines to the bash script:


 {{{
 SAGE_VERSION="x86_64" #Replace with specific Sage architecture for that
 distribution
 OS="`uname -m`" #Checks OS architecture
 if [ "$OS" = "i386 (Or whatever OS equals on 32-bit machines)" ]; then
     echo "**************************************************************"
     echo " Error: Wrong OS architecture. Please download the 32-bit     "
     echo " version.                                                     "
     echo "**************************************************************"
     exit 1
 fi
 }}}

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