Ask Your Question

installing optional packages

asked 2016-04-01 16:39:21 +0200

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-02 01:02:14 +0200

vdelecroix gravatar image

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 16:39:21 +0200

Seen: 234 times

Last updated: Apr 02 '16