|
Installing Sheerpower on Linux Step-by-Step |
linux.deb..deb files. To
check a computer, open a terminal and type this; the answer must be amd64:
dpkg --print-architecture
linux.deb in Downloads.cd ~/Downloads sudo apt install ./linux.debType your password when it is asked for. If a few standard system pieces Sheerpower uses are missing, the same command installs them too. On many desktops, double-clicking
linux.deb
offers to install it as
well.sp4gl. The Sheerpower console starts: a
banner with the version, then the
>>> prompt (the first time, it also lists the
five skill levels -- type skill
and a number from 1 to 5 to choose yours). Try a line, then leave
with exit:
>>> print 6 * 7 42 >>> exitThe next page, Introduction to the REPL, shows what the console can do.
edit opens the program you are writing in
VS Code when it is installed — get its .deb from
code.visualstudio.com
and install it the same way as linux.deb. Without it, the program
opens in the terminal, in nano or vi. The
Introduction to the REPL page has the details./opt/sheerpower/samples. Programs
write their results
next to themselves, so make your own copy first -- sheerpower-samples
copies them to
sheerpower_samples in your home folder -- and run one there:
sheerpower-samples cd ~/sheerpower_samples sp4gl fizzbuzz.spsrc cat fizzbuzz_result.txt
fizzbuzz_result.txt starts 1,
2, Fizz, 4,
Buzz. The readme.md in that
folder says what each sample does.linux.deb and
install it the same way: it replaces the old version,
and your own programs and your copy of the samples are not touched.sudo apt remove sheerpowerYour copy of the samples stays in your home folder.
/opt/sheerpower -- sp4gl,
the ARS table utilities in ars, the SPINS web
server in sphandlers, SPTOOLS,
and the samplessp4gl,
the ARS utilities (fdl2ars, arschk and the
others), spins_webserver and sheerpower-samplesdpkg --print-architecture answers amd64.
/opt/sheerpower/samples
can be read but not changed. Run them from your own copy:
type sheerpower-samples, then cd ~/sheerpower_samples.
|
Hide Description
|
|
|
Enter or modify the code below, and then click on RUN |
|
Looking for the full power of Sheerpower?
Check out the Sheerpower website. Free to download. Free to use. |