This release of Amber for Parrot is for Linux (developed and tested under Fedora Core 4).
First, you must install the Parrot Virtual Machine. Then, you can install Amber in one of three ways. For most people, installing Amber from a C package will be the easiest.
Download » Parrot 0.4.2
tar xvzf parrot-0.4.*.tar.gz
cd parrot perl Configure.pl make cd languages/amber && make pmcs && cd ../..
Put the top-level Parrot directory in your search path (or link to the parrot executable from somewhere in your search path)
parrot --version
You can compile Amber from C-code that was generated by SmartEiffel. You do not need to have SmartEiffel installed:
Download the Amber 0.4.2 source code
tar xvzf amber-0.4.2.tar.gz
cd amber-0.4.2 make
If you have » SmartEiffel 2.2 (not 2.2rc3) installed, you can compile Amber from Eiffel source code:
Download the Amber 0.4.2 source code
tar xvzf amber-0.4.2.tar.gz
cd amber-0.4.2 make devel
If you want to keep up with the very latest development version of Amber, you can download the source code from the development repository. You will need » SmartEiffel 2.2 and the » darcs version control client:
darcs get http://xamber.org/repo/amber/
cd amber make devel
Darcs is a distributed version control system that is easy-to-learn and easy-to-use. After installing Amber using darcs, you can keep it up-to-date by typing "darcs pull" from the top-level Amber directory, then "make devel".
At times, you will require the latest svn version of Parrot in order to use the latest darcs version of Amber.
Place the amber executable (found in the src directory after a successful compilation) into your system's search path.
Amber's kernel classes are found in the lib/kernel directory. Place the full pathname of this directory into an environment variable named AMBER_KERNEL.
Alternatively, you may specify the kernel directory on the command-line with the '--kernel' option, like this:
amber --kernel "somepath/lib/kernel"
Amber will abort with an error message if the kernel directory has not been specified, or if the specified directory does not exist.
Confirm that everything is working:
amber --version amber examples/hello/hello.am amber examples/life/life.am make test-all
See examples/README for more details about the examples.
Other documentation is on the Amber website: http://xamber.org/
I hope you find Amber for Parrot interesting and worthwhile. Feel free to email me with your questions or comments.
Roger Browne
roger@eiffel.demon.co.uk