-
-
Notifications
You must be signed in to change notification settings - Fork 679
Closed
Description
In a multi-user environment, the user compiling Sage must run it at least once to run sage-location and generate .pyc files.
The proposed fix is: in the default make rule, run Sage when local/bin/sage-started.txt does not exist and create that file in sage-location. Also run Sage after upgrading.
This patch also changes the error message when a spkg fails a build or test. Example error message:
Error: Configuring PARI with readline and GMP kernel failed.
real 0m0.100s
user 0m0.012s
sys 0m0.012s
************************************************************************
Error installing package pari-2.4.3.alpha.p7
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
/usr/local/src/sage-4.7.2.rc0/spkg/logs/pari-2.4.3.alpha.p7.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/usr/local/src/sage-4.7.2.rc0/spkg/build/pari-2.4.3.alpha.p7 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '/usr/local/src/sage-4.7.2.rc0/spkg/build/pari-2.4.3.alpha.p7' && '/usr/local/src/sage-4.7.2.rc0/sage' -sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************
Error: Failed to install package 'pari'.
Apply:
- attachment: 11926.patch to SAGE_ROOT
- attachment: 11926_sage_starts.patch, attachment: trac_11926-error-msg.patch, attachment: 11926-error-msg-review.patch to SCRIPTS (
local/bin) - attachment: 11926_sage.patch and attachment: 11926_doc.patch to the Sage library.
CC: @pcpa
Component: build
Keywords: Makefile build sage-starts
Author: Jeroen Demeyer
Reviewer: John Palmieri, Leif Leonhardy
Merged: sage-4.8.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/11926