Bash script to install the setlX interpreter on UNIX like Operating systems.
This script is based on the official instruction on how to install setlX, which can be found here: SetlX Official Website
Right now, it does only a regular installation. Errors might occur, feel free to report them.
At the moment, the script is working for Linux and Mac. You need to have wget
in order to install it.
You need to be root to execute the script, since you are copying files to /usr/local/
and changing the access permissions in order to make it executable. You also need to restart your computer to be able to use the setlX
command.
Packages required: wget
, java
- Clone the repository
- Go to the folder, where the script is located
- Open a terminal
- Execute the script by
sudo setlXinstaller.sh
- Now you can start setlX by entering
setlX
into the command line (you may have to restart your computer)
You are able to edit the script to change the setlX-version and the paths. By default, the values are:
setlx_version=2-6-0
TmpDir="$HOME/tmp/setlX"
JarDir="/usr/local/setlX/"
LibDir="$HOME/setlXlibrary"
BinDir="/usr/local/bin"
The TmpDir
variable is used to check for a temporary folder.
The setlX-binary will be downloaded and unzipped to $HOME/tmp/setlX
by default.
This folder will not be deleted after the installation has been finished!
If you want to change the path for the jar-files or the library-files, just change the paths for the JarDir
and LibDir
variables. Right now, you also have to change the paths in the following two lines by hand:
sed -i 's/setlXJarDirectory\=\"\.\"/setlXJarDirectory\=\"\/usr\/local\/setlX\/\"/' ${TmpDir}/setlX
sed -i 's/setlXlibraryPath\=\"\$HOME\/setlXlibrary\/\"/setlXlibraryPath\=\"\$HOME\/setlXlibrary\/\"/' ${TmpDir}/setlX