Commit 89c2976b authored by Renato Figueiro Maia's avatar Renato Figueiro Maia
Browse files

[SOMA-3996][SOMA-4110] Atualizar documentação de instalação no Windows.

parent a7d00790
......@@ -138,10 +138,12 @@ Requirements:
+ make
+ curl
+ unzip
+ openssl_dev 1.0.2
+ openssl_dev 1.1
+ perl
+ ksh
+ Luarocks 2.4.2
+ LuaRocks 2.4.2 (or higher)
**Note:** For a Microsoft Windows installation, it is recommended to use [Cygwin](https://www.cygwin.com/) for the dependencies.
Clone the git repository
......@@ -150,21 +152,31 @@ git clone https://git.tecgraf.puc-rio.br/csbase/sgarest-daemon
cd sgarest-daemon
```
Run the following Luarocks commands to install the POSIX driver, the PBS driver and the Slurm driver respectively:
**Note:** On Microsoft Windows, run the following LuaRocks commands to build dependencies which may fail in Windows:
POSIX
```shell
luarocks install xml CC=g++ LD=g++
luarocks install luaposix LDFLAGS=-no-undefined
```
Run the following LuaRocks commands to install the SGA core:
```shell
luarocks install lua-schema-scm-1.rockspec
luarocks make sga-daemon-scm-1.rockspec
```
Additionally, run the following LuaRocks commands to install at least one of the follwing the drivers:
POSIX
```shell
luarocks make sga-driver-posix-scm-1.rockspec
```
PBS (experimental)
```shell
luarocks install lua-schema-scm-1.rockspec
luarocks make sga-daemon-scm-1.rockspec
luarocks make sga-exec-scm-1.rockspec
luarocks make sga-driver-pbs-scm-1.rockspec
```
......@@ -172,16 +184,27 @@ luarocks make sga-driver-pbs-scm-1.rockspec
Slurm (experimental)
```shell
luarocks install lua-schema-scm-1.rockspec
luarocks make sga-daemon-scm-1.rockspec
luarocks make sga-exec-scm-1.rockspec
luarocks make sga-driver-slurm-scm-1.rockspec
```
To install locally for the current user, use the option `--local` in the commands above.
## Using Luarocks behind a proxy
## Self-Contained Installation
Install LuaRocks on a particular path with the following options:
```shell
./configure --force-config --prefix=$SGA_INSTALL_PATH
make install
```
## Installation without Internet
Unpack the [LuaRock dependencies](http://www.tecgraf.puc-rio.br/ftp_pub/csbase/sga-rest/sga-rocks-2020-03-25.tar.gz) and add options `--only-server=$REPO_UNPACKED_PATH` to all LuaRocks `install` and `make` commands.
## Installation behind a proxy
Follow instructions on https://github.com/luarocks/luarocks/wiki/LuaRocks-through-a-proxy
## Docker
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment