Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS architecture check for Sage bash script #10345

Open
eviatarbach opened this issue Nov 27, 2010 · 0 comments
Open

OS architecture check for Sage bash script #10345

eviatarbach opened this issue Nov 27, 2010 · 0 comments

Comments

@eviatarbach
Copy link

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

Component: distribution

Author: Eviatar Bach

Issue created by migration from https://trac.sagemath.org/ticket/10345

@eviatarbach eviatarbach added this to the sage-5.11 milestone Nov 27, 2010
@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@mkoeppe mkoeppe removed this from the sage-6.4 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants