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

Run sage once as part of install process to generate sage-flags.txt #6375

Closed
craigcitro opened this issue Jun 20, 2009 · 2 comments
Closed

Comments

@craigcitro
Copy link
Member

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.

Component: build

Reviewer: Jeroen Demeyer

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

@craigcitro craigcitro added this to the sage-5.0 milestone Jun 20, 2009
@jdemeyer
Copy link

jdemeyer commented Apr 2, 2012

comment:1

Duplicate of #11926.

@jdemeyer
Copy link

jdemeyer commented Apr 2, 2012

Reviewer: Jeroen Demeyer

@jdemeyer jdemeyer removed this from the sage-5.0 milestone Apr 2, 2012
@jdemeyer jdemeyer closed this as completed Apr 2, 2012
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

2 participants