1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
|
This file documents the installation procedure of the Octave 'queueing'
package.
'queueing' is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 3 or later,
as published by the Free Software Foundation.
Note: This file ('INSTALL') is automatically generated from
'doc/installation.txi' in the 'queueing' source tree. Do not
modify this document directly, as changes will be lost. Modify
'doc/installation.txi' instead.
1 Installation and Getting Started
**********************************
1.1 Installation through Octave package management system
=========================================================
The most recent version of 'queueing' is 1.2.8 and can be downloaded
from
<https://gnu-octave.github.io/packages/queueing/>
Additional information can be found at
<https://www.moreno.marzolla.name/software/queueing/>
To install 'queueing', follow these steps:
1. If you have a recent version of GNU Octave and a network
connection, you can install 'queueing' from Octave command prompt
using this command:
octave:1> pkg install pkg install "https://github.com/mmarzolla/queueing/releases/download/1.2.8/queueing-1.2.8.tar.gz"
The command above will download and install the latest version of
the 'queueing' package from the source repository, and install it
on your machine.
If you do not have root access, you can perform a local install
with:
octave:1> pkg install -local "https://github.com/mmarzolla/queueing/releases/download/1.2.8/queueing-1.2.8.tar.gz"
This will install 'queueing' in your home directory, and the
package will be available to the current user only.
2. Alternatively, you can first download the 'queueing' tarball; to
install the package in the system-wide location issue this command
at the Octave prompt:
octave:1> pkg install _queueing-1.2.8.tar.gz_
(you may need to start Octave as root in order to allow the
installation to copy the files to the target locations). After
this, all functions will be available each time Octave starts,
without the need to tweak the search path.
If you do not have root access, you can do a local install using:
octave:1> pkg install -local queueing-1.2.8.tar.gz
3. Use the 'pkg list' command at the Octave prompt to check that the
'queueing' package has been succesfully installed; you should see
something like:
octave:1>pkg list queueing
Package Name | Version | Installation directory
--------------+---------+-----------------------
queueing | 1.2.8 | /home/moreno/octave/queueing-1.2.8
4. Starting from version 1.1.1, 'queueing' is no longer automatically
loaded on Octave start. To make the functions available for use,
you need to issue the command
octave:1>pkg load queueing
at the Octave prompt. To automatically load 'queueing' each time
Octave starts, you can add the command above to the startup script
(usually, '~/.octaverc' on Unix systems).
5. To completely remove 'queueing' from your system, use the 'pkg
uninstall' command:
octave:1> pkg uninstall queueing
1.2 Manual installation
=======================
If you want to manually install 'queueing' in a custom location, you can
download the tarball and unpack it somewhere:
tar xvfz queueing-1.2.8.tar.gz
cd queueing-1.2.8/
Copy all '.m' files from the 'inst/' directory to some target
location. Then, start Octave with the '-p' option to add the target
location to the search path, so that Octave will find all 'queueing'
functions automatically:
octave -p _/path/to/queueing_
For example, if all 'queueing' m-files are in '/usr/local/queueing',
you can start Octave as follows:
octave -p _/usr/local/queueing_
If you want, you can add the following line to '~/.octaverc':
addpath("_/path/to/queueing_");
so that the path '/path/to/queueing' is automatically added to the
search path each time Octave is started, and you no longer need to
specify the '-p' option on the command line.
|