INSTALL 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. This package includes the compiler for the Ursala programming language
  2. (bin/fun) and related libraries (lib/*.avm). In order for it to work,
  3. it depends on the virtual machine emulator available from
  4. http://www.basis.uklinux.net/avram
  5. Please refer to the avram documentation for installation instructions.
  6. Some optional external libraries usable by avram are recommended but
  7. not required, notably the mpfr library for arbitrary precision
  8. arithmetic.
  9. Root installations
  10. ------------------
  11. The compiler may be installed either system-wide or for an individual
  12. user. For the former case, the system administrator (i.e., the
  13. root user) should unpack the .tar archive (probably done already
  14. if you're reading this) and copy the files as shown.
  15. $ tar -zxf ursala-0.1.0.tar.gz
  16. $ cp ursala-0.1.0/bin/* /usr/local/bin
  17. $ mkdir /usr/local/lib/avm
  18. $ chmod ugo+rx /usr/local/lib/avm
  19. $ cp ursala-0.1.0/src/*.avm /usr/local/lib/avm
  20. $ cp ursala-0.1.0/lib/*.avm /usr/local/lib/avm
  21. Use of these standard directories is advantageous because it will
  22. allow the virtual machine to locate the library files automatically
  23. without requiring the user to specify their full paths.
  24. Non-root installations
  25. ----------------------
  26. If the compiler is installed only for an individual user, the
  27. libraries and executables should be unpacked as above, but can be moved
  28. to whatever directories the user prefers and can access. The virtual
  29. machine will not automatically detect libraries in non-standard
  30. directories, but on a GNU/Linux system it can be made to do so by way
  31. of the AVMINPUTS environment variable. For example, if the
  32. user wishes to store a collection of personal library modules under
  33. $HOME/avm, the command
  34. $ export AVMINPUTS=".:$HOME/avm"
  35. either executed interactively or in a bash initialization script will
  36. enable it. The syntax for equivalent commands may differ with other
  37. shells.