How to install Mavscript

Quick instructions

  1. Unzip the archive file into any directory, e.g. into C:\Programme (Windows) or /usr/local/share (Linux). The expression path-to-mavscript then stands for C:\Programme\mavscript.

  2. Copy the file path-to-mavscript\INFO\desktoplinks\Mavscript.windows.lnk or path-to-mavscript/INFO/desktoplinks/Mavscript.linux.desktop on the desktop.

  3. Right click on the icon, choose the item Properties. In the dialogue that opens you may need to adjust the path-to-mavscript !

  4. If you haven't already, install Java (Java Runtime Environment 1.7 or above).

  5. The algebra engine Yacas requires Gnuplot for graphics (Plot2D, Plot3DS). Add it to the PATH variable.


Windows

  1. Extract the zip file mavscript*.zip into any directory, e.g. into C:\Programme (note: depending on the system language this directory might be called differently, i.e. C:\Program Files). A subdirectory mavscript will be created. The path-to-mavscript then is C:\Programme\mavscript.

  2. Java (JRE) version 1.7 or higher must be installed. To check this, open the command prompt (DOS-window) and type java -version . If a message appears saying java could not be found, java is not installed.

  3. In the directory C:\Programme\mavscript\INFO\desktoplinks there is a file Mavscript.windows.lnk. Drag this file - while pressing the Ctrl-key - on the desktop.
    Select the icon on the desktop (that has just been created), press the right mouse button and open the properties dialogue. In one of the tabs there is a command field. There should be written C:\Programme\mavscript\mavscript-yacas.bat . In the field working directory: C:\Programme\mavscript .
    Note, you might have to adjust the path-to-mavscript (i.e . C:\Program Files\mavscript) in both fields.

  4. Mavscript is now installed. There are example files in the directory C:\Programme\mavscript\example . Drag one of it (i.e. 1-mavscript.txt) on the mavscript-icon on the desktop (that has been created in point 3). A window opens and when everything works fine on the last line should be written "Done", saying that the calculation has been completed. The output file out-1-mavscript.txt has been created.

  5. It is not mandatory to have installed OpenOffice or LibreOffice, but it is useful to create formatted text. The OpenOffice-Writer files (suffix .odt can be used with Mavscript exactly the same way as text or html files. Microsoft Word files (suffix .docx) are experimentally supported and might not work. However if you know Word you'll get along with OpenOffice.

  6. If you intend to run Mavscript from the command line, it is useful to add Mavscript to the %PATH% variable: C:\Programme\mavscript
    Then Mavscript can be run within the directory of the template.

It does not work ...


LINUX mavscript*.rpm

  1. Java (JRE) version 1.7 or higher must be installed. To check this open a shell and type: java -version

  2. Open a shell and type
    sudo rpm -Uvh mavscript*.rpm
    and enter the root password.

  3. Mavscript is now installed. It can be called from any directory.

    mavscript ./template.txt
    mavscript /home/<user>/template.txt
    mavscript-yacas ./template.txt Abbreviation for
    mavscript --yacas --init /usr/share/mavscript/lib/init.ys ./template.txt
    mavscript-beanshell ./beanshell_template.txt Abbreviation for
    mavscript --beanshell --init /usr/share/mavscript/lib/init.bsh ./beanshell_template.txt

    There are examples in the directory /usr/share/doc/packages/mavscript/examples . Try them out:
    mavscript-yacas -o ~/out-test.txt /usr/share/doc/packages/mavscript/examples/1-mavscript.txt

    Manuals and further information are located in the directory /usr/share/doc/packages/mavscript/INFO or use the commands
    mavscript --help and
    man mavscript


  4. In order to create an icon for Mavscript on the KDE-desktop, drag the file Mavscript.linux.desktop from the directory /usr/share/doc/packages/mavscript/INFO/desktoplinks on the desktop and confirm copying.

    Copy an example file (e.g. 2-mavscript-yacas.txt) in your home directory and drag the copied file on the mavscript-icon on the desktop. A window opens and when everything works fine on the last line should be written "Done", saying that the calculation has been completed. The output file out-2-mavscript-yacas.txt has been created.

  5. It is not mandatory to have installed LibreOffice, but it is useful to create formatted text. The OpenOffice-Writer files (suffix .odt) can be used with Mavscript exactly the same way as text or html files.


LINUX mavscript*.zip

  1. Java (JRE) version 1.7 or higher must be installed. To check this open a shell and type: java -version

  2. Extract the zip file mavscript*.zip into any directory, e.g. into /usr/local/share. The path-to-mavscript then is /usr/local/share/mavscript. You'll need to be root to write to this directory. Step by step:
    Open a shell (konsole) and type
    cd /usr/local/share
    sudo unzip /home/USER/mavscript*.zip -d . (Type the point following -d !) If necessary replace the * by the version number.
    Enter the root password.

  3. Try to run an example from the Shell
    cd /usr/local/share/mavscript
    ./mavscript
    -yacas -o ~/out-test.txt examples/1-mavscript.txt

  4. KDE: In the directory /usr/local/share/mavscript/INFO/desktoplinks is a file called Mavscript.linux.desktop . Drag this file on the desktop and confirm copying.
    Select the icon on the desktop (that has just been created), press the right mouse button and open the properties dialogue. In the tab "programs" in the command field should be written: konsole --noclose --notabbar --nomenubar -T "mavscript" --workdir /usr/local/share/mavscript/ -e /usr/local/share/mavscript/mavscript-yacas

  5. KDE: Mavscript is now installed. There are examples in the directory /usr/local/share/mavscript/examples . Copy an example file (i.e. 2-mavscript-yacas.txt) in your home directory and drag the copied file on the mavscript-icon on the desktop. A window opens and when everything works fine on the last line should be written "Done", saying that the calculation has been completed. The output file out-2-mavscript-yacas.txt has been created.
  6. It is not mandatory to have installed LibreOffice, but it is useful to create formatted text. The OpenOffice-Writer files (suffix .odt) can be used with Mavscript exactly the same way as text or html files.

  7. It is recommended to have Mavscript in the path. Make a symbolic copy (cp -s /usr/local/share/mavscript/mavscript .) of the files mavscript, mavscript-yacas, mavscript-beanshell.

It does not work ...

Mac OS X, Solaris and other operation systems

Mavscript runs on operation systems that have Java installed.

1. Extract the zip file mavscript*.zip into any directory.

2. Open a shell and try it out
cd path-to-mavscript

./mavscript-yacas examples/1-mavscript.txt