Ask Your Question
5

how do I install an spkg?

asked 14 years ago

Oscar Lazo gravatar image

I want to install this spkg:

http://www.sagemath.org/packages/expe...

After opening the spkg with tar I don't see any installation instructions.

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
6

answered 14 years ago

William Stein gravatar image

Do this:

sage -i http://www.sagemath.org/packages/experimental/cadabra-0.115.spkg
Preview: (hide)
link

Comments

The **sage -i** command also works if you have downloaded the spkg: sage -i

/<packagename>.spkg

cswiercz gravatar imagecswiercz ( 14 years ago )

Or if you haven't downloaded it yet, just type "sage -i cadabra" and it should look up the version number and download the file.

John Palmieri gravatar imageJohn Palmieri ( 14 years ago )

I tryed, but: make: * No rule to make target 'all-toolchain'. Stop. how to solve?

jmarcellopereira gravatar imagejmarcellopereira ( 9 years ago )

What version of Sage are you using? Did you download a binary version or source?

John Palmieri gravatar imageJohn Palmieri ( 9 years ago )
4

answered 14 years ago

There's also "sage -f" (the "f" stands for "force"), which works just like "sage -i" but will install the spkg even if the same (or a later) version is already installed.

This is very useful when you're working on a spkg and making little changes, or if someone gives you a modified spkg with the same version.

Preview: (hide)
link

Comments

1

And there is `sage -f -m` which installs the spkg and does *not* delete the build directory from `spkg/build`, which can be useful for debugging.

William Stein gravatar imageWilliam Stein ( 14 years ago )

This apparently now `sage -f -s`, according to the deprecation warning I get.

kcrisman gravatar imagekcrisman ( 11 years ago )

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 14 years ago

Seen: 2,694 times

Last updated: Aug 25 '10