why wont sage build?
attempting to install sage (7.6) from source on fresh ubuntu (16.04 lts) install. attempting to build in /usr/local/sage-7.6. when i try make with sudo, it says i dont have privileges to move some file. when i try with sudo, it says i can build as root... not encountered this problemo before. pretty sure i have installed on pre-requisites and repositories...
*********@**********-ThinkPad-W541:~$ cd /usr/local/sage-7.6
*********@**********-ThinkPad-W541:/usr/local/sage-7.6$ make
make build/make/Makefile
make[1]: Entering directory '/usr/local/sage-7.6'
rm -f config.log
rm: cannot remove 'config.log': Permission denied
Makefile:24: recipe for target 'build/make/Makefile' failed
make[1]: *** [build/make/Makefile] Error 1
make[1]: Leaving directory '/usr/local/sage-7.6'
Makefile:16: recipe for target 'all' failed
make: *** [all] Error 2
*********@**********-ThinkPad-W541:/usr/local/sage-7.6$ sudo make
[sudo] password for mkaepernik:
make build/make/Makefile
make[1]: Entering directory '/usr/local/sage-7.6'
rm -f config.log
mkdir -p logs/pkgs
ln -s logs/pkgs/config.log config.log
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for root user... yes
configure: error: You cannot build Sage as root, switch to an unpriviledged user
If you would like to try to build Sage anyway (to help porting),
export the variable 'SAGE_PORT' to something non-empty.
Makefile:24: recipe for target 'build/make/Makefile' failed
make[1]: *** [build/make/Makefile] Error 1
make[1]: Leaving directory '/usr/local/sage-7.6'
Makefile:16: recipe for target 'all' failed
make: *** [all] Error 2
also, i know everything is compatible, because i just had to re-install ubuntu on my machine, so i had sage, on this same machine and same os, working fine. i might have downloaded a binary originally though
You definitely don't want to build as root. Since you're starting from scratch anyway, why not do
make clean
and then try again?ok, i'll try that
ok, so i dont really know why that worked but it did, so if one of you would like to answer that so i can accept it... someone else may run into a similar problem
Converted to an answer, go ahead and accept!