Ask Your Question

installing optional packages

asked 2016-04-01 09:39:21 -0500

antoniobehn gravatar image

I am running sage 7.0 installed from ubuntu repository. When trying "sudo sage -i gap-packages" I get an error stating sage cannot be built as root but if I try as normal user I get "permission denied". Should I change owner of the systemwide installation or is there a better way? Thanks Antonio Behn

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-04-01 18:02:14 -0500

This is indeed a limitation of the Ubuntu ppa. See also the similar problem on sage-support.

One way to go is indeed to chage the permissions of /usr/lib/sagemath/

$ sudo chown -R YOUR_NAME:YOUR_NAME /usr/lib/sagemath

and then do the installation with "sage -p THE_PACKAGE" (no sudo). Note that the "-p" (for package) is replacing the "-i" now.

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


Asked: 2016-04-01 09:39:21 -0500

Seen: 81 times

Last updated: Apr 01 '16