Ask Your Question
0

why wont sage build?

asked 2017-06-16 19:28:41 +0100

alienfetuseater gravatar image

updated 2017-06-16 19:30:21 +0100

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

edit retag flag offensive close merge delete

Comments

1

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?

kcrisman gravatar imagekcrisman ( 2017-06-16 19:47:35 +0100 )edit

ok, i'll try that

alienfetuseater gravatar imagealienfetuseater ( 2017-06-16 21:04:10 +0100 )edit

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

alienfetuseater gravatar imagealienfetuseater ( 2017-06-16 21:33:39 +0100 )edit

Converted to an answer, go ahead and accept!

kcrisman gravatar imagekcrisman ( 2017-06-17 04:30:54 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-06-16 20:01:14 +0100

I agree with kcrisman: don't use sudo. He is referring to the error message "configure: error: You cannot build Sage as root, switch to an unpriviledged user". It also looks like a previous attempt was made trying to build using sudo, so the permissions are now wrong for an unprivileged user to build Sage. Try downloading a fresh tarball to your home directory and building there (not as root, not via sudo).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-06-16 19:28:41 +0100

Seen: 1,402 times

Last updated: Jun 16 '17