Closed vahid-dan closed 2 years ago
Try installing FLARE-containers by running flare-install.sh
on a fresh Ubuntu 18.04 VM and also an Ubuntu 20.04 VM from scratch to investigate the problem.
@Yun-Jung, I just found out the source of the problem:
We are running flare-install.sh
using the following command:
source <(wget -O - https://raw.githubusercontent.com/FLARE-forecast/FLARE-containers/$([[ -z "$FLARE_VERSION" ]] && echo 'latest' || echo "$FLARE_VERSION")/commons/flare-install.sh | /usr/bin/env bash -s $FLARE_CONTAINER_NAME $([[ -z "$FLARE_VERSION" ]] && echo 'latest' || echo "$FLARE_VERSION"))
The first part of the command adds yq
to the PATH and works fine. But, the second part of the command starting with /usr/bin/env bash -s
which is to pass a variable to flare-install.sh
, reverts the change to the PATH.
Completed
Couldn't run
yq
after runningflare-install.sh
script on a fresh machine without executing the following line manually although the line is already embedded in theflare-install.sh
.)[[ ":$PATH:" != *":$HOME/bin:"* ]] && echo -e "\nexport PATH='$HOME/bin:$PATH'" >> $HOME/.bashrc && source $HOME/.bashrc