I've written an install shell script for the Scratch environment based on the source download tarball available from http://info.scratch.mit.edu
It's available to download from http://pastebin.com/KdsKQFmm
- note that the multi-coloured version with line numbers isn't suitable for cut'n'pasting so scroll down to the grey box below.
EDIT: Paste the box contents into an editor, and save as 'scratch-install.sh'. Alternatively, to grab this script directly from within Linux, use
wget -O scratch-install.sh http://pastebin.com/download.p.....i=KdsKQFmm
I've tried to make it distro-independent so it will hopefully work on any Pi/Emulator or even other (non-)ARM Linux distribution. Different distros will have different dependencies, check for libglib, libpango, libcairo and libv4l development headers.
Instructions for clean installation (repeated as comments to the script) are as follows for Debian/Ubuntu:
sudo apt-get install build-essential pkg-config squeak-vm
sudo apt-get install libglib2.0-dev libpango1.0-dev libcairo2-dev libv4l-dev
tar -zxvf scratch-220.127.116.11.tar.gz # (decompresses to directory 'scratch')
make -C scratch/
sudo bash scratch_install.sh scratch/
Once installed the program appears in the 'Development' menu of your desktop and can be invoked by 'scratch [filename.sb]'
If you've never used Scratch before and are wondering what the fuss is about, or if you're trying to decide whether Python or BASIC would make the best first language to learn, then I strongly recommend installing it as per the instructions above and experimenting. You will have your mind expanded, I guarantee.