installation

Feb 22, 2016 78 Replies

Hope someone can straighten out my thinking. On my RP2 I have got Sonic-pi installed by default and this is run by clicking on Menu/programming/Sonic Pi. This is version 2.6. I want to upgrade to version 2.9 which is available on the Sonic Pi web site. So click on the download button and a tgz file goes into my downloads directory. Where do I go from here?



Malcolm Smith


T M Smith Using an ARMX6 and RISC OS 5.21 in the North Riding of Yorkshire

Delete it, open a Terminal window, type:

sudo apt-get update && sudo apt-get -y dist-upgrade && sudo reboot

and press Enter. Wait until it's finished. Then you'll have the newest version.

Follow the instructions on the Sonic Pi website that tell you what to do. They're by the button used to download the tarball.

Thanks to you both. Will do that now Malcolm

T M Smith Using an ARMX6 and RISC OS 5.21 in the North Riding of Yorkshire

In this there is no mention of sonic-pi. How does it know what to upgrade?

Malcolm

T M Smith Using an ARMX6 and RISC OS 5.21 in the North Riding of Yorkshire

Done this but the splash screen for sonic-pi still says version 2.6!!!

Malcolm

T M Smith Using an ARMX6 and RISC OS 5.21 in the North Riding of Yorkshire

That command tells your Pi to upgrade *everything* to the latest version. It may take a while, but you won't have to do any thinking.

Den 2016-02-22 kl. 23:47, skrev T M Smith:

All installed programs are upgraded because there are lists in Raspbian with all installed programs. I think you should remove " && sudo reboot" from the above command line and reboot manually. I have upgraded using dist-upgrade and I have Sonic Pi 2.9 in Raspbian, but only 2.7 in Ubuntu MATE.

Gerenally, make a directory, put the tgz file in that directory and then 'untgz' it with: tar xavf *tgz Then you'll probably have a 'readme' file of some sort. The procedure often goes: ./configure make make install

The latest version may not be ready for the Pi architecture, though. You may have to stay with the existing version.

The sequence: apt-get update apt-get upgrade apt-get dist-upgrade

will update all software with the latest versions in the repository.

Either you didn't follow the instructions or the update failed for some reason or another, or maybe your RPi is still on Wheezy (the previous Raspbian) and the sonic-pi version for that might not be up-to-date like it is for Jessie (the current Raspbian). That last one seems a stretch, though.

The above command will not upgrade the Pi from Wheezy to Jessie, if that was what was intended.

Anyway, when you post that method it would also be wise to include a step "apt-get clean" at the end (prefixed with sudo for those that believe that is a good thing). It will remove a lot of unused files and make space on the SD card.

No, that was not my intention. Now that I think about it, though, it might not be so far-fetched to think that Wheezy repos don't get updated anymore [..google..] Ah yes :(

formatting link

'clean' removes apt-cache info, too, I think? I don't know, I stopped using it. autoremove is a good idea though (but usually won't make much of a difference).

This is not normally a good idea with Linux it is best to stick with the version included in your distro's repository wherever possible.

when installed from the repo upgrades will get automatically applied along with any dependencies

compiling from source should be considered as a last resort when a suitable package is not available

Cursor, n.: One whose program will not run. -- Robb Russon

Then you will have to install from source as you started to do.

And hope the latest source doesn't depend on a library that isn't in, or is later than, the one your Raspbian distro supplies.

Those who want slavery should have the grace to name it by its proper name. They must face the full meaning of that which they are advocating or condoning; the full, exact, specific meaning of collectivism, of its logical implications, of the principles upon which it is based, and of the ultimate consequences to which these principles will lead. They must face it, then decide whether this is what they want or not. Ayn Rand.

"clean" removes all those downloaded packages that were installed but are still cached. They serve no purpose, and can be downloaded again. However, on a 4GB or less card they take up an appreciable fraction of the space after a large update, which increases the SD card wear.

"Freedom in capitalist society always remains about the same as it was in ancient Greek republics: Freedom for slave owners."

Lenin.

Yes. I agreed. *And* I pondered that 'clean' also removes apt-cache info.

"compiling from source should be considered as a last resort when a suitable package is not available"

Actually that's one of the few ways to insure/verify that the run-time version really matches the source. I un-fondly remember an OEM that failed to update source and documentation concerning a reset command. The system was applying about 15v DC to test devices on reset when it, by documentation and "officially released" source code, should have applied only 5vdc. It ended up costing the customer thousands in lost time.

I'd just like to say Horse S*it in reply.

Well I am glad you got that off your chest!

I have to say that I cannot agree. My main reason for ditching debian (stable) on the desktop was that whenever the distro supplied application did not work, but the bug was fixed upstream, and I tried to compile a newer version I ended up in 'dependency hell' needing to also install and compile libraries which then often as not were incompatible with the existing applications.

Moving to Mint, at least gave me access via the distro to applications not much more than a year out of date.

And being ubuntu based, as often as not adding a new PPA would get me a supported version of the new code compiled for the libraries I had already. And installable by the normal apt-get methods.

If you routinely compile everything from source and are happy with a relatively unstable installation, by all means carry on. Most are not.

"I am inclined to tell the truth and dislike people who lie consistently. This makes me unfit for the company of people of a Left persuasion, and all women"

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required