To install GridLAB-D without building, run the following command:
curl -sL http://install.arras.energy/install.sh | sh
To change the default installation:
export INSTALL_SOURCE=INSTALLURL
export INSTALL_TARGET=FOLDERNAME
export INSTALL_STDOUT=FILENAME
export INSTALL_STDERR=FILENAME
export GRIDLABD_IMAGE=OS_VERSION-MACHINE
curl -sL $INSTALL_SOURCE/install.sh | sh
The typical setup/install for a gridlabd on the system is as follows.
git clone https://core.arras.energy/ [-b BRANCH] [--depth 1] gridlabd
cd gridlabd
sudo ./setup.sh --local
./build.sh --system --validate --parallel
Arras Energy requires access to two python virtual environments to build and run. The build venv is created in the user's home folder under the name .gridlabd. This environment contains all the modules needed to build and install gridlabd. The runtime venv is created in the gridlabd/bin folder and contains all the modules needed to run gridlabd. Because gridlabd users needed access to these, there must a set of group permissions for them to use. The following procedure implements a security policy that achieves this.
- Create a
gridlabduser and group, e.g.,adduser gridlabd. - Add each
gridlabduser to thegridlabdgroup, e.g.,adduser $USER gridlabd. - Download or build, and install
gridlabdas thegridlabduser, e.g.,curl -sL https://install.arras.energy/install.sh | sudo sh. - Change the permissions to the build
venvand/usr/local/opt/gridlabdto allow group full access, e.g.,chmod -R g+rwx ~gridlabd /usr/local/opt/gridlabd.